From 0825689a4a4a6a1b2f79c67d9457b20d912129b4 Mon Sep 17 00:00:00 2001 From: SBiOSoftWhare Date: Tue, 19 Feb 2019 16:55:58 +0100 Subject: [PATCH] Update jump to last unread banner separator color in RoomViewController --- Riot/Modules/Room/RoomViewController.h | 1 + Riot/Modules/Room/RoomViewController.m | 1 + Riot/Modules/Room/RoomViewController.xib | 12 ++++++------ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Riot/Modules/Room/RoomViewController.h b/Riot/Modules/Room/RoomViewController.h index 9d79bf0fe..6161189bd 100644 --- a/Riot/Modules/Room/RoomViewController.h +++ b/Riot/Modules/Room/RoomViewController.h @@ -43,6 +43,7 @@ @property (weak, nonatomic) IBOutlet UIButton *jumpToLastUnreadButton; @property (weak, nonatomic) IBOutlet UILabel *jumpToLastUnreadLabel; @property (weak, nonatomic) IBOutlet UIButton *resetReadMarkerButton; +@property (weak, nonatomic) IBOutlet UIView *jumpToLastUnreadBannerSeparatorView; /** Force the display of the expanded header. diff --git a/Riot/Modules/Room/RoomViewController.m b/Riot/Modules/Room/RoomViewController.m index d43224cf6..73627f544 100644 --- a/Riot/Modules/Room/RoomViewController.m +++ b/Riot/Modules/Room/RoomViewController.m @@ -443,6 +443,7 @@ // Prepare jump to last unread banner self.jumpToLastUnreadBannerContainer.backgroundColor = ThemeService.shared.theme.backgroundColor; self.jumpToLastUnreadLabel.attributedText = [[NSAttributedString alloc] initWithString:NSLocalizedStringFromTable(@"room_jump_to_first_unread", @"Vector", nil) attributes:@{NSUnderlineStyleAttributeName: @(NSUnderlineStyleSingle), NSUnderlineColorAttributeName: ThemeService.shared.theme.textPrimaryColor, NSForegroundColorAttributeName: ThemeService.shared.theme.textPrimaryColor}]; + self.jumpToLastUnreadBannerSeparatorView.backgroundColor = ThemeService.shared.theme.headerBorderColor; self.expandedHeaderContainer.backgroundColor = ThemeService.shared.theme.baseColor; diff --git a/Riot/Modules/Room/RoomViewController.xib b/Riot/Modules/Room/RoomViewController.xib index 58c917eed..0a8a14425 100644 --- a/Riot/Modules/Room/RoomViewController.xib +++ b/Riot/Modules/Room/RoomViewController.xib @@ -1,12 +1,11 @@ - + - - + @@ -19,6 +18,7 @@ + @@ -80,7 +80,7 @@ - - + +