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