mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 03:20:50 +02:00
reskin: Theme: rename colors as it is in the palette now
This commit is contained in:
@@ -109,7 +109,7 @@ static const CGFloat kDirectRoomBorderWidth = 3.0;
|
||||
|
||||
if (0 < roomCellData.notificationCount)
|
||||
{
|
||||
self.missedNotifAndUnreadIndicator.backgroundColor = roomCellData.highlightCount ? ThemeService.shared.theme.notificationMentionColor : ThemeService.shared.theme.notificationUnreadColor;
|
||||
self.missedNotifAndUnreadIndicator.backgroundColor = roomCellData.highlightCount ? ThemeService.shared.theme.notificationPrimaryColor : ThemeService.shared.theme.notificationSecondaryColor;
|
||||
|
||||
self.missedNotifAndUnreadBadgeBgView.hidden = NO;
|
||||
self.missedNotifAndUnreadBadgeBgView.backgroundColor = self.missedNotifAndUnreadIndicator.backgroundColor;
|
||||
|
||||
@@ -58,7 +58,7 @@ NSString *const kGroupInviteTableViewCellRoomKey = @"kGroupInviteTableViewCellRo
|
||||
self.leftButton.backgroundColor = ThemeService.shared.riotColorBlue;
|
||||
self.rightButton.backgroundColor = ThemeService.shared.riotColorBlue;
|
||||
|
||||
self.noticeBadgeView.backgroundColor = ThemeService.shared.theme.notificationMentionColor;
|
||||
self.noticeBadgeView.backgroundColor = ThemeService.shared.theme.notificationPrimaryColor;
|
||||
}
|
||||
|
||||
- (void)onDeclinePressed:(id)sender
|
||||
|
||||
@@ -126,7 +126,7 @@ static const CGFloat kDirectRoomBorderWidth = 3.0;
|
||||
if (0 < roomCellData.notificationCount)
|
||||
{
|
||||
self.missedNotifAndUnreadBadgeBgView.hidden = NO;
|
||||
self.missedNotifAndUnreadBadgeBgView.backgroundColor = roomCellData.highlightCount ? ThemeService.shared.theme.notificationMentionColor : ThemeService.shared.theme.notificationUnreadColor;
|
||||
self.missedNotifAndUnreadBadgeBgView.backgroundColor = roomCellData.highlightCount ? ThemeService.shared.theme.notificationPrimaryColor : ThemeService.shared.theme.notificationSecondaryColor;
|
||||
|
||||
self.missedNotifAndUnreadBadgeLabel.text = roomCellData.notificationCountStringValue;
|
||||
[self.missedNotifAndUnreadBadgeLabel sizeToFit];
|
||||
@@ -147,7 +147,7 @@ static const CGFloat kDirectRoomBorderWidth = 3.0;
|
||||
else if (roomCellData.roomSummary.room.summary.membership == MXMembershipInvite)
|
||||
{
|
||||
self.missedNotifAndUnreadBadgeBgView.hidden = NO;
|
||||
self.missedNotifAndUnreadBadgeBgView.backgroundColor = ThemeService.shared.theme.notificationMentionColor;
|
||||
self.missedNotifAndUnreadBadgeBgView.backgroundColor = ThemeService.shared.theme.notificationPrimaryColor;
|
||||
|
||||
self.missedNotifAndUnreadBadgeLabel.text = @"!";
|
||||
[self.missedNotifAndUnreadBadgeLabel sizeToFit];
|
||||
|
||||
@@ -63,7 +63,7 @@ NSString *const kInviteRecentTableViewCellRoomKey = @"kInviteRecentTableViewCell
|
||||
self.leftButton.backgroundColor = ThemeService.shared.theme.tintColor;
|
||||
self.rightButton.backgroundColor = ThemeService.shared.theme.tintColor;
|
||||
|
||||
self.noticeBadgeView.backgroundColor = ThemeService.shared.theme.notificationMentionColor;
|
||||
self.noticeBadgeView.backgroundColor = ThemeService.shared.theme.notificationPrimaryColor;
|
||||
}
|
||||
|
||||
- (void)onDeclinePressed:(id)sender
|
||||
|
||||
@@ -4230,11 +4230,11 @@
|
||||
// Set the right background color
|
||||
if (highlightCount)
|
||||
{
|
||||
missedDiscussionsBadgeLabelBgView.backgroundColor = ThemeService.shared.theme.notificationMentionColor;
|
||||
missedDiscussionsBadgeLabelBgView.backgroundColor = ThemeService.shared.theme.notificationPrimaryColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
missedDiscussionsBadgeLabelBgView.backgroundColor = ThemeService.shared.theme.notificationUnreadColor;
|
||||
missedDiscussionsBadgeLabelBgView.backgroundColor = ThemeService.shared.theme.notificationSecondaryColor;
|
||||
}
|
||||
|
||||
if (!missedDiscussionsButton || [leftBarButtonItems indexOfObject:missedDiscussionsButton] == NSNotFound)
|
||||
|
||||
@@ -798,15 +798,15 @@
|
||||
// Use a middle dot to signal missed notif in favourites
|
||||
[self setMissedDiscussionsMark:(recentsDataSource.missedFavouriteDiscussionsCount? @"\u00B7": nil)
|
||||
onTabBarItem:TABBAR_FAVOURITES_INDEX
|
||||
withBadgeColor:(recentsDataSource.missedHighlightFavouriteDiscussionsCount ? ThemeService.shared.theme.notificationMentionColor : ThemeService.shared.theme.notificationUnreadColor)];
|
||||
withBadgeColor:(recentsDataSource.missedHighlightFavouriteDiscussionsCount ? ThemeService.shared.theme.notificationPrimaryColor : ThemeService.shared.theme.notificationSecondaryColor)];
|
||||
|
||||
// Update the badge on People and Rooms tabs
|
||||
[self setMissedDiscussionsCount:recentsDataSource.missedDirectDiscussionsCount
|
||||
onTabBarItem:TABBAR_PEOPLE_INDEX
|
||||
withBadgeColor:(recentsDataSource.missedHighlightDirectDiscussionsCount ? ThemeService.shared.theme.notificationMentionColor : ThemeService.shared.theme.notificationUnreadColor)];
|
||||
withBadgeColor:(recentsDataSource.missedHighlightDirectDiscussionsCount ? ThemeService.shared.theme.notificationPrimaryColor : ThemeService.shared.theme.notificationSecondaryColor)];
|
||||
[self setMissedDiscussionsCount:recentsDataSource.missedGroupDiscussionsCount
|
||||
onTabBarItem:TABBAR_ROOMS_INDEX
|
||||
withBadgeColor:(recentsDataSource.missedHighlightGroupDiscussionsCount ? ThemeService.shared.theme.notificationMentionColor : ThemeService.shared.theme.notificationUnreadColor)];
|
||||
withBadgeColor:(recentsDataSource.missedHighlightGroupDiscussionsCount ? ThemeService.shared.theme.notificationPrimaryColor : ThemeService.shared.theme.notificationSecondaryColor)];
|
||||
}
|
||||
|
||||
- (void)setMissedDiscussionsCount:(NSUInteger)count onTabBarItem:(NSUInteger)index withBadgeColor:(UIColor*)badgeColor
|
||||
|
||||
Reference in New Issue
Block a user