summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-11-17 15:24:43 +0100
committerAndrej Mihajlov <and@mullvad.net>2021-11-22 10:42:58 +0100
commita77ae5bd9c250c503430d74a5ecdb286102ed2e3 (patch)
treea5e2258e706c0eb56a08444ef5a50b5222412535
parent3803f09aa07c279c51447e80d7f90a77a5aac953 (diff)
downloadmullvadvpn-a77ae5bd9c250c503430d74a5ecdb286102ed2e3.tar.xz
mullvadvpn-a77ae5bd9c250c503430d74a5ecdb286102ed2e3.zip
NotificationBanner: extract colors
-rw-r--r--ios/MullvadVPN/NotificationBannerView.swift4
-rw-r--r--ios/MullvadVPN/UIColor+Palette.swift3
2 files changed, 5 insertions, 2 deletions
diff --git a/ios/MullvadVPN/NotificationBannerView.swift b/ios/MullvadVPN/NotificationBannerView.swift
index 3e857df849..e8b14a2988 100644
--- a/ios/MullvadVPN/NotificationBannerView.swift
+++ b/ios/MullvadVPN/NotificationBannerView.swift
@@ -38,7 +38,7 @@ class NotificationBannerView: UIView {
let textLabel = UILabel()
textLabel.translatesAutoresizingMaskIntoConstraints = false
textLabel.font = UIFont.systemFont(ofSize: 17, weight: .bold)
- textLabel.textColor = .white
+ textLabel.textColor = UIColor.InAppNotificationBanner.titleColor
textLabel.numberOfLines = 0
textLabel.lineBreakMode = .byWordWrapping
return textLabel
@@ -48,7 +48,7 @@ class NotificationBannerView: UIView {
let textLabel = UILabel()
textLabel.translatesAutoresizingMaskIntoConstraints = false
textLabel.font = UIFont.systemFont(ofSize: 17)
- textLabel.textColor = UIColor(white: 1, alpha: 0.6)
+ textLabel.textColor = UIColor.InAppNotificationBanner.bodyColor
textLabel.numberOfLines = 0
textLabel.lineBreakMode = .byWordWrapping
return textLabel
diff --git a/ios/MullvadVPN/UIColor+Palette.swift b/ios/MullvadVPN/UIColor+Palette.swift
index 2e74649f35..755b058cd0 100644
--- a/ios/MullvadVPN/UIColor+Palette.swift
+++ b/ios/MullvadVPN/UIColor+Palette.swift
@@ -105,6 +105,9 @@ extension UIColor {
static let errorIndicatorColor = dangerColor
static let successIndicatorColor = successColor
static let warningIndicatorColor = warningColor
+
+ static let titleColor = UIColor.white
+ static let bodyColor = UIColor(white: 1.0, alpha: 0.6)
}
// Common colors