Added heart_size constant and adjusted the glow radius value

Added heart_size constant and adjusted the glow radius value to be more in line with the website
This commit is contained in:
Jacob Van Meter 2021-08-14 21:48:57 -04:00
parent 71ccd38bb3
commit 6472d85aae
1 changed files with 7 additions and 6 deletions

View File

@ -24,6 +24,7 @@ namespace osu.Game.Overlays.Changelog
public class ChangelogSupporterPromo : CompositeDrawable
{
private const float image_container_width = 164;
private const float heart_size = 75;
private readonly FillFlowContainer textContainer;
private readonly Container imageContainer;
@ -143,21 +144,21 @@ private void load(OsuColour colour, TextureStore textures)
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Width = 75,
Height = 75,
Width = heart_size,
Height = heart_size,
Margin = new MarginPadding { Top = 70 },
Masking = true,
EdgeEffect = new EdgeEffectParameters
{
Type = EdgeEffectType.Shadow,
Colour = colour.Pink,
Radius = 17,
Roundness = 39f,
Radius = 10,
Roundness = heart_size / 2,
},
Child = new Sprite
{
Width = 75,
Height = 75,
Width = heart_size,
Height = heart_size,
Texture = textures.Get(@"Online/supporter-heart"),
},
},