[iOS] Fixed color of the search cursor.

This commit is contained in:
Daria Volvenkova 2019-09-03 19:04:13 +03:00 committed by Aleksey Belousov
parent 5c95e98a68
commit 873d9a87a4
3 changed files with 4 additions and 6 deletions

View file

@ -115,9 +115,6 @@
<constraint firstAttribute="height" priority="250" id="rHp-eh-4pP"/>
</constraints>
<textInputTraits key="textInputTraits"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="tintColorName" value="whitePrimaryText"/>
</userDefinedRuntimeAttributes>
</searchBar>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>

View file

@ -596,6 +596,10 @@ continueUserActivity:(NSUserActivity *)userActivity
UISearchBar * searchBar = [UISearchBar appearance];
searchBar.barTintColor = [UIColor primary];
UIBarButtonItem *searchButtonApperance = [UIBarButtonItem appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class]]];
searchButtonApperance.tintColor = [UIColor whitePrimaryText];
UITextField * textFieldInSearchBar =
[UITextField appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class]]];

View file

@ -865,9 +865,6 @@
</constraints>
<color key="barTintColor" red="0.1215686275" green="0.59999999999999998" blue="0.32156862749999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<textInputTraits key="textInputTraits"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="tintColorName" value="whitePrimaryText"/>
</userDefinedRuntimeAttributes>
<connections>
<outlet property="delegate" destination="h4a-ne-bSJ" id="k3P-rj-vcL"/>
</connections>