mirror of
https://github.com/ppy/osu
synced 2025-01-09 15:49:32 +00:00
Add light colouring for user notifications and adjust lighting slightly
This commit is contained in:
parent
aee8ba789c
commit
20f32e2025
@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user