mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-20 18:26:34 +10:00
use navigationBarTitleFont
This commit is contained in:
@@ -209,7 +209,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
let textAttributes = [
|
||||
NSForegroundColorAttributeName: UIColor.yepTintColor(),
|
||||
NSShadowAttributeName: shadow,
|
||||
NSFontAttributeName: UIFont(name: "HelveticaNeue-CondensedBlack", size: 20)!
|
||||
NSFontAttributeName: UIFont.navigationBarTitleFont()
|
||||
]
|
||||
|
||||
UINavigationBar.appearance().titleTextAttributes = textAttributes
|
||||
|
||||
@@ -20,4 +20,8 @@ extension UIFont {
|
||||
class func skillTextLargeFont() -> UIFont {
|
||||
return UIFont(name: "Helvetica-Light", size: 20)!
|
||||
}
|
||||
|
||||
class func navigationBarTitleFont() -> UIFont {
|
||||
return UIFont(name: "HelveticaNeue-CondensedBlack", size: 20)!
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ class ProfileViewController: UIViewController {
|
||||
|
||||
let textAttributes = [
|
||||
NSForegroundColorAttributeName: UIColor.whiteColor(),
|
||||
NSFontAttributeName: UIFont(name: "HelveticaNeue-CondensedBlack", size: 20)!
|
||||
NSFontAttributeName: UIFont.navigationBarTitleFont()
|
||||
]
|
||||
|
||||
navigationController.navigationBar.titleTextAttributes = textAttributes
|
||||
|
||||
@@ -47,7 +47,7 @@ class SettingsViewController: UIViewController {
|
||||
|
||||
let textAttributes = [
|
||||
NSForegroundColorAttributeName: UIColor.yepTintColor(),
|
||||
NSFontAttributeName: UIFont(name: "HelveticaNeue-CondensedBlack", size: 20)!
|
||||
NSFontAttributeName: UIFont.navigationBarTitleFont()
|
||||
]
|
||||
|
||||
navigationController.navigationBar.titleTextAttributes = textAttributes
|
||||
|
||||
Reference in New Issue
Block a user