From 9f9107b84748bc95d0cb04a29760461557d7739c Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Wed, 7 Jun 2017 21:15:43 +0800 Subject: [PATCH] Add gray background. --- osu.Game/Users/UserProfile.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/osu.Game/Users/UserProfile.cs b/osu.Game/Users/UserProfile.cs index b4a7f7d546..95447bfe26 100644 --- a/osu.Game/Users/UserProfile.cs +++ b/osu.Game/Users/UserProfile.cs @@ -3,6 +3,8 @@ using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; +using osu.Framework.Graphics.Sprites; +using osu.Game.Graphics; using osu.Game.Graphics.Containers; using osu.Game.Graphics.UserInterface; using osu.Game.Users.Profile; @@ -21,6 +23,13 @@ namespace osu.Game.Users this.user = user; var tab = new OsuTabControl(); var sections = new ProfileSection[] { }; + + Add(new Box + { + RelativeSizeAxes = Axes.Both, + Colour = OsuColour.Gray(0.2f) + }); + var sectionsContainer = new SectionsContainer { RelativeSizeAxes = Axes.Both, @@ -28,7 +37,6 @@ namespace osu.Game.Users FixedHeader = tab, Sections = sections }; - Add(sectionsContainer); sectionsContainer.SelectedSection.ValueChanged += s =>