1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-28 01:37:46 +08:00

Fix colour issues

This commit is contained in:
Andrei Zavatski 2019-06-19 12:15:32 +03:00
parent c8604b2c17
commit 1c44fa84fb
2 changed files with 9 additions and 8 deletions

View File

@ -1,21 +1,16 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics.UserInterface; using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics;
namespace osu.Game.Overlays namespace osu.Game.Overlays
{ {
public class OverlayHeaderTabControl : OverlayTabControl<string> public class OverlayHeaderTabControl : OverlayTabControl<string>
{ {
protected override TabItem<string> CreateTabItem(string value) => new OverlayHeaderTabItem(value); protected override TabItem<string> CreateTabItem(string value) => new OverlayHeaderTabItem(value)
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{ {
AccentColour = colours.Seafoam; AccentColour = AccentColour,
} };
private class OverlayHeaderTabItem : OverlayTabItem<string> private class OverlayHeaderTabItem : OverlayTabItem<string>
{ {

View File

@ -34,6 +34,12 @@ namespace osu.Game.Overlays.Profile
centreHeaderContainer.DetailsVisible.BindValueChanged(visible => detailHeaderContainer.Expanded = visible.NewValue, true); centreHeaderContainer.DetailsVisible.BindValueChanged(visible => detailHeaderContainer.Expanded = visible.NewValue, true);
} }
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
TabControl.AccentColour = colours.Seafoam;
}
protected override Drawable CreateBackground() => protected override Drawable CreateBackground() =>
new Container new Container
{ {