Commit 58afd6f2 authored by Jose Blaya's avatar Jose Blaya
Browse files

New big title style

parent f88e06c7
......@@ -10,6 +10,7 @@ import UIKit
private enum Fonts {
static let robotoTextRegular = "Roboto-Regular"
static let robotoTextMedium = "Roboto-Medium"
}
extension UIFont {
......@@ -18,4 +19,8 @@ extension UIFont {
return UIFont(name: Fonts.robotoTextRegular, size: size)
}
public class func mediumFontWith(size: CGFloat) -> UIFont! {
return UIFont(name: Fonts.robotoTextMedium, size: size)
}
}
......@@ -213,6 +213,23 @@ public extension TextStyle {
lineHeight: 18
)
static let textStyle22 = TextStyle(
font: UIFont.mediumFontWith(size: 24),
color: UIColor.piaWhite,
foregroundColor: nil,
backgroundColor: nil,
tintColor: nil,
lineHeight: 20
)
static let textStyle23 = TextStyle(
font: UIFont.mediumFontWith(size: 24),
color: UIColor.piaGrey6,
foregroundColor: nil,
backgroundColor: nil,
tintColor: nil,
lineHeight: 20
)
struct Buttons {
public static let piaGreenButton = TextStyle(
......
......@@ -311,6 +311,15 @@ public class Theme {
}
}
/// :nodoc:
public func applyBigTitle(_ label: UILabel, appearance: Appearance) {
if palette.appearance == Appearance.light {
label.style(style: TextStyle.textStyle23)
} else {
label.style(style: TextStyle.textStyle22)
}
}
/// :nodoc:
public func applySubtitle(_ label: UILabel) {
let textAlignment = label.textAlignment
......
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