diff --git a/osu.Game/Overlays/OverlayHeaderTabControl.cs b/osu.Game/Overlays/OverlayHeaderTabControl.cs index b2c5fb8f2a..5b56771dc1 100644 --- a/osu.Game/Overlays/OverlayHeaderTabControl.cs +++ b/osu.Game/Overlays/OverlayHeaderTabControl.cs @@ -1,21 +1,16 @@ // Copyright (c) ppy Pty Ltd . 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 { - protected override TabItem CreateTabItem(string value) => new OverlayHeaderTabItem(value); - - [BackgroundDependencyLoader] - private void load(OsuColour colours) + protected override TabItem CreateTabItem(string value) => new OverlayHeaderTabItem(value) { - AccentColour = colours.Seafoam; - } + AccentColour = AccentColour, + }; private class OverlayHeaderTabItem : OverlayTabItem { diff --git a/osu.Game/Overlays/Profile/ProfileHeader.cs b/osu.Game/Overlays/Profile/ProfileHeader.cs index 90f51a90a6..76613c156d 100644 --- a/osu.Game/Overlays/Profile/ProfileHeader.cs +++ b/osu.Game/Overlays/Profile/ProfileHeader.cs @@ -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 {