Sanitise font sizes / weights

This commit is contained in:
Dean Herbert 2024-08-06 15:17:43 +09:00
parent 60fc02bb9b
commit c4572ec265
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public LegacyKeyCounter(InputTrigger trigger)
Origin = Anchor.Centre,
Text = trigger.Name,
Colour = textColour,
Font = OsuFont.GetFont(size: 20),
Font = OsuFont.GetFont(weight: FontWeight.SemiBold),
},
},
}
@ -88,7 +88,7 @@ protected override void Activate(bool forwardPlayback = true)
keyContainer.ScaleTo(0.75f, transition_duration, Easing.Out);
keySprite.Colour = ActiveColour;
overlayKeyText.Text = CountPresses.Value.ToString();
overlayKeyText.Font = overlayKeyText.Font.With(weight: FontWeight.Bold);
overlayKeyText.Font = overlayKeyText.Font.With(weight: FontWeight.SemiBold);
}
protected override void Deactivate(bool forwardPlayback = true)