Introduce basic parts of colour scheme to settings sidebar

This commit is contained in:
Bartłomiej Dach
2021-10-03 17:30:22 +02:00
parent 17e0498860
commit f6df93f013
4 changed files with 76 additions and 35 deletions

View File

@ -12,7 +12,6 @@ using osu.Framework.Input.Events;
using osu.Framework.Localisation;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osuTK.Graphics;
namespace osu.Game.Overlays.Settings
{
@ -33,7 +32,7 @@ namespace osu.Game.Overlays.Settings
private const int header_size = 26;
private const int margin = 20;
private const int border_size = 2;
private const int border_size = 4;
public bool MatchingFilter
{
@ -63,14 +62,14 @@ namespace osu.Game.Overlays.Settings
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
private void load(OverlayColourProvider colourProvider, OsuColour colours)
{
AddRangeInternal(new Drawable[]
{
new Box
{
Name = "separator",
Colour = new Color4(0, 0, 0, 255),
Colour = colourProvider.Background6,
RelativeSizeAxes = Axes.X,
Height = border_size,
},