Merge pull request #4455 from vector-im/design_kit_fonts

DesignKit: Handle text styles
This commit is contained in:
SBiOSoftWhare
2021-06-24 16:35:40 +02:00
committed by GitHub
10 changed files with 270 additions and 1 deletions
@@ -146,4 +146,8 @@ class DarkTheme: NSObject, Theme {
lazy var colors: Colors = {
return DarkColors()
}()
lazy var fonts: Fonts = {
return ElementFonts()
}()
}
@@ -153,4 +153,8 @@ class DefaultTheme: NSObject, Theme {
lazy var colors: Colors = {
return LightColors()
}()
lazy var fonts: Fonts = {
return ElementFonts()
}()
}
@@ -107,6 +107,7 @@ final class SideMenuViewController: UIViewController {
self.userAvatarView.update(theme: theme)
self.userDisplayNameLabel.textColor = theme.textPrimaryColor
self.userDisplayNameLabel.font = theme.fonts.title3SB
self.userIdLabel.textColor = theme.textSecondaryColor
for sideMenuActionView in self.sideMenuActionViews {