mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-16 21:02:04 +00:00
Use Dynamic Type in labels
This commit is contained in:
parent
816c7ca575
commit
3c2df0c6e5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user