summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-02-26 12:21:11 +0100
committerAndrej Mihajlov <and@mullvad.net>2021-02-26 13:40:12 +0100
commit7b4fed77e660b150f2cabf0520d17786ef31a3a0 (patch)
treefac1ecb2c6fba8f4092a00143f0688430109ad0e
parentca34b00a94888259c076348f469ef03215c27f8d (diff)
downloadmullvadvpn-7b4fed77e660b150f2cabf0520d17786ef31a3a0.tar.xz
mullvadvpn-7b4fed77e660b150f2cabf0520d17786ef31a3a0.zip
Fix the invalid initial text color of the "unsecured connection" label on iOS 12
Using a custom named color in Interface builder on iOS 12 results in the label overriding the text label color after viewDidLoad. Using any standard color, i.e white makes this problem go away
-rw-r--r--ios/MullvadVPN/ConnectViewController.xib5
1 files changed, 1 insertions, 4 deletions
diff --git a/ios/MullvadVPN/ConnectViewController.xib b/ios/MullvadVPN/ConnectViewController.xib
index 2cf50c7cef..ff2f253c22 100644
--- a/ios/MullvadVPN/ConnectViewController.xib
+++ b/ios/MullvadVPN/ConnectViewController.xib
@@ -31,7 +31,7 @@
<rect key="frame" x="0.0" y="0.0" width="366" height="24"/>
<accessibility key="accessibilityConfiguration" identifier="SecureConnectionLabel"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="20"/>
- <color key="textColor" name="Success"/>
+ <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="daZ-9L-RFn">
@@ -109,8 +109,5 @@
<namedColor name="Primary">
<color red="0.16078431372549021" green="0.30196078431372547" blue="0.45098039215686275" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
- <namedColor name="Success">
- <color red="0.26666666666666666" green="0.67843137254901964" blue="0.30196078431372547" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
- </namedColor>
</resources>
</document>