1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 09:23:46 +08:00

Remove dim effect from disabled spread displays on song select panels

This commit is contained in:
Bartłomiej Dach
2025-12-31 10:05:59 +01:00
Unverified
parent ebb898f67c
commit a6545bea68
3 changed files with 7 additions and 3 deletions
@@ -92,12 +92,12 @@ namespace osu.Game.Graphics.UserInterface
{
base.LoadComplete();
Colour = dimColour;
Enabled.BindValueChanged(_ => this.FadeColour(dimColour, 200, Easing.OutQuint), true);
Colour = Enabled.Value ? Colour4.White : DimColour;
Enabled.BindValueChanged(_ => this.FadeColour(DimColour, 200, Easing.OutQuint), true);
FinishTransforms(true);
}
private Color4 dimColour => Enabled.Value ? Color4.White : colours.Gray9;
protected virtual Colour4 DimColour => colours.Gray9;
protected override bool OnHover(HoverEvent e)
{
@@ -31,6 +31,8 @@ namespace osu.Game.Screens.SelectV2
public BindableBool Expanded { get; } = new BindableBool();
protected override Colour4 DimColour => Colour4.White;
private readonly Bindable<BeatmapSetInfo?> scopedBeatmapSet = new Bindable<BeatmapSetInfo?>();
private readonly Bindable<bool> showConvertedBeatmaps = new Bindable<bool>();
@@ -27,6 +27,8 @@ namespace osu.Game.Screens.SelectV2
public Bindable<BeatmapInfo?> Beatmap { get; } = new Bindable<BeatmapInfo?>();
public Bindable<StarDifficulty> StarDifficulty { get; } = new Bindable<StarDifficulty>();
protected override Colour4 DimColour => Colour4.White;
private readonly Bindable<BeatmapSetInfo?> scopedBeatmapSet = new Bindable<BeatmapSetInfo?>();
private readonly Bindable<bool> showConvertedBeatmaps = new Bindable<bool>();