Adjust background presentation

This commit is contained in:
Andrei Zavatski 2020-03-05 01:41:55 +03:00
parent 0b98bcc856
commit d297bf6957
3 changed files with 7 additions and 4 deletions

View File

@ -23,7 +23,7 @@ public UserGridPanel(User user)
[BackgroundDependencyLoader]
private void load()
{
Background.FadeTo(0.6f);
Background.FadeTo(0.4f);
}
protected override Drawable CreateLayout()

View File

@ -26,7 +26,7 @@ public UserListPanel(User user)
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()

View File

@ -51,6 +51,9 @@ protected UserPanel(User user)
[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 @@ protected UserPanel(User user)
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
{