diff options
author | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-12-09 11:14:50 +0300 |
---|---|---|
committer | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-12-09 11:30:57 +0300 |
commit | e152b1b6fa1c69ccba8c05a6073b26759913f27d (patch) | |
tree | 3be2812bf65689d15fe49d3cb87e4606c92cf32f /iphone/Maps | |
parent | ca6af3a386028c597be4b517241d801840cdc774 (diff) |
[MAPSME-3176] [ios] Fixed search UI coloring.
Diffstat (limited to 'iphone/Maps')
4 files changed, 22 insertions, 15 deletions
diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/MWMSearchManager.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/MWMSearchManager.mm index f5675fef1d..205827367f 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/MWMSearchManager.mm +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/MWMSearchManager.mm @@ -95,8 +95,6 @@ typedef NS_ENUM(NSUInteger, MWMSearchManagerActionBarState) { { [self.searchBarView mwm_refreshUI]; [self.actionBarView mwm_refreshUI]; - [self.contentView mwm_refreshUI]; - [self.tabBarView mwm_refreshUI]; [self.tabbedController mwm_refreshUI]; [self.tableViewController mwm_refreshUI]; [self.noMapsController mwm_refreshUI]; diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/CategoriesTab/MWMSearchCategoryCell.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/CategoriesTab/MWMSearchCategoryCell.mm index f026c54268..fbb93d3f26 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/CategoriesTab/MWMSearchCategoryCell.mm +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/CategoriesTab/MWMSearchCategoryCell.mm @@ -1,7 +1,8 @@ +#import "MWMSearchCategoryCell.h" #import "Common.h" #import "Macros.h" -#import "MWMSearchCategoryCell.h" #import "UIColor+MapsMeColor.h" +#import "UIFont+MapsMeFonts.h" #import "UIImageView+Coloring.h" @interface MWMSearchCategoryCell () @@ -25,7 +26,9 @@ - (void)setCategory:(NSString *)category { - self.label.text = L(category); + UILabel * label = self.label; + label.text = L(category); + label.textColor = [UIColor blackPrimaryText]; self.icon.mwm_name = [NSString stringWithFormat:@"ic_%@", category]; } diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/HistoryTab/MWMSearchHistoryRequestCell.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/HistoryTab/MWMSearchHistoryRequestCell.mm index a3b96577d2..24ee9c8894 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/HistoryTab/MWMSearchHistoryRequestCell.mm +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/HistoryTab/MWMSearchHistoryRequestCell.mm @@ -5,8 +5,8 @@ @interface MWMSearchHistoryRequestCell () -@property (weak, nonatomic) IBOutlet UILabel * title; -@property (weak, nonatomic) IBOutlet UIImageView * icon; +@property(weak, nonatomic) IBOutlet UILabel * label; +@property(weak, nonatomic) IBOutlet UIImageView * icon; @end @@ -23,8 +23,10 @@ - (void)config:(NSString *)title { - self.title.text = title; - [self.title sizeToFit]; + UILabel * label = self.label; + label.text = title; + label.textColor = [UIColor blackSecondaryText]; + [label sizeToFit]; } + (CGFloat)defaultCellHeight diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/HistoryTab/MWMSearchHistoryRequestCell.xib b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/HistoryTab/MWMSearchHistoryRequestCell.xib index 3e070b62cd..21e7a62d5e 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/HistoryTab/MWMSearchHistoryRequestCell.xib +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TabbedView/HistoryTab/MWMSearchHistoryRequestCell.xib @@ -1,8 +1,12 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10117" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> +<?xml version="1.0" encoding="UTF-8"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11542" systemVersion="16B2555" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> + <device id="retina4_7" orientation="portrait"> + <adaptation id="fullscreen"/> + </device> <dependencies> <deployment identifier="iOS"/> - <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11524"/> + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> <objects> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> @@ -26,7 +30,7 @@ </imageView> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="L0x-sD-vTW" userLabel="Separator"> <rect key="frame" x="60" y="43" width="260" height="1"/> - <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.12" colorSpace="calibratedRGB"/> + <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.12" colorSpace="custom" customColorSpace="sRGB"/> <constraints> <constraint firstAttribute="height" constant="1" id="bSd-Nh-svm"/> </constraints> @@ -34,10 +38,10 @@ <userDefinedRuntimeAttribute type="string" keyPath="backgroundColorName" value="blackDividers"/> </userDefinedRuntimeAttributes> </view> - <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="244" translatesAutoresizingMaskIntoConstraints="NO" id="t8W-bQ-Jgd" userLabel="Request label"> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="t8W-bQ-Jgd" userLabel="Request label"> <rect key="frame" x="60" y="12" width="42" height="20"/> <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="17"/> - <color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/> + <color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <nil key="highlightedColor"/> <userDefinedRuntimeAttributes> <userDefinedRuntimeAttribute type="string" keyPath="fontName" value="regular17"/> @@ -62,7 +66,7 @@ </userDefinedRuntimeAttributes> <connections> <outlet property="icon" destination="k5o-Xw-buz" id="RKY-vZ-6lM"/> - <outlet property="title" destination="t8W-bQ-Jgd" id="yYX-rB-2pk"/> + <outlet property="label" destination="t8W-bQ-Jgd" id="agp-cJ-gh1"/> </connections> </tableViewCell> </objects> |