diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2021-11-17 15:24:43 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2021-11-22 10:42:58 +0100 |
| commit | a77ae5bd9c250c503430d74a5ecdb286102ed2e3 (patch) | |
| tree | a5e2258e706c0eb56a08444ef5a50b5222412535 | |
| parent | 3803f09aa07c279c51447e80d7f90a77a5aac953 (diff) | |
| download | mullvadvpn-a77ae5bd9c250c503430d74a5ecdb286102ed2e3.tar.xz mullvadvpn-a77ae5bd9c250c503430d74a5ecdb286102ed2e3.zip | |
NotificationBanner: extract colors
| -rw-r--r-- | ios/MullvadVPN/NotificationBannerView.swift | 4 | ||||
| -rw-r--r-- | ios/MullvadVPN/UIColor+Palette.swift | 3 |
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 |
