mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Bar uses AccentColour aswell
This commit is contained in:
parent
5e56e84c4a
commit
f7a9a11ae5
@ -10,7 +10,7 @@ using System;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
public class Bar : Container
|
||||
public class Bar : Container, IHasAccentColour
|
||||
{
|
||||
private Box background;
|
||||
private readonly Box bar;
|
||||
@ -51,7 +51,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
public Color4 BarColour
|
||||
public Color4 AccentColour
|
||||
{
|
||||
get
|
||||
{
|
||||
|
@ -355,7 +355,7 @@ namespace osu.Game.Screens.Select
|
||||
stars.AccentColour = colour.Yellow;
|
||||
|
||||
ratingsBar.BackgroundColour = colour.Green;
|
||||
ratingsBar.BarColour = colour.YellowDark;
|
||||
ratingsBar.AccentColour = colour.YellowDark;
|
||||
ratingsGraph.Colour = colour.BlueDark;
|
||||
|
||||
failGraph.Colour = colour.YellowDarker;
|
||||
@ -415,11 +415,11 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
get
|
||||
{
|
||||
return bar.BarColour;
|
||||
return bar.AccentColour;
|
||||
}
|
||||
set
|
||||
{
|
||||
bar.BarColour = value;
|
||||
bar.AccentColour = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user