mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Checkboxes: Use theme tint color.
This commit is contained in:
parent
184a49b537
commit
08045b6afd
7 changed files with 13 additions and 0 deletions
|
@ -225,6 +225,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];
|
||||
|
||||
|
|
|
@ -163,6 +163,9 @@
|
|||
self.cancelButton.tintColor = ThemeService.shared.theme.tintColor;
|
||||
|
||||
_bugReportDescriptionTextView.layer.borderColor = ThemeService.shared.theme.headerBackgroundColor.CGColor;
|
||||
|
||||
self.sendLogsButtonImage.tintColor = ThemeService.shared.theme.tintColor;
|
||||
self.sendScreenshotButtonImage.tintColor = ThemeService.shared.theme.tintColor;
|
||||
|
||||
[self setNeedsStatusBarAppearanceUpdate];
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
[super customizeTableViewCellRendering];
|
||||
|
||||
_label.textColor = ThemeService.shared.theme.textPrimaryColor;
|
||||
self.checkBox.tintColor = ThemeService.shared.theme.tintColor;
|
||||
}
|
||||
|
||||
- (void)setEnabled:(BOOL)enabled
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
|
@ -129,6 +129,8 @@ static CGFloat const kTextFontSize = 15.0;
|
|||
self.activityIndicator.backgroundColor = ThemeService.shared.theme.overlayBackgroundColor;
|
||||
|
||||
self.view.backgroundColor = ThemeService.shared.theme.backgroundColor;
|
||||
|
||||
self.forgetMessageButton.tintColor = ThemeService.shared.theme.tintColor;
|
||||
|
||||
[self updateStringAttributes];
|
||||
[self updateNavigationBar];
|
||||
|
|
Loading…
Reference in a new issue