parent
db3cde3aae
commit
95f5ae8733
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Chinese (Simplified) translations (OnlyThen). [#95](https://github.com/passepartoutvpn/passepartout-ios/pull/95)
|
- Chinese (Simplified) translations (OnlyThen). [#95](https://github.com/passepartoutvpn/passepartout-ios/pull/95)
|
||||||
|
- Support for iOS 13 Dark Mode. [#93](https://github.com/passepartoutvpn/passepartout-ios/issues/93)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -34,25 +34,25 @@ struct Theme {
|
||||||
|
|
||||||
var accent1 = UIColor(rgb: 0xd69c68, alpha: 1.0)
|
var accent1 = UIColor(rgb: 0xd69c68, alpha: 1.0)
|
||||||
|
|
||||||
var primaryText: UIColor = .darkText
|
// var primaryText: UIColor = .darkText
|
||||||
// TODO: uncomment for iOS 13 Dark Mode
|
// TODO: uncomment for iOS 13 Dark Mode
|
||||||
// var primaryText: UIColor = {
|
var primaryText: UIColor = {
|
||||||
// guard #available(iOS 13, *) else {
|
guard #available(iOS 13, *) else {
|
||||||
// return .darkText
|
return .darkText
|
||||||
// }
|
}
|
||||||
// return .label
|
return .label
|
||||||
// }()
|
}()
|
||||||
|
|
||||||
var primaryLightText: UIColor = .white
|
var primaryLightText: UIColor = .white
|
||||||
|
|
||||||
var secondaryText: UIColor = .gray
|
// var secondaryText: UIColor = .gray
|
||||||
// TODO: uncomment for iOS 13 Dark Mode
|
// TODO: uncomment for iOS 13 Dark Mode
|
||||||
// var secondaryText: UIColor = {
|
var secondaryText: UIColor = {
|
||||||
// guard #available(iOS 13, *) else {
|
guard #available(iOS 13, *) else {
|
||||||
// return .gray
|
return .gray
|
||||||
// }
|
}
|
||||||
// return .secondaryLabel
|
return .secondaryLabel
|
||||||
// }()
|
}()
|
||||||
|
|
||||||
var on: UIColor {
|
var on: UIColor {
|
||||||
return accent1
|
return accent1
|
||||||
|
|
Loading…
Reference in New Issue