mirror of
https://github.com/ppy/osu.git
synced 2025-01-31 12:52:53 +08:00
Rename Colour to AccentColour
This commit is contained in:
parent
1a48b46536
commit
ec575e9de4
@ -31,7 +31,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
public Bindable<bool> ShowTime { get; } = new BindableBool(true);
|
||||
|
||||
[SettingSource(typeof(SkinnableComponentStrings), nameof(SkinnableComponentStrings.Colour), nameof(SkinnableComponentStrings.ColourDescription))]
|
||||
public new BindableColour4 Colour { get; } = new BindableColour4(Colour4.White);
|
||||
public BindableColour4 AccentColour { get; } = new BindableColour4(Colour4.White);
|
||||
|
||||
[Resolved]
|
||||
private Player? player { get; set; }
|
||||
@ -118,7 +118,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
base.Update();
|
||||
content.Height = bar.Height + bar_height + info.Height;
|
||||
graphContainer.Height = bar.Height;
|
||||
base.Colour = Colour.Value;
|
||||
Colour = AccentColour.Value;
|
||||
}
|
||||
|
||||
protected override void UpdateProgress(double progress, bool isIntro)
|
||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
public BindableBool InvertShear { get; } = new BindableBool();
|
||||
|
||||
[SettingSource(typeof(SkinnableComponentStrings), nameof(SkinnableComponentStrings.Colour), nameof(SkinnableComponentStrings.ColourDescription))]
|
||||
public new BindableColour4 Colour { get; } = new BindableColour4(Color4Extensions.FromHex("#66CCFF"));
|
||||
public BindableColour4 AccentColour { get; } = new BindableColour4(Color4Extensions.FromHex("#66CCFF"));
|
||||
|
||||
public ArgonWedgePiece()
|
||||
{
|
||||
@ -41,7 +41,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
InternalChild = new Box
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = ColourInfo.GradientVertical(Colour.Value.Opacity(0.0f), Colour.Value.Opacity(0.25f)),
|
||||
Colour = ColourInfo.GradientVertical(AccentColour.Value.Opacity(0.0f), AccentColour.Value.Opacity(0.25f)),
|
||||
};
|
||||
}
|
||||
|
||||
@ -50,7 +50,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
base.LoadComplete();
|
||||
|
||||
InvertShear.BindValueChanged(v => Shear = new Vector2(0.8f, 0f) * (v.NewValue ? -1 : 1), true);
|
||||
Colour.BindValueChanged(c => InternalChild.Colour = ColourInfo.GradientVertical(Colour.Value.Opacity(0.0f), Colour.Value.Opacity(0.25f)));
|
||||
AccentColour.BindValueChanged(c => InternalChild.Colour = ColourInfo.GradientVertical(AccentColour.Value.Opacity(0.0f), AccentColour.Value.Opacity(0.25f)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
public Bindable<bool> ShowTime { get; } = new BindableBool(true);
|
||||
|
||||
[SettingSource(typeof(SkinnableComponentStrings), nameof(SkinnableComponentStrings.Colour), nameof(SkinnableComponentStrings.ColourDescription))]
|
||||
public new BindableColour4 Colour { get; } = new BindableColour4(Colour4.White);
|
||||
public BindableColour4 AccentColour { get; } = new BindableColour4(Colour4.White);
|
||||
|
||||
[Resolved]
|
||||
private Player? player { get; set; }
|
||||
@ -119,7 +119,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
if (!Precision.AlmostEquals(Height, newHeight, 5f))
|
||||
content.Height = newHeight;
|
||||
|
||||
base.Colour = Colour.Value;
|
||||
Colour = AccentColour.Value;
|
||||
}
|
||||
|
||||
private void updateBarVisibility()
|
||||
|
@ -28,7 +28,7 @@ namespace osu.Game.Skinning.Components
|
||||
};
|
||||
|
||||
[SettingSource(typeof(SkinnableComponentStrings), nameof(SkinnableComponentStrings.Colour), nameof(SkinnableComponentStrings.ColourDescription))]
|
||||
public new BindableColour4 Colour { get; } = new BindableColour4(Colour4.White);
|
||||
public BindableColour4 AccentColour { get; } = new BindableColour4(Colour4.White);
|
||||
|
||||
public BoxElement()
|
||||
{
|
||||
@ -51,7 +51,7 @@ namespace osu.Game.Skinning.Components
|
||||
base.Update();
|
||||
|
||||
base.CornerRadius = CornerRadius.Value * Math.Min(DrawWidth, DrawHeight);
|
||||
base.Colour = Colour.Value;
|
||||
Colour = AccentColour.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user