Adjust theme to future iOS 13 Dark Mode
Update provider logos where adequate: - NordVPN (use white on dark) - ProtonVPN (use green)
This commit is contained in:
parent
f5a74fab79
commit
4c591fc6f4
|
@ -34,11 +34,21 @@ 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 = {
|
||||||
|
guard #available(iOS 13, *) else {
|
||||||
|
return .darkText
|
||||||
|
}
|
||||||
|
return .label
|
||||||
|
}()
|
||||||
|
|
||||||
var primaryLightText: UIColor = .white
|
var primaryLightText: UIColor = .white
|
||||||
|
|
||||||
var secondaryText: UIColor = .gray
|
var secondaryText: UIColor = {
|
||||||
|
guard #available(iOS 13, *) else {
|
||||||
|
return .gray
|
||||||
|
}
|
||||||
|
return .secondaryLabel
|
||||||
|
}()
|
||||||
|
|
||||||
var on: UIColor {
|
var on: UIColor {
|
||||||
return accent1
|
return accent1
|
||||||
|
|
|
@ -4,11 +4,32 @@
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"scale" : "1x"
|
"scale" : "1x"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "1x",
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "dark"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"filename" : "nordvpn@2x.png",
|
"filename" : "nordvpn@2x.png",
|
||||||
"scale" : "2x"
|
"scale" : "2x"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"filename" : "nordvpn-dark@2x.png",
|
||||||
|
"appearances" : [
|
||||||
|
{
|
||||||
|
"appearance" : "luminosity",
|
||||||
|
"value" : "dark"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"filename" : "nordvpn@3x.png",
|
"filename" : "nordvpn@3x.png",
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 3.5 KiB |
Loading…
Reference in New Issue