mirror of
https://github.com/ppy/osu
synced 2025-02-17 02:47:19 +00:00
Adjust background presentation
This commit is contained in:
parent
0b98bcc856
commit
d297bf6957
@ -23,7 +23,7 @@ namespace osu.Game.Users
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
Background.FadeTo(0.6f);
|
||||
Background.FadeTo(0.4f);
|
||||
}
|
||||
|
||||
protected override Drawable CreateLayout()
|
||||
|
@ -26,7 +26,7 @@ namespace osu.Game.Users
|
||||
private void load()
|
||||
{
|
||||
Background.Width = 0.5f;
|
||||
Background.Colour = ColourInfo.GradientHorizontal(Color4.White.Opacity(1), Color4.White.Opacity(0.6f));
|
||||
Background.Colour = ColourInfo.GradientHorizontal(Color4.White.Opacity(1), Color4.White.Opacity(0.3f));
|
||||
}
|
||||
|
||||
protected override Drawable CreateLayout()
|
||||
|
@ -51,6 +51,9 @@ namespace osu.Game.Users
|
||||
[Resolved(canBeNull: true)]
|
||||
private UserProfileOverlay profileOverlay { get; set; }
|
||||
|
||||
[Resolved(canBeNull: true)]
|
||||
private OverlayColourProvider colourProvider { get; set; }
|
||||
|
||||
[Resolved]
|
||||
private OsuColour colours { get; set; }
|
||||
|
||||
@ -58,14 +61,14 @@ namespace osu.Game.Users
|
||||
private void load()
|
||||
{
|
||||
Masking = true;
|
||||
BorderColour = colours.GreyVioletLighter;
|
||||
BorderColour = colourProvider?.Light1 ?? colours.GreyVioletLighter;
|
||||
|
||||
AddRange(new[]
|
||||
{
|
||||
new Box
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = colours.Gray1
|
||||
Colour = colourProvider?.Background4 ?? colours.Gray1
|
||||
},
|
||||
Background = new DelayedLoadUnloadWrapper(() => new UserCoverBackground
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user