fix assistantview for dark mode

This commit is contained in:
Danmei Chen 2021-02-16 11:32:41 +01:00
parent dc60be7eda
commit c67a3fbd99
2 changed files with 6 additions and 6 deletions

View file

@ -122,7 +122,7 @@ static UICompositeViewDescription *compositeDescription = nil;
[self resetLiblinphone:FALSE];
[self enableWelcomeViewButtons];
NSString *message = NSLocalizedString(@"I accept Belledonne Communications terms of use and privacy policy", nil);
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:message];
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:message attributes:@{NSForegroundColorAttributeName : [UIColor systemGrayColor]}];
[attributedString addAttribute:NSLinkAttributeName
value:@"https://www.linphone.org/general-terms"
range:[[attributedString string] rangeOfString:NSLocalizedString(@"terms of use", nil)]];

View file

@ -71,14 +71,14 @@
<constraints>
<constraint firstAttribute="width" constant="54" id="4WQ-mk-JlN"/>
</constraints>
<state key="normal" title="Button" image="checkbox_unchecked.png"/>
<state key="normal" image="checkbox_unchecked.png"/>
<connections>
<action selector="onAcceptTermsClick:" destination="-1" eventType="touchUpInside" id="grZ-W7-Lyz"/>
</connections>
</button>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" editable="NO" text="I accept Belledonne Communications terms of use and privacy policy" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="R4J-fD-JSt" userLabel="acceptText">
<rect key="frame" x="68" y="0.0" width="235" height="58"/>
<color key="textColor" systemColor="secondaryLabelColor"/>
<color key="textColor" systemColor="systemGrayColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
</textView>
@ -1595,9 +1595,6 @@ Once it is done, come back here and click on the button.</string>
<systemColor name="labelColor">
<color white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
<systemColor name="secondaryLabelColor">
<color red="0.23529411764705882" green="0.23529411764705882" blue="0.2627450980392157" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="secondarySystemBackgroundColor">
<color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
@ -1607,5 +1604,8 @@ Once it is done, come back here and click on the button.</string>
<systemColor name="systemGray2Color">
<color red="0.68235294117647061" green="0.68235294117647061" blue="0.69803921568627447" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemGrayColor">
<color red="0.55686274509803924" green="0.55686274509803924" blue="0.57647058823529407" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
</resources>
</document>