mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Change profile score background colour
This commit is contained in:
@ -44,8 +44,8 @@ namespace osu.Game.Overlays.Profile.Sections
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OverlayColourProvider colourProvider)
|
private void load(OverlayColourProvider colourProvider)
|
||||||
{
|
{
|
||||||
background.Colour = idleColour = colourProvider.Background4;
|
background.Colour = idleColour = colourProvider.Background3;
|
||||||
hoverColour = colourProvider.Background3;
|
hoverColour = colourProvider.Background2;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnHover(HoverEvent e)
|
protected override bool OnHover(HoverEvent e)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -145,7 +145,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
|
|||||||
Origin = Anchor.TopRight,
|
Origin = Anchor.TopRight,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Size = new Vector2(1.06f, 0.5f),
|
Size = new Vector2(1.06f, 0.5f),
|
||||||
Colour = Color4.Black.Opacity(0.5f),
|
Colour = colourProvider.Background4,
|
||||||
Shear = new Vector2(-0.45f, 0),
|
Shear = new Vector2(-0.45f, 0),
|
||||||
EdgeSmoothness = new Vector2(2, 0),
|
EdgeSmoothness = new Vector2(2, 0),
|
||||||
},
|
},
|
||||||
@ -157,7 +157,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
|
|||||||
RelativePositionAxes = Axes.Y,
|
RelativePositionAxes = Axes.Y,
|
||||||
Size = new Vector2(1.06f, -0.5f),
|
Size = new Vector2(1.06f, -0.5f),
|
||||||
Position = new Vector2(0, 1),
|
Position = new Vector2(0, 1),
|
||||||
Colour = Color4.Black.Opacity(0.5f),
|
Colour = colourProvider.Background4,
|
||||||
Shear = new Vector2(0.45f, 0),
|
Shear = new Vector2(0.45f, 0),
|
||||||
EdgeSmoothness = new Vector2(2, 0),
|
EdgeSmoothness = new Vector2(2, 0),
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user