mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 09:02:55 +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
|
namespace osu.Game.Graphics.UserInterface
|
||||||
{
|
{
|
||||||
public class Bar : Container
|
public class Bar : Container, IHasAccentColour
|
||||||
{
|
{
|
||||||
private Box background;
|
private Box background;
|
||||||
private readonly Box bar;
|
private readonly Box bar;
|
||||||
@ -51,7 +51,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Color4 BarColour
|
public Color4 AccentColour
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
@ -355,7 +355,7 @@ namespace osu.Game.Screens.Select
|
|||||||
stars.AccentColour = colour.Yellow;
|
stars.AccentColour = colour.Yellow;
|
||||||
|
|
||||||
ratingsBar.BackgroundColour = colour.Green;
|
ratingsBar.BackgroundColour = colour.Green;
|
||||||
ratingsBar.BarColour = colour.YellowDark;
|
ratingsBar.AccentColour = colour.YellowDark;
|
||||||
ratingsGraph.Colour = colour.BlueDark;
|
ratingsGraph.Colour = colour.BlueDark;
|
||||||
|
|
||||||
failGraph.Colour = colour.YellowDarker;
|
failGraph.Colour = colour.YellowDarker;
|
||||||
@ -415,11 +415,11 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return bar.BarColour;
|
return bar.AccentColour;
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
bar.BarColour = value;
|
bar.AccentColour = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user