mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Add gray background.
This commit is contained in:
parent
a09d873db9
commit
9f9107b847
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
|
using osu.Framework.Graphics.Sprites;
|
||||||
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Graphics.Containers;
|
using osu.Game.Graphics.Containers;
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
using osu.Game.Users.Profile;
|
using osu.Game.Users.Profile;
|
||||||
@ -21,6 +23,13 @@ namespace osu.Game.Users
|
|||||||
this.user = user;
|
this.user = user;
|
||||||
var tab = new OsuTabControl<ProfileSection>();
|
var tab = new OsuTabControl<ProfileSection>();
|
||||||
var sections = new ProfileSection[] { };
|
var sections = new ProfileSection[] { };
|
||||||
|
|
||||||
|
Add(new Box
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Colour = OsuColour.Gray(0.2f)
|
||||||
|
});
|
||||||
|
|
||||||
var sectionsContainer = new SectionsContainer
|
var sectionsContainer = new SectionsContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
@ -28,7 +37,6 @@ namespace osu.Game.Users
|
|||||||
FixedHeader = tab,
|
FixedHeader = tab,
|
||||||
Sections = sections
|
Sections = sections
|
||||||
};
|
};
|
||||||
|
|
||||||
Add(sectionsContainer);
|
Add(sectionsContainer);
|
||||||
|
|
||||||
sectionsContainer.SelectedSection.ValueChanged += s =>
|
sectionsContainer.SelectedSection.ValueChanged += s =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user