xdripswift/xdrip/Constants/ConstantsUI.swift

42 lines
1.8 KiB
Swift
Raw Normal View History

import Foundation
import UIKit
enum ConstantsUI {
/// color for section titles in grouped table views, example in settings view
2021-03-22 22:27:23 +01:00
static let tableViewHeaderTextColor = UIColor.lightGray
/// color to use as background when a row is selected
2021-03-22 22:27:23 +01:00
static let tableRowSelectedBackGroundColor = UIColor.darkGray
/// color to use for disclosure indicator in settings views
2021-03-22 22:27:23 +01:00
static let disclosureIndicatorColor = UIColor.gray
/// segmentedControl font size
static let segmentedControlFont = UIFont.systemFont(ofSize: 11)
/// segmentedControl background color
static let segmentedControlBackgroundColor = UIColor.init(white: 0.05, alpha: 1)
/// segmentedControl border width
static let segmentedControlBorderWidth: CGFloat = 0.0
/// segmentedControl font color
static let segmentedControlNormalTextColor = UIColor.gray
/// segmentedControl font color when selected
static let segmentedControlSelectedTextColor = UIColor.black
/// segmentedControl background color when selected
static let segmentedControlSelectedTintColor = UIColor.lightGray
2021-05-24 14:16:20 +02:00
/// colors for lock screen button in toolbar
static let screenLockIconColor = UIColor.gray
/// value label font size when the screen is in normal operation mode
2021-05-24 14:16:20 +02:00
static let valueLabelFontSizeNormal = UIFont.systemFont(ofSize: 90)
/// value label font bigger size when the screen is in screen lock mode
2021-05-24 14:16:20 +02:00
static let valueLabelFontSizeScreenLock = UIFont.systemFont(ofSize: 120)
/// clock label font color. It shouldn't be too white or it could be distracting at night.
2021-05-24 14:16:20 +02:00
static let clockLabelColor = UIColor.lightGray
/// clock label font size (ideally should be set to the same as the bigger valueLabel font size
2021-05-24 14:16:20 +02:00
static let clockLabelFontSize = UIFont.systemFont(ofSize: 120)
}