1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-20 00:20:21 +08:00

Always add an icon

This commit is contained in:
Dan Balasescu
2025-08-16 16:03:47 +09:00
Unverified
parent 2750f5bb53
commit 01de2dc55b
@@ -26,26 +26,20 @@ namespace osu.Game.Overlays.Notifications
[BackgroundDependencyLoader]
private void load()
{
Avatar = new DrawableAvatar(user)
IconContent.Masking = true;
IconContent.CornerRadius = CORNER_RADIUS;
IconContent.ChangeChildDepth(IconDrawable, float.MinValue);
LoadComponentAsync(Avatar = new DrawableAvatar(user)
{
FillMode = FillMode.Fill,
};
if (user != null)
{
IconContent.Masking = true;
IconContent.CornerRadius = CORNER_RADIUS;
IconContent.ChangeChildDepth(IconDrawable, float.MinValue);
LoadComponentAsync(Avatar, IconContent.Add);
}
}, IconContent.Add);
}
protected override void Update()
{
base.Update();
if (user != null)
IconContent.Width = IconContent.DrawHeight;
IconContent.Width = IconContent.DrawHeight;
}
}
}