From 733bc72be8735b33d3cbfbd6980f378356ad6777 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Fri, 7 Sep 2018 00:40:30 +0300 Subject: [PATCH] no message --- LegacyComponents/TGLocationOptionsView.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/LegacyComponents/TGLocationOptionsView.m b/LegacyComponents/TGLocationOptionsView.m index 7332785da3..b35edb6fbf 100644 --- a/LegacyComponents/TGLocationOptionsView.m +++ b/LegacyComponents/TGLocationOptionsView.m @@ -115,12 +115,15 @@ [_trackButton setAccentColor:pallete.accentColor spinnerColor:pallete.secondaryTextColor]; + if (pallete != nil && pallete.searchBarPallete.segmentedControlBackgroundImage == nil) + _mapModeButton.tintColor = pallete.accentColor; + [_mapModeControl setBackgroundImage:pallete.searchBarPallete.segmentedControlBackgroundImage forState:UIControlStateNormal barMetrics:UIBarMetricsDefault]; [_mapModeControl setBackgroundImage:pallete.searchBarPallete.segmentedControlSelectedImage forState:UIControlStateSelected barMetrics:UIBarMetricsDefault]; [_mapModeControl setBackgroundImage:pallete.searchBarPallete.segmentedControlSelectedImage forState:UIControlStateSelected | UIControlStateHighlighted barMetrics:UIBarMetricsDefault]; [_mapModeControl setBackgroundImage:pallete.searchBarPallete.segmentedControlHighlightedImage forState:UIControlStateHighlighted barMetrics:UIBarMetricsDefault]; [_mapModeControl setDividerImage:pallete.searchBarPallete.segmentedControlDividerImage forLeftSegmentState:UIControlStateNormal rightSegmentState:UIControlStateNormal barMetrics:UIBarMetricsDefault]; - + [_mapModeControl setTitleTextAttributes:@{UITextAttributeTextColor:pallete.searchBarPallete.accentColor, UITextAttributeTextShadowColor: [UIColor clearColor], UITextAttributeFont: TGSystemFontOfSize(13)} forState:UIControlStateNormal]; [_mapModeControl setTitleTextAttributes:@{UITextAttributeTextColor:pallete.searchBarPallete.accentContrastColor, UITextAttributeTextShadowColor: [UIColor clearColor], UITextAttributeFont: TGSystemFontOfSize(13)} forState:UIControlStateSelected]; }