Add light colouring for user notifications and adjust lighting slightly

This commit is contained in:
Dean Herbert 2023-10-12 16:05:48 +09:00
parent aee8ba789c
commit 20f32e2025
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View File

@ -473,10 +473,9 @@ namespace osu.Game.Overlays.Notifications
base.Colour = value;
pulsateLayer.EdgeEffect = new EdgeEffectParameters
{
Colour = ((Color4)value).Opacity(0.5f), //todo: avoid cast
Colour = ((Color4)value).Opacity(0.18f),
Type = EdgeEffectType.Glow,
Radius = 12,
Roundness = 12,
Radius = 14,
};
}
}

View File

@ -42,8 +42,10 @@ namespace osu.Game.Overlays.Notifications
protected override IconUsage CloseButtonIcon => FontAwesome.Solid.Times;
[BackgroundDependencyLoader]
private void load(OverlayColourProvider colourProvider)
private void load(OsuColour colours, OverlayColourProvider colourProvider)
{
Light.Colour = colours.Orange2;
Content.Add(textDrawable = new OsuTextFlowContainer(t => t.Font = t.Font.With(size: 14, weight: FontWeight.Medium))
{
AutoSizeAxes = Axes.Y,