Created
August 18, 2016 03:58
-
-
Save KyonLi/b149a8cfc1da23474c5737c527ceb99a to your computer and use it in GitHub Desktop.
FolioReaderCenter.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func configureNavBar() { | |
let navBackground = isNight(readerConfig.nightModeMenuBackground, UIColor.whiteColor()) | |
let tintColor = readerConfig.tintColor | |
let navText = isNight(UIColor.whiteColor(), UIColor.blackColor()) | |
let font = UIFont(name: "Avenir-Light", size: 17)! | |
setTranslucentNavigation(color: navBackground, tintColor: tintColor, titleColor: navText, andFont: font) | |
if FolioReader.nightMode { | |
UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: true) | |
} else { | |
UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.Default, animated: true) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment