// // AppDelegate+Appearance.swift // SheeeeeeeeetExample // // Created by Daniel Saidi on 2018-10-08. // Copyright © 2018 Daniel Saidi. All rights reserved. // import UIKit import Sheeeeeeeeet extension AppDelegate { func applyAppearance() { let blue = UIColor(hex: 0x0FA2F5) let green = UIColor(hex: 0x81c03f) let pink = UIColor(hex: 0xec5f72) let purple = UIColor(hex: 0xd9007b) let red = UIColor(hex: 0xff3333) let robotoBlack = "Roboto-Black" let robotoMedium = "Roboto-Medium" let robotoRegular = "Roboto-Regular" let appearance = ActionSheetAppearance.standard // appearance.popover.width = 500 appearance.item.font = UIFont(name: robotoRegular, size: 17) appearance.item.textColor = .darkText appearance.item.tintColor = .darkGray appearance.item.subtitleFont = UIFont(name: robotoRegular, size: 14) appearance.item.subtitleTextColor = blue // appearance.separatorColor = .red // appearance.itemsSeparatorColor = .blue // appearance.buttonsSeparatorColor = .green appearance.title.hideSeparator() appearance.title.font = UIFont(name: robotoMedium, size: 15) appearance.sectionTitle.hideSeparator() appearance.sectionTitle.font = UIFont(name: robotoMedium, size: 13) appearance.sectionTitle.height = 20 appearance.sectionMargin.height = 20 appearance.selectItem.selectedIcon = UIImage(named: "ic_checkmark") appearance.selectItem.selectedTintColor = blue appearance.selectItem.selectedTextColor = green appearance.selectItem.selectedIconTintColor = purple appearance.singleSelectItem.selectedIcon = UIImage(named: "ic_checkmark") appearance.singleSelectItem.selectedTintColor = green appearance.singleSelectItem.selectedTextColor = purple appearance.singleSelectItem.selectedIconTintColor = blue appearance.multiSelectItem.selectedIcon = UIImage(named: "ic_checkmark") appearance.multiSelectItem.selectedTintColor = purple appearance.multiSelectItem.selectedTextColor = blue appearance.multiSelectItem.selectedIconTintColor = green appearance.multiSelectToggleItem.hideSeparator() appearance.multiSelectToggleItem.font = UIFont(name: robotoMedium, size: 13) appearance.multiSelectToggleItem.selectAllTextColor = .lightGray appearance.multiSelectToggleItem.deselectAllTextColor = red appearance.linkItem.linkIcon = UIImage(named: "ic_arrow_right") appearance.okButton.textColor = .darkGray appearance.okButton.font = UIFont(name: robotoBlack, size: 17) appearance.dangerButton.textColor = pink appearance.dangerButton.font = UIFont(name: robotoMedium, size: 17) appearance.cancelButton.textColor = .lightGray appearance.cancelButton.font = UIFont(name: robotoMedium, size: 17) } }