Commit cf36b57f by Orkhan Alikhanov

Updated components to use global font

parent f0d2b907
...@@ -279,6 +279,7 @@ open class Button: UIButton, Pulseable, PulseableLayer, Themeable { ...@@ -279,6 +279,7 @@ open class Button: UIButton, Pulseable, PulseableLayer, Themeable {
*/ */
open func prepare() { open func prepare() {
contentScaleFactor = Screen.scale contentScaleFactor = Screen.scale
titleLabel?.font = Theme.font.regular(with: fontSize)
prepareVisualLayer() prepareVisualLayer()
preparePulse() preparePulse()
applyCurrentTheme() applyCurrentTheme()
......
...@@ -270,6 +270,7 @@ private extension DialogView { ...@@ -270,6 +270,7 @@ private extension DialogView {
/// Prepares detailsLabel. /// Prepares detailsLabel.
func prepareDetailsLabel() { func prepareDetailsLabel() {
contentArea.addSubview(detailsLabel) contentArea.addSubview(detailsLabel)
detailsLabel.font = Theme.font.regular(with: detailsLabel.fontSize)
detailsLabel.numberOfLines = 0 detailsLabel.numberOfLines = 0
detailsLabel.textColor = Color.darkText.secondary detailsLabel.textColor = Color.darkText.secondary
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment