Add gray background.

This commit is contained in:
Huo Yaoyuan 2017-06-07 21:15:43 +08:00
parent a09d873db9
commit 9f9107b847
1 changed files with 9 additions and 1 deletions

View File

@ -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 @@ public UserProfile(User user)
this.user = user;
var tab = new OsuTabControl<ProfileSection>();
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 @@ public UserProfile(User user)
FixedHeader = tab,
Sections = sections
};
Add(sectionsContainer);
sectionsContainer.SelectedSection.ValueChanged += s =>