mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 10:02:46 +02:00
Reskin: Kill kRiotColorGreen and use RiotDesignValues.colorValues.accent instead
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#import "RoomMemberDetailsViewController.h"
|
||||
|
||||
#import "AppDelegate.h"
|
||||
#import "Riot-Swift.h"
|
||||
|
||||
#import "RoomMemberTitleView.h"
|
||||
|
||||
@@ -223,7 +224,7 @@
|
||||
|
||||
self.memberHeaderView.backgroundColor = kRiotSecondaryBgColor;
|
||||
self.roomMemberNameLabel.textColor = kRiotPrimaryTextColor;
|
||||
self.roomMemberStatusLabel.textColor = kRiotColorGreen;
|
||||
self.roomMemberStatusLabel.textColor = RiotDesignValues.colorValues.accent;
|
||||
|
||||
// Check the table view style to select its bg color.
|
||||
self.tableView.backgroundColor = ((self.tableView.style == UITableViewStylePlain) ? kRiotPrimaryBgColor : kRiotSecondaryBgColor);
|
||||
|
||||
@@ -1685,8 +1685,8 @@
|
||||
- (void)refreshSearchBarItemsColor:(UISearchBar *)searchBar
|
||||
{
|
||||
// bar tint color
|
||||
searchBar.barTintColor = searchBar.tintColor = kRiotColorGreen;
|
||||
searchBar.tintColor = kRiotColorGreen;
|
||||
searchBar.barTintColor = searchBar.tintColor = RiotDesignValues.colorValues.accent;
|
||||
searchBar.tintColor = RiotDesignValues.colorValues.accent;
|
||||
|
||||
// FIXME: this all seems incredibly fragile and tied to gutwrenching the current UISearchBar internals.
|
||||
|
||||
@@ -1697,7 +1697,7 @@
|
||||
// Magnifying glass icon.
|
||||
UIImageView *leftImageView = (UIImageView *)searchBarTextField.leftView;
|
||||
leftImageView.image = [leftImageView.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
|
||||
leftImageView.tintColor = kRiotColorGreen;
|
||||
leftImageView.tintColor = RiotDesignValues.colorValues.accent;
|
||||
|
||||
// remove the gray background color
|
||||
UIView *effectBackgroundTop = [searchBarTextField valueForKey:@"_effectBackgroundTop"];
|
||||
@@ -1708,8 +1708,8 @@
|
||||
// place holder
|
||||
searchBarTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:searchBarTextField.placeholder
|
||||
attributes:@{NSUnderlineStyleAttributeName: @(NSUnderlineStyleSingle),
|
||||
NSUnderlineColorAttributeName: kRiotColorGreen,
|
||||
NSForegroundColorAttributeName: kRiotColorGreen}];
|
||||
NSUnderlineColorAttributeName: RiotDesignValues.colorValues.accent,
|
||||
NSForegroundColorAttributeName: RiotDesignValues.colorValues.accent}];
|
||||
}
|
||||
|
||||
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText
|
||||
|
||||
Reference in New Issue
Block a user