1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 03:27:24 +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.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics;
namespace osu.Game.Overlays
{
public class OverlayHeaderTabControl : OverlayTabControl<string>
{
protected override TabItem<string> CreateTabItem(string value) => new OverlayHeaderTabItem(value);
[BackgroundDependencyLoader]
private void load(OsuColour colours)
protected override TabItem<string> CreateTabItem(string value) => new OverlayHeaderTabItem(value)
{
AccentColour = colours.Seafoam;
}
AccentColour = AccentColour,
};
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);
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
TabControl.AccentColour = colours.Seafoam;
}
protected override Drawable CreateBackground() =>
new Container
{