mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
reskin: ColorValues: suffix UIColor properties names with "Color"
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
|
||||
[self refreshSearchBarItemsColor:_searchBarView];
|
||||
|
||||
_searchBarHeaderBorder.backgroundColor = RiotDesignValues.colorValues.headerBorder;
|
||||
_searchBarHeaderBorder.backgroundColor = RiotDesignValues.colorValues.headerBorderColor;
|
||||
|
||||
// Check the table view style to select its bg color.
|
||||
self.contactsTableView.backgroundColor = ((self.contactsTableView.style == UITableViewStylePlain) ? kRiotPrimaryBgColor : kRiotSecondaryBgColor);
|
||||
@@ -621,8 +621,8 @@
|
||||
- (void)refreshSearchBarItemsColor:(UISearchBar *)searchBar
|
||||
{
|
||||
// bar tint color
|
||||
searchBar.barTintColor = searchBar.tintColor = RiotDesignValues.colorValues.accent;
|
||||
searchBar.tintColor = RiotDesignValues.colorValues.accent;
|
||||
searchBar.barTintColor = searchBar.tintColor = RiotDesignValues.colorValues.tintColor;
|
||||
searchBar.tintColor = RiotDesignValues.colorValues.tintColor;
|
||||
|
||||
// FIXME: this all seems incredibly fragile and tied to gutwrenching the current UISearchBar internals.
|
||||
|
||||
@@ -633,7 +633,7 @@
|
||||
// Magnifying glass icon.
|
||||
UIImageView *leftImageView = (UIImageView *)searchBarTextField.leftView;
|
||||
leftImageView.image = [leftImageView.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
|
||||
leftImageView.tintColor = RiotDesignValues.colorValues.accent;
|
||||
leftImageView.tintColor = RiotDesignValues.colorValues.tintColor;
|
||||
|
||||
// remove the gray background color
|
||||
UIView *effectBackgroundTop = [searchBarTextField valueForKey:@"_effectBackgroundTop"];
|
||||
@@ -646,8 +646,8 @@
|
||||
{
|
||||
searchBarTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:searchBarTextField.placeholder
|
||||
attributes:@{NSUnderlineStyleAttributeName: @(NSUnderlineStyleSingle),
|
||||
NSUnderlineColorAttributeName: RiotDesignValues.colorValues.accent,
|
||||
NSForegroundColorAttributeName: RiotDesignValues.colorValues.accent}];
|
||||
NSUnderlineColorAttributeName: RiotDesignValues.colorValues.tintColor,
|
||||
NSForegroundColorAttributeName: RiotDesignValues.colorValues.tintColor}];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user