1
0
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:
Jorolf 2017-04-08 13:53:11 +02:00
parent 5e56e84c4a
commit f7a9a11ae5
2 changed files with 5 additions and 5 deletions

View File

@ -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
{ {

View File

@ -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;
} }
} }