mirror of
https://github.com/ppy/osu
synced 2024-12-25 00:02:48 +00:00
Change BackgroundColour into a property
This commit is contained in:
parent
b5fa950800
commit
178d88bcf1
@ -85,7 +85,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
protected override BeatmapListingHeader CreateHeader() => new BeatmapListingHeader();
|
||||
|
||||
protected override Color4 GetBackgroundColour() => ColourProvider.Background6;
|
||||
protected override Color4 BackgroundColour => ColourProvider.Background6;
|
||||
|
||||
private void onTypingStarted()
|
||||
{
|
||||
|
@ -68,7 +68,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
protected override BeatmapSetHeader CreateHeader() => new BeatmapSetHeader();
|
||||
|
||||
protected override Color4 GetBackgroundColour() => ColourProvider.Background6;
|
||||
protected override Color4 BackgroundColour => ColourProvider.Background6;
|
||||
|
||||
protected override void PopOutComplete()
|
||||
{
|
||||
|
@ -55,7 +55,7 @@ namespace osu.Game.Overlays
|
||||
ListingSelected = ShowListing,
|
||||
};
|
||||
|
||||
protected override Color4 GetBackgroundColour() => ColourProvider.Background4;
|
||||
protected override Color4 BackgroundColour => ColourProvider.Background4;
|
||||
|
||||
public void ShowListing()
|
||||
{
|
||||
|
@ -23,6 +23,8 @@ namespace osu.Game.Overlays
|
||||
|
||||
public T Header { get; }
|
||||
|
||||
protected virtual Color4 BackgroundColour => ColourProvider.Background5;
|
||||
|
||||
[Resolved]
|
||||
protected IAPIProvider API { get; private set; }
|
||||
|
||||
@ -59,7 +61,7 @@ namespace osu.Game.Overlays
|
||||
new Box
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = GetBackgroundColour()
|
||||
Colour = BackgroundColour
|
||||
},
|
||||
content = new Container
|
||||
{
|
||||
@ -80,8 +82,6 @@ namespace osu.Game.Overlays
|
||||
[NotNull]
|
||||
protected abstract T CreateHeader();
|
||||
|
||||
protected virtual Color4 GetBackgroundColour() => ColourProvider.Background5;
|
||||
|
||||
public override void Show()
|
||||
{
|
||||
if (State.Value == Visibility.Visible)
|
||||
|
@ -36,7 +36,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
protected override ProfileHeader CreateHeader() => new ProfileHeader();
|
||||
|
||||
protected override Color4 GetBackgroundColour() => ColourProvider.Background6;
|
||||
protected override Color4 BackgroundColour => ColourProvider.Background6;
|
||||
|
||||
public void ShowUser(int userId) => ShowUser(new User { Id = userId });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user