mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
reskin: Create ThemeService.shared
This commit is contained in:
@@ -595,7 +595,7 @@
|
||||
if (!tableViewCell)
|
||||
{
|
||||
tableViewCell = [[MXKTableViewCell alloc] init];
|
||||
tableViewCell.textLabel.textColor = ThemeService.theme.textSecondaryColor;
|
||||
tableViewCell.textLabel.textColor = ThemeService.shared.theme.textSecondaryColor;
|
||||
tableViewCell.textLabel.font = [UIFont systemFontOfSize:15.0];
|
||||
tableViewCell.selectionStyle = UITableViewCellSelectionStyleNone;
|
||||
}
|
||||
@@ -742,10 +742,10 @@
|
||||
NSString *roomCount = [NSString stringWithFormat:roomCountFormat, count];
|
||||
|
||||
NSMutableAttributedString *mutableSectionTitle = [[NSMutableAttributedString alloc] initWithString:title
|
||||
attributes:@{NSForegroundColorAttributeName : ThemeService.theme.headerTextPrimaryColor,
|
||||
attributes:@{NSForegroundColorAttributeName : ThemeService.shared.theme.headerTextPrimaryColor,
|
||||
NSFontAttributeName: [UIFont boldSystemFontOfSize:15.0]}];
|
||||
[mutableSectionTitle appendAttributedString:[[NSMutableAttributedString alloc] initWithString:roomCount
|
||||
attributes:@{NSForegroundColorAttributeName : ThemeService.theme.headerTextSecondaryColor,
|
||||
attributes:@{NSForegroundColorAttributeName : ThemeService.shared.theme.headerTextSecondaryColor,
|
||||
NSFontAttributeName: [UIFont boldSystemFontOfSize:15.0]}]];
|
||||
|
||||
sectionTitle = mutableSectionTitle;
|
||||
@@ -753,7 +753,7 @@
|
||||
else if (title)
|
||||
{
|
||||
sectionTitle = [[NSAttributedString alloc] initWithString:title
|
||||
attributes:@{NSForegroundColorAttributeName : ThemeService.theme.headerTextPrimaryColor,
|
||||
attributes:@{NSForegroundColorAttributeName : ThemeService.shared.theme.headerTextPrimaryColor,
|
||||
NSFontAttributeName: [UIFont boldSystemFontOfSize:15.0]}];
|
||||
}
|
||||
|
||||
@@ -767,7 +767,7 @@
|
||||
NSInteger sectionBitwise = 0;
|
||||
|
||||
sectionHeader = [[UIView alloc] initWithFrame:frame];
|
||||
sectionHeader.backgroundColor = ThemeService.theme.headerBackgroundColor;
|
||||
sectionHeader.backgroundColor = ThemeService.shared.theme.headerBackgroundColor;
|
||||
|
||||
frame.origin.x = 20;
|
||||
frame.origin.y = 5;
|
||||
@@ -970,7 +970,7 @@
|
||||
}
|
||||
|
||||
// Apply UI theme
|
||||
checkboxLabel.textColor = ThemeService.theme.textPrimaryColor;
|
||||
checkboxLabel.textColor = ThemeService.shared.theme.textPrimaryColor;
|
||||
|
||||
// Set the right value of the tick box
|
||||
localContactsCheckbox.image = hideNonMatrixEnabledContacts ? [UIImage imageNamed:@"selection_tick"] : [UIImage imageNamed:@"selection_untick"];
|
||||
|
||||
Reference in New Issue
Block a user