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
|
@ -226,6 +226,8 @@
|
||||||
self.softLogoutClearDataLabel.textColor = ThemeService.shared.theme.textPrimaryColor;
|
self.softLogoutClearDataLabel.textColor = ThemeService.shared.theme.textPrimaryColor;
|
||||||
self.softLogoutClearDataButton.backgroundColor = ThemeService.shared.theme.warningColor;
|
self.softLogoutClearDataButton.backgroundColor = ThemeService.shared.theme.warningColor;
|
||||||
|
|
||||||
|
self.customServersTickButton.tintColor = ThemeService.shared.theme.tintColor;
|
||||||
|
|
||||||
[self.authInputsView customizeViewRendering];
|
[self.authInputsView customizeViewRendering];
|
||||||
|
|
||||||
[self setNeedsStatusBarAppearanceUpdate];
|
[self setNeedsStatusBarAppearanceUpdate];
|
||||||
|
|
|
@ -164,6 +164,9 @@
|
||||||
|
|
||||||
_bugReportDescriptionTextView.layer.borderColor = ThemeService.shared.theme.headerBackgroundColor.CGColor;
|
_bugReportDescriptionTextView.layer.borderColor = ThemeService.shared.theme.headerBackgroundColor.CGColor;
|
||||||
|
|
||||||
|
self.sendLogsButtonImage.tintColor = ThemeService.shared.theme.tintColor;
|
||||||
|
self.sendScreenshotButtonImage.tintColor = ThemeService.shared.theme.tintColor;
|
||||||
|
|
||||||
[self setNeedsStatusBarAppearanceUpdate];
|
[self setNeedsStatusBarAppearanceUpdate];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -862,6 +862,7 @@
|
||||||
|
|
||||||
// Set the right value of the tick box
|
// Set the right value of the tick box
|
||||||
localContactsCheckbox.image = hideNonMatrixEnabledContacts ? [UIImage imageNamed:@"selection_tick"] : [UIImage imageNamed:@"selection_untick"];
|
localContactsCheckbox.image = hideNonMatrixEnabledContacts ? [UIImage imageNamed:@"selection_tick"] : [UIImage imageNamed:@"selection_untick"];
|
||||||
|
localContactsCheckbox.tintColor = ThemeService.shared.theme.tintColor;
|
||||||
|
|
||||||
// Add the check box container
|
// Add the check box container
|
||||||
[sectionHeader addSubview:localContactsCheckboxContainer];
|
[sectionHeader addSubview:localContactsCheckboxContainer];
|
||||||
|
|
|
@ -277,6 +277,7 @@
|
||||||
cell.bottomLeftIcon.hidden = (asset.mediaType == PHAssetMediaTypeImage);
|
cell.bottomLeftIcon.hidden = (asset.mediaType == PHAssetMediaTypeImage);
|
||||||
|
|
||||||
cell.bottomRightIcon.image = [UIImage imageNamed:@"selection_tick"];
|
cell.bottomRightIcon.image = [UIImage imageNamed:@"selection_tick"];
|
||||||
|
cell.bottomRightIcon.tintColor = ThemeService.shared.theme.tintColor;
|
||||||
cell.bottomRightIcon.hidden = !selectedAssets || (NSNotFound == [selectedAssets indexOfObject:asset]);
|
cell.bottomRightIcon.hidden = !selectedAssets || (NSNotFound == [selectedAssets indexOfObject:asset]);
|
||||||
|
|
||||||
// Disable user interaction in mxkImageView, in order to let collection handle user selection
|
// Disable user interaction in mxkImageView, in order to let collection handle user selection
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
[super customizeTableViewCellRendering];
|
[super customizeTableViewCellRendering];
|
||||||
|
|
||||||
_label.textColor = ThemeService.shared.theme.textPrimaryColor;
|
_label.textColor = ThemeService.shared.theme.textPrimaryColor;
|
||||||
|
self.checkBox.tintColor = ThemeService.shared.theme.tintColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setEnabled:(BOOL)enabled
|
- (void)setEnabled:(BOOL)enabled
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
|
|
||||||
#import "TableViewCellWithCheckBoxes.h"
|
#import "TableViewCellWithCheckBoxes.h"
|
||||||
|
|
||||||
|
#import "Riot-Swift.h"
|
||||||
|
|
||||||
// The space between 2 check boxes
|
// The space between 2 check boxes
|
||||||
#define TABLEVIEWCELLWITHCHECKBOXES_MARGIN 8
|
#define TABLEVIEWCELLWITHCHECKBOXES_MARGIN 8
|
||||||
|
|
||||||
|
@ -130,6 +132,7 @@
|
||||||
|
|
||||||
// Store the new check box unselected by default
|
// Store the new check box unselected by default
|
||||||
checkbox.image = [UIImage imageNamed:@"selection_untick"];
|
checkbox.image = [UIImage imageNamed:@"selection_untick"];
|
||||||
|
checkbox.tintColor = ThemeService.shared.theme.tintColor;
|
||||||
checkbox.tag = 0;
|
checkbox.tag = 0;
|
||||||
[checkBoxesArray addObject:checkbox];
|
[checkBoxesArray addObject:checkbox];
|
||||||
|
|
||||||
|
|
|
@ -130,6 +130,8 @@ static CGFloat const kTextFontSize = 15.0;
|
||||||
|
|
||||||
self.view.backgroundColor = ThemeService.shared.theme.backgroundColor;
|
self.view.backgroundColor = ThemeService.shared.theme.backgroundColor;
|
||||||
|
|
||||||
|
self.forgetMessageButton.tintColor = ThemeService.shared.theme.tintColor;
|
||||||
|
|
||||||
[self updateStringAttributes];
|
[self updateStringAttributes];
|
||||||
[self updateNavigationBar];
|
[self updateNavigationBar];
|
||||||
[self updateDeactivateAcccountButton];
|
[self updateDeactivateAcccountButton];
|
||||||
|
|
Loading…
Reference in a new issue