1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 18:53:51 +08:00

add border radius and shadow

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-08-10 12:11:21 +07:00
parent bdf6c2a5ed
commit a2b4f05ebe
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -4,7 +4,9 @@
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Effects;
using osu.Framework.Graphics.Shapes;
using osuTK;
using osuTK.Graphics;
namespace osu.Game.Overlays.Changelog
@ -26,6 +28,15 @@ namespace osu.Game.Overlays.Changelog
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Masking = true,
CornerRadius = 6,
EdgeEffect = new EdgeEffectParameters
{
Type = EdgeEffectType.Shadow,
Colour = Color4.Black.Opacity(0.25f),
Offset = new Vector2(0, 1),
Radius = 3,
},
Children = new Drawable[]
{
new Box