Skip to content

Instantly share code, notes, and snippets.

@KyonLi
Created August 18, 2016 03:58
Show Gist options
  • Save KyonLi/b149a8cfc1da23474c5737c527ceb99a to your computer and use it in GitHub Desktop.
Save KyonLi/b149a8cfc1da23474c5737c527ceb99a to your computer and use it in GitHub Desktop.
FolioReaderCenter.swift
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