Use Dynamic Type in labels

This commit is contained in:
Davide De Rosa 2019-11-20 19:17:34 +01:00
parent 816c7ca575
commit 3c2df0c6e5

View File

@ -124,24 +124,21 @@ extension UIView {
extension UILabel {
func apply(_ theme: Theme) {
font = .preferredFont(forTextStyle: .body)
textColor = theme.palette.primaryText
}
func applyLight(_ theme: Theme) {
font = .preferredFont(forTextStyle: .body)
textColor = theme.palette.primaryLightText
}
func applyAccent(_ theme: Theme) {
font = .preferredFont(forTextStyle: .body)
textColor = theme.palette.accent1
}
}
extension UIButton {
func apply(_ theme: Theme) {
tintColor = theme.palette.action
}
}
extension UITextField {
func applyProfileId(_ theme: Theme) {
placeholder = L10n.Core.Global.Host.TitleInput.placeholder