Checkboxes: Use theme tint color.

This commit is contained in:
SBiOSoftWhare 2020-07-09 18:58:44 +02:00
parent 184a49b537
commit 08045b6afd
7 changed files with 13 additions and 0 deletions

View file

@ -226,6 +226,8 @@
self.softLogoutClearDataLabel.textColor = ThemeService.shared.theme.textPrimaryColor;
self.softLogoutClearDataButton.backgroundColor = ThemeService.shared.theme.warningColor;
self.customServersTickButton.tintColor = ThemeService.shared.theme.tintColor;
[self.authInputsView customizeViewRendering];
[self setNeedsStatusBarAppearanceUpdate];

View file

@ -164,6 +164,9 @@
_bugReportDescriptionTextView.layer.borderColor = ThemeService.shared.theme.headerBackgroundColor.CGColor;
self.sendLogsButtonImage.tintColor = ThemeService.shared.theme.tintColor;
self.sendScreenshotButtonImage.tintColor = ThemeService.shared.theme.tintColor;
[self setNeedsStatusBarAppearanceUpdate];
}

View file

@ -862,6 +862,7 @@
// Set the right value of the tick box
localContactsCheckbox.image = hideNonMatrixEnabledContacts ? [UIImage imageNamed:@"selection_tick"] : [UIImage imageNamed:@"selection_untick"];
localContactsCheckbox.tintColor = ThemeService.shared.theme.tintColor;
// Add the check box container
[sectionHeader addSubview:localContactsCheckboxContainer];

View file

@ -277,6 +277,7 @@
cell.bottomLeftIcon.hidden = (asset.mediaType == PHAssetMediaTypeImage);
cell.bottomRightIcon.image = [UIImage imageNamed:@"selection_tick"];
cell.bottomRightIcon.tintColor = ThemeService.shared.theme.tintColor;
cell.bottomRightIcon.hidden = !selectedAssets || (NSNotFound == [selectedAssets indexOfObject:asset]);
// Disable user interaction in mxkImageView, in order to let collection handle user selection

View file

@ -27,6 +27,7 @@
[super customizeTableViewCellRendering];
_label.textColor = ThemeService.shared.theme.textPrimaryColor;
self.checkBox.tintColor = ThemeService.shared.theme.tintColor;
}
- (void)setEnabled:(BOOL)enabled

View file

@ -17,6 +17,8 @@
#import "TableViewCellWithCheckBoxes.h"
#import "Riot-Swift.h"
// The space between 2 check boxes
#define TABLEVIEWCELLWITHCHECKBOXES_MARGIN 8
@ -130,6 +132,7 @@
// Store the new check box unselected by default
checkbox.image = [UIImage imageNamed:@"selection_untick"];
checkbox.tintColor = ThemeService.shared.theme.tintColor;
checkbox.tag = 0;
[checkBoxesArray addObject:checkbox];

View file

@ -130,6 +130,8 @@ static CGFloat const kTextFontSize = 15.0;
self.view.backgroundColor = ThemeService.shared.theme.backgroundColor;
self.forgetMessageButton.tintColor = ThemeService.shared.theme.tintColor;
[self updateStringAttributes];
[self updateNavigationBar];
[self updateDeactivateAcccountButton];