reskin: rename ColorValues to Theme

This commit is contained in:
manuroe
2019-01-10 15:32:59 +01:00
parent 6d69bfa167
commit 2b32e32ac4
79 changed files with 210 additions and 210 deletions
@@ -163,7 +163,7 @@
[self refreshSearchBarItemsColor:_searchBarView];
_searchBarHeaderBorder.backgroundColor = RiotDesignValues.colorValues.headerBorderColor;
_searchBarHeaderBorder.backgroundColor = RiotDesignValues.theme.headerBorderColor;
// Check the table view style to select its bg color.
self.tableView.backgroundColor = ((self.tableView.style == UITableViewStylePlain) ? kRiotPrimaryBgColor : kRiotSecondaryBgColor);
@@ -1684,8 +1684,8 @@
- (void)refreshSearchBarItemsColor:(UISearchBar *)searchBar
{
// bar tint color
searchBar.barTintColor = searchBar.tintColor = RiotDesignValues.colorValues.tintColor;
searchBar.tintColor = RiotDesignValues.colorValues.tintColor;
searchBar.barTintColor = searchBar.tintColor = RiotDesignValues.theme.tintColor;
searchBar.tintColor = RiotDesignValues.theme.tintColor;
// FIXME: this all seems incredibly fragile and tied to gutwrenching the current UISearchBar internals.
@@ -1696,7 +1696,7 @@
// Magnifying glass icon.
UIImageView *leftImageView = (UIImageView *)searchBarTextField.leftView;
leftImageView.image = [leftImageView.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
leftImageView.tintColor = RiotDesignValues.colorValues.tintColor;
leftImageView.tintColor = RiotDesignValues.theme.tintColor;
// remove the gray background color
UIView *effectBackgroundTop = [searchBarTextField valueForKey:@"_effectBackgroundTop"];
@@ -1707,8 +1707,8 @@
// place holder
searchBarTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:searchBarTextField.placeholder
attributes:@{NSUnderlineStyleAttributeName: @(NSUnderlineStyleSingle),
NSUnderlineColorAttributeName: RiotDesignValues.colorValues.tintColor,
NSForegroundColorAttributeName: RiotDesignValues.colorValues.tintColor}];
NSUnderlineColorAttributeName: RiotDesignValues.theme.tintColor,
NSForegroundColorAttributeName: RiotDesignValues.theme.tintColor}];
}
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText