mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Refactor colors to palette based design
This commit is contained in:
@ -33,14 +33,16 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
base.Selected();
|
||||
GainedSelection?.Invoke(this);
|
||||
|
||||
background.ColourInfo = OsuColor.BeatmapPanelSelected;
|
||||
background.ColourInfo = ColourInfo.GradientVertical(
|
||||
new Color4(20, 43, 51, 255),
|
||||
new Color4(40, 86, 102, 255));
|
||||
}
|
||||
|
||||
protected override void Deselected()
|
||||
{
|
||||
base.Deselected();
|
||||
|
||||
background.Colour = OsuColor.BeatmapPanelUnselected;
|
||||
background.Colour = new Color4(20, 43, 51, 255);
|
||||
}
|
||||
|
||||
protected override bool OnClick(InputState state)
|
||||
@ -70,7 +72,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
CornerRadius = Content.CornerRadius,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
BlendingMode = BlendingMode.Additive,
|
||||
Colour = OsuColor.BeatmapPanelUnselected,
|
||||
Colour = new Color4(20, 43, 51, 255),
|
||||
},
|
||||
new FlowContainer
|
||||
{
|
||||
|
@ -139,19 +139,22 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
new Box
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
ColourInfo = OsuColor.BeatmapHeaderBackgroundA,
|
||||
ColourInfo = ColourInfo.GradientHorizontal(
|
||||
Color4.Black, new Color4(0f, 0f, 0f, 0.9f)),
|
||||
Width = 0.05f,
|
||||
},
|
||||
new Box
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
ColourInfo = OsuColor.BeatmapHeaderBackgroundB,
|
||||
ColourInfo = ColourInfo.GradientHorizontal(
|
||||
new Color4(0f, 0f, 0f, 0.9f), new Color4(0f, 0f, 0f, 0.1f)),
|
||||
Width = 0.2f,
|
||||
},
|
||||
new Box
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
ColourInfo = OsuColor.BeatmapHeaderBackgroundC,
|
||||
ColourInfo = ColourInfo.GradientHorizontal(
|
||||
new Color4(0f, 0f, 0f, 0.1f), new Color4(0, 0, 0, 0)),
|
||||
Width = 0.05f,
|
||||
},
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Masking = true,
|
||||
CornerRadius = 10,
|
||||
BorderColour = OsuColor.PanelBorder,
|
||||
BorderColour = new Color4(221, 255, 255, 255),
|
||||
});
|
||||
}
|
||||
|
||||
@ -85,7 +85,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
nestedContainer.EdgeEffect = new EdgeEffect
|
||||
{
|
||||
Type = EdgeEffectType.Glow,
|
||||
Colour = OsuColor.PanelGlowSelected,
|
||||
Colour = new Color4(130, 204, 255, 150),
|
||||
Radius = 20,
|
||||
Roundness = 10,
|
||||
};
|
||||
@ -99,7 +99,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
Type = EdgeEffectType.Shadow,
|
||||
Offset = new Vector2(1),
|
||||
Radius = 10,
|
||||
Colour = OsuColor.PanelGlowUnselected,
|
||||
Colour = Color4.Black.Opacity(100),
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user