mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
reskin: Rename RiotDesignValues -> ThemeService
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
#import "RecentCellData.h"
|
||||
|
||||
#import "RiotDesignValues.h"
|
||||
#import "ThemeService.h"
|
||||
|
||||
#import "MXRoom+Riot.h"
|
||||
|
||||
@@ -415,10 +415,10 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
|
||||
NSString *roomCount = [NSString stringWithFormat:@" %tu", count];
|
||||
|
||||
NSMutableAttributedString *mutableSectionTitle = [[NSMutableAttributedString alloc] initWithString:title
|
||||
attributes:@{NSForegroundColorAttributeName : RiotDesignValues.theme.headerTextPrimaryColor,
|
||||
attributes:@{NSForegroundColorAttributeName : ThemeService.theme.headerTextPrimaryColor,
|
||||
NSFontAttributeName: [UIFont boldSystemFontOfSize:15.0]}];
|
||||
[mutableSectionTitle appendAttributedString:[[NSMutableAttributedString alloc] initWithString:roomCount
|
||||
attributes:@{NSForegroundColorAttributeName : RiotDesignValues.theme.headerTextSecondaryColor,
|
||||
attributes:@{NSForegroundColorAttributeName : ThemeService.theme.headerTextSecondaryColor,
|
||||
NSFontAttributeName: [UIFont boldSystemFontOfSize:15.0]}]];
|
||||
|
||||
sectionTitle = mutableSectionTitle;
|
||||
@@ -426,7 +426,7 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
|
||||
else if (title)
|
||||
{
|
||||
sectionTitle = [[NSAttributedString alloc] initWithString:title
|
||||
attributes:@{NSForegroundColorAttributeName : RiotDesignValues.theme.headerTextPrimaryColor,
|
||||
attributes:@{NSForegroundColorAttributeName : ThemeService.theme.headerTextPrimaryColor,
|
||||
NSFontAttributeName: [UIFont boldSystemFontOfSize:15.0]}];
|
||||
}
|
||||
|
||||
@@ -469,7 +469,7 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
|
||||
if (count)
|
||||
{
|
||||
UILabel *missedNotifAndUnreadBadgeLabel = [[UILabel alloc] init];
|
||||
missedNotifAndUnreadBadgeLabel.textColor = RiotDesignValues.theme.backgroundColor;
|
||||
missedNotifAndUnreadBadgeLabel.textColor = ThemeService.theme.backgroundColor;
|
||||
missedNotifAndUnreadBadgeLabel.font = [UIFont boldSystemFontOfSize:14];
|
||||
if (count > 1000)
|
||||
{
|
||||
@@ -487,7 +487,7 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
|
||||
|
||||
missedNotifAndUnreadBadgeBgView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, bgViewWidth, 20)];
|
||||
[missedNotifAndUnreadBadgeBgView.layer setCornerRadius:10];
|
||||
missedNotifAndUnreadBadgeBgView.backgroundColor = RiotDesignValues.theme.headerTextSecondaryColor;
|
||||
missedNotifAndUnreadBadgeBgView.backgroundColor = ThemeService.theme.headerTextSecondaryColor;
|
||||
|
||||
[missedNotifAndUnreadBadgeBgView addSubview:missedNotifAndUnreadBadgeLabel];
|
||||
missedNotifAndUnreadBadgeLabel.center = missedNotifAndUnreadBadgeBgView.center;
|
||||
@@ -516,7 +516,7 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
|
||||
- (UIView *)viewForHeaderInSection:(NSInteger)section withFrame:(CGRect)frame
|
||||
{
|
||||
UIView *sectionHeader = [[UIView alloc] initWithFrame:frame];
|
||||
sectionHeader.backgroundColor = RiotDesignValues.theme.headerBackgroundColor;
|
||||
sectionHeader.backgroundColor = ThemeService.theme.headerBackgroundColor;
|
||||
NSInteger sectionBitwise = 0;
|
||||
UIImageView *chevronView;
|
||||
UIView *accessoryView;
|
||||
@@ -754,8 +754,8 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
|
||||
}
|
||||
|
||||
// Apply the current UI theme.
|
||||
networkLabel.textColor = RiotDesignValues.theme.textPrimaryColor;
|
||||
directoryServerLabel.textColor = RiotDesignValues.theme.textSecondaryColor;
|
||||
networkLabel.textColor = ThemeService.theme.textPrimaryColor;
|
||||
directoryServerLabel.textColor = ThemeService.theme.textSecondaryColor;
|
||||
|
||||
// Set the current directory server name
|
||||
directoryServerLabel.text = _publicRoomsDirectoryDataSource.directoryServerDisplayname;
|
||||
@@ -846,7 +846,7 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
|
||||
if (!tableViewCell)
|
||||
{
|
||||
tableViewCell = [[MXKTableViewCell alloc] init];
|
||||
tableViewCell.textLabel.textColor = RiotDesignValues.theme.textSecondaryColor;
|
||||
tableViewCell.textLabel.textColor = ThemeService.theme.textSecondaryColor;
|
||||
tableViewCell.textLabel.font = [UIFont systemFontOfSize:15.0];
|
||||
tableViewCell.selectionStyle = UITableViewCellSelectionStyleNone;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user