`CalculatedTextSize` -> `FontSize`

This commit is contained in:
Salman Ahmed 2023-12-05 22:47:08 +03:00
parent f0364f01ea
commit a0813d18ca
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ public partial class OsuPasswordTextBox : OsuTextBox, ISuppressKeyEventLogging
protected override Drawable GetDrawableCharacter(char c) => new FallingDownContainer
{
AutoSizeAxes = Axes.Both,
Child = new PasswordMaskChar(CalculatedTextSize),
Child = new PasswordMaskChar(FontSize),
};
protected override bool AllowUniqueCharacterSamples => false;

View File

@ -268,7 +268,7 @@ protected override void OnFocusLost(FocusLostEvent e)
protected override Drawable GetDrawableCharacter(char c) => new FallingDownContainer
{
AutoSizeAxes = Axes.Both,
Child = new OsuSpriteText { Text = c.ToString(), Font = OsuFont.GetFont(size: CalculatedTextSize) },
Child = new OsuSpriteText { Text = c.ToString(), Font = OsuFont.GetFont(size: FontSize) },
};
protected override Caret CreateCaret() => caret = new OsuCaret

View File

@ -110,7 +110,7 @@ private void load(OverlayColourProvider colourProvider)
BackgroundFocused = colourProvider.Background4;
BackgroundUnfocused = colourProvider.Background4;
Placeholder.Font = OsuFont.GetFont(size: CalculatedTextSize, weight: FontWeight.SemiBold);
Placeholder.Font = OsuFont.GetFont(size: FontSize, weight: FontWeight.SemiBold);
PlaceholderText = CommonStrings.InputSearch;
CornerRadius = corner_radius;