Unify the colori scheme into primary and secondary accent colors

This commit is contained in:
Maurice Parker
2019-09-18 02:49:57 -05:00
parent 372fb06716
commit db2ee18299
17 changed files with 36 additions and 181 deletions

View File

@@ -26,7 +26,7 @@ class NNWTableViewCell: UITableViewCell {
/// Subclass overrides should call super
func applyThemeProperties() {
let selectedBackgroundView = UIView(frame: .zero)
selectedBackgroundView.backgroundColor = AppAssets.tableViewCellSelectionColor
selectedBackgroundView.backgroundColor = AppAssets.primaryAccentColor
self.selectedBackgroundView = selectedBackgroundView
}
}

View File

@@ -40,15 +40,15 @@ class ThemedNavigationController: UINavigationController {
} else {
let navigationAppearance = UINavigationBarAppearance()
navigationAppearance.backgroundColor = AppAssets.barBackgroundColor
navigationAppearance.titleTextAttributes = [.foregroundColor: AppAssets.barTitleColor]
navigationAppearance.largeTitleTextAttributes = [.foregroundColor: AppAssets.barTitleColor]
navigationAppearance.titleTextAttributes = [.foregroundColor: UIColor.label]
navigationAppearance.largeTitleTextAttributes = [.foregroundColor: UIColor.label]
navigationBar.standardAppearance = navigationAppearance
navigationBar.tintColor = AppAssets.barTintColor
navigationBar.tintColor = AppAssets.primaryAccentColor
let toolbarAppearance = UIToolbarAppearance()
toolbarAppearance.backgroundColor = UIColor.white
toolbar.standardAppearance = toolbarAppearance
toolbar.tintColor = AppAssets.barTintColor
toolbar.tintColor = AppAssets.primaryAccentColor
}
}