mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 15:22:55 +08:00
Move hover layer behind icon
Looked bad on the "already downloaded" state where the icon becomes black.
This commit is contained in:
parent
fb0bc597a0
commit
df9f49eef2
@ -78,17 +78,17 @@ namespace osu.Game.Beatmaps.Drawables.Cards.Buttons
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
Icon = new SpriteIcon
|
|
||||||
{
|
|
||||||
Origin = Anchor.Centre,
|
|
||||||
Anchor = Anchor.Centre,
|
|
||||||
},
|
|
||||||
hover = new Box
|
hover = new Box
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Colour = Color4.White.Opacity(0.1f),
|
Colour = Color4.White.Opacity(0.1f),
|
||||||
Blending = BlendingParameters.Additive,
|
Blending = BlendingParameters.Additive,
|
||||||
},
|
},
|
||||||
|
Icon = new SpriteIcon
|
||||||
|
{
|
||||||
|
Origin = Anchor.Centre,
|
||||||
|
Anchor = Anchor.Centre,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user