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:
Davide De Rosa 2019-07-28 16:35:43 +02:00
parent f5a74fab79
commit 4c591fc6f4
5 changed files with 33 additions and 2 deletions

View File

@ -34,11 +34,21 @@ struct Theme {
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 secondaryText: UIColor = .gray
var secondaryText: UIColor = {
guard #available(iOS 13, *) else {
return .gray
}
return .secondaryLabel
}()
var on: UIColor {
return accent1

View File

@ -4,11 +4,32 @@
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "1x",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
]
},
{
"idiom" : "universal",
"filename" : "nordvpn@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "nordvpn-dark@2x.png",
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"scale" : "2x"
},
{
"idiom" : "universal",
"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