reskin: kill kRiotPrimaryBgColor

This commit is contained in:
manuroe
2019-01-10 17:50:26 +01:00
parent 77e6a81276
commit dd4e20d389
49 changed files with 120 additions and 120 deletions
@@ -76,8 +76,8 @@
[RiotDesignValues.theme applyStyleOnSearchBar:self.searchBar];
// Use the primary bg color for the table view in plain style.
self.tableView.backgroundColor = kRiotPrimaryBgColor;
topview.backgroundColor = kRiotPrimaryBgColor;
self.tableView.backgroundColor = RiotDesignValues.theme.backgroundColor;
topview.backgroundColor = RiotDesignValues.theme.backgroundColor;
if (self.tableView.dataSource)
{
@@ -116,7 +116,7 @@
{
cell.textLabel.textColor = kRiotPrimaryTextColor;
cell.detailTextLabel.textColor = kRiotSecondaryTextColor;
cell.backgroundColor = kRiotPrimaryBgColor;
cell.backgroundColor = RiotDesignValues.theme.backgroundColor;
// Update the selected background view
if (kRiotSelectedBgColor)
@@ -79,8 +79,8 @@
[RiotDesignValues.theme applyStyleOnSearchBar:self.searchBar];
// Use the primary bg color for the table view in plain style.
self.tableView.backgroundColor = kRiotPrimaryBgColor;
topview.backgroundColor = kRiotPrimaryBgColor;
self.tableView.backgroundColor = RiotDesignValues.theme.backgroundColor;
topview.backgroundColor = RiotDesignValues.theme.backgroundColor;
self.searchDisplayController.searchResultsTableView.backgroundColor = self.tableView.backgroundColor;
if (self.tableView.dataSource)
@@ -120,7 +120,7 @@
{
cell.textLabel.textColor = kRiotPrimaryTextColor;
cell.detailTextLabel.textColor = kRiotSecondaryTextColor;
cell.backgroundColor = kRiotPrimaryBgColor;
cell.backgroundColor = RiotDesignValues.theme.backgroundColor;
// Update the selected background view
if (kRiotSelectedBgColor)
@@ -339,7 +339,7 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)(void);
self.activityIndicator.backgroundColor = kRiotOverlayColor;
// Check the table view style to select its bg color.
self.tableView.backgroundColor = ((self.tableView.style == UITableViewStylePlain) ? kRiotPrimaryBgColor : kRiotSecondaryBgColor);
self.tableView.backgroundColor = ((self.tableView.style == UITableViewStylePlain) ? RiotDesignValues.theme.backgroundColor : kRiotSecondaryBgColor);
self.view.backgroundColor = self.tableView.backgroundColor;
if (self.tableView.dataSource)
@@ -2362,7 +2362,7 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)(void);
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath;
{
cell.backgroundColor = kRiotPrimaryBgColor;
cell.backgroundColor = RiotDesignValues.theme.backgroundColor;
if (cell.selectionStyle != UITableViewCellSelectionStyleNone)
{
+1 -1
View File
@@ -29,7 +29,7 @@
[super customizeViewRendering];
self.containerView.backgroundColor = kRiotSecondaryBgColor;
self.textView.backgroundColor = kRiotPrimaryBgColor;
self.textView.backgroundColor = RiotDesignValues.theme.backgroundColor;
self.defaultTextColor = kRiotPrimaryTextColor;
self.cancelButton.tintColor = RiotDesignValues.theme.tintColor;
self.deleteButton.tintColor = RiotDesignValues.theme.tintColor;