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:
@@ -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>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user