Removing font scaling for Pillbutton

This commit is contained in:
Sumanth Nadigadda 2022-05-11 21:11:34 +05:30
parent b997dbdb7a
commit a0fd19ea7a

View File

@ -185,11 +185,11 @@ open class PillButton: Button, MVMCoreUIViewConstrainingProtocol {
switch buttonSize { switch buttonSize {
case .tiny: case .tiny:
titleLabel?.font = Styler.Font.BoldMicro.getFont() titleLabel?.font = Styler.Font.BoldMicro.getFont(false)
case .small: case .small:
titleLabel?.font = Styler.Font.BoldBodySmall.getFont() titleLabel?.font = Styler.Font.BoldBodySmall.getFont(false)
case .standard: case .standard:
titleLabel?.font = Styler.Font.BoldBodyLarge.getFont() titleLabel?.font = Styler.Font.BoldBodyLarge.getFont(false)
} }
layer.cornerRadius = getInnerPadding() layer.cornerRadius = getInnerPadding()