Commit c8226491 authored by Jose Blaya's avatar Jose Blaya
Browse files

Fix titleLabelView style in dark mode

parent f756ed80
...@@ -501,7 +501,9 @@ class DashboardViewController: AutolayoutViewController { ...@@ -501,7 +501,9 @@ class DashboardViewController: AutolayoutViewController {
toggleConnection.startButtonAnimation() toggleConnection.startButtonAnimation()
AppPreferences.shared.lastVPNConnectionStatus = .connecting AppPreferences.shared.lastVPNConnectionStatus = .connecting
let titleLabelView = UILabel(frame: CGRect.zero) let titleLabelView = UILabel(frame: CGRect.zero)
titleLabelView.style(style: TextStyle.textStyle7) titleLabelView.style(style: Theme.current.palette.appearance == .dark ?
TextStyle.textStyle6 :
TextStyle.textStyle7)
titleLabelView.text = L10n.Dashboard.Vpn.connecting.uppercased() titleLabelView.text = L10n.Dashboard.Vpn.connecting.uppercased()
Theme.current.applyCustomNavigationBar(navigationController!.navigationBar, Theme.current.applyCustomNavigationBar(navigationController!.navigationBar,
withTintColor: nil, withTintColor: nil,
...@@ -515,7 +517,9 @@ class DashboardViewController: AutolayoutViewController { ...@@ -515,7 +517,9 @@ class DashboardViewController: AutolayoutViewController {
toggleConnection.startButtonAnimation() toggleConnection.startButtonAnimation()
AppPreferences.shared.lastVPNConnectionStatus = .disconnecting AppPreferences.shared.lastVPNConnectionStatus = .disconnecting
let titleLabelView = UILabel(frame: CGRect.zero) let titleLabelView = UILabel(frame: CGRect.zero)
titleLabelView.style(style: TextStyle.textStyle7) titleLabelView.style(style: Theme.current.palette.appearance == .dark ?
TextStyle.textStyle6 :
TextStyle.textStyle7)
titleLabelView.text = L10n.Dashboard.Vpn.disconnecting.uppercased() titleLabelView.text = L10n.Dashboard.Vpn.disconnecting.uppercased()
Theme.current.applyCustomNavigationBar(navigationController!.navigationBar, Theme.current.applyCustomNavigationBar(navigationController!.navigationBar,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment