Refactor color handling

colour*
This commit is contained in:
Drew DeVault
2017-03-15 20:52:31 -04:00
parent db5a1e241a
commit 01cca1a4d2
5 changed files with 81 additions and 39 deletions

View File

@ -23,6 +23,8 @@ namespace osu.Game.Screens.Select
public Action FilterChanged;
public string Search => searchTextBox.Text;
private OsuTabControl<SortMode> sortTabs;
private SortMode sort = SortMode.Title;
public SortMode Sort
@ -60,7 +62,6 @@ namespace osu.Game.Screens.Select
public FilterControl(float height)
{
TabControl<SortMode> sortTabs;
TabControl<GroupMode> groupTabs;
Children = new Drawable[]
@ -134,7 +135,7 @@ namespace osu.Game.Screens.Select
sortTabs = new OsuTabControl<SortMode>(87)
{
Width = 191,
AutoSort = true
AutoSort = true,
}
}
}
@ -164,7 +165,7 @@ namespace osu.Game.Screens.Select
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
spriteText.Colour = colours.GreenLight;
sortTabs.AccentColour = spriteText.Colour = colours.GreenLight;
}
}
}