From 14ddbaa58a591472b06fffe8c8eafd3ddf26e6ce Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Thu, 3 Nov 2022 00:28:44 +0100 Subject: [PATCH] New message indicator icon in orange background --- Classes/LinphoneUI/Base.lproj/UIChatCell.xib | 17 ++++++----------- Classes/LinphoneUI/UIChatCell.m | 5 +++++ Classes/Swift/Voip/Theme/VoipTheme.swift | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Classes/LinphoneUI/Base.lproj/UIChatCell.xib b/Classes/LinphoneUI/Base.lproj/UIChatCell.xib index 9ed041472..b6de45b80 100644 --- a/Classes/LinphoneUI/Base.lproj/UIChatCell.xib +++ b/Classes/LinphoneUI/Base.lproj/UIChatCell.xib @@ -1,9 +1,9 @@ - + - + @@ -66,15 +66,11 @@ @@ -103,7 +99,6 @@ - diff --git a/Classes/LinphoneUI/UIChatCell.m b/Classes/LinphoneUI/UIChatCell.m index 3fc01de59..0d6330496 100644 --- a/Classes/LinphoneUI/UIChatCell.m +++ b/Classes/LinphoneUI/UIChatCell.m @@ -21,6 +21,7 @@ #import "PhoneMainView.h" #import "LinphoneManager.h" #import "Utils.h" +#import "linphoneapp-Swift.h" @implementation UIChatCell @@ -38,6 +39,10 @@ [self addSubview:sub]; } [_imdmIcon setHidden:TRUE]; + _unreadCountView.backgroundColor = VoipTheme.primary_color; + _unreadCountView.layer.cornerRadius = 10; + _unreadCountView.clipsToBounds = true; + _unreadCountLabel.textAlignment = NSTextAlignmentCenter; return self; } diff --git a/Classes/Swift/Voip/Theme/VoipTheme.swift b/Classes/Swift/Voip/Theme/VoipTheme.swift index d1d7f1a55..ab361b52c 100644 --- a/Classes/Swift/Voip/Theme/VoipTheme.swift +++ b/Classes/Swift/Voip/Theme/VoipTheme.swift @@ -44,7 +44,7 @@ import UIKit // General colors (used by VoIP) - static let primary_color = UIColor(hex:"#ff5e00") + @objc static let primary_color = UIColor(hex:"#ff5e00") static let primary_dark_color = UIColor(hex:"#e65000") static let green_color = UIColor(hex:"#96c11f") static let dark_green_color = UIColor(hex:"#7d9f21")