reskin: Kill kRiotColorXxxx

This commit is contained in:
manuroe
2019-01-11 11:57:02 +01:00
parent 2fdb06d879
commit 9cce93ecea
20 changed files with 69 additions and 78 deletions
@@ -1198,8 +1198,8 @@
- (void)refreshSearchBarItemsColor:(UISearchBar *)searchBar
{
// bar tint color
searchBar.barTintColor = searchBar.tintColor = kRiotColorBlue;
searchBar.tintColor = kRiotColorBlue;
searchBar.barTintColor = searchBar.tintColor = ThemeService.shared.riotColorBlue;
searchBar.tintColor = ThemeService.shared.riotColorBlue;
// FIXME: this all seems incredibly fragile and tied to gutwrenching the current UISearchBar internals.
@@ -1210,7 +1210,7 @@
// Magnifying glass icon.
UIImageView *leftImageView = (UIImageView *)searchBarTextField.leftView;
leftImageView.image = [leftImageView.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
leftImageView.tintColor = kRiotColorBlue;
leftImageView.tintColor = ThemeService.shared.riotColorBlue;
// remove the gray background color
UIView *effectBackgroundTop = [searchBarTextField valueForKey:@"_effectBackgroundTop"];
@@ -1221,8 +1221,8 @@
// place holder
searchBarTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:searchBarTextField.placeholder
attributes:@{NSUnderlineStyleAttributeName: @(NSUnderlineStyleSingle),
NSUnderlineColorAttributeName: kRiotColorBlue,
NSForegroundColorAttributeName: kRiotColorBlue}];
NSUnderlineColorAttributeName: ThemeService.shared.riotColorBlue,
NSForegroundColorAttributeName: ThemeService.shared.riotColorBlue}];
}
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText