diff --git a/SignalMessaging/Views/AvatarImageView.swift b/SignalMessaging/Views/AvatarImageView.swift index 68f2f3109..bc9167bd9 100644 --- a/SignalMessaging/Views/AvatarImageView.swift +++ b/SignalMessaging/Views/AvatarImageView.swift @@ -31,7 +31,7 @@ public class AvatarImageView: UIImageView { func initialize() { // Loki: Used to indicate a contact's online status - layer.borderWidth = 4 + layer.borderWidth = 2 // Loki: Observe online status changes NotificationCenter.default.addObserver(self, selector: #selector(handleContactOnlineStatusChangedNotification), name: .contactOnlineStatusChanged, object: nil) @@ -87,7 +87,7 @@ public class AvatarImageView: UIImageView { @objc func updateOnlineStatusIndicator() { let peerInfo = LokiP2PAPI.getInfo(for: contactID) let isOnline = peerInfo?.isOnline ?? false - let color: UIColor = isOnline ? .lokiGreen() : .lokiDarkGray() + let color: UIColor = isOnline ? .lokiGreen() : .lokiGray() let currentUserID = OWSIdentityManager.shared().identityKeyPair()!.hexEncodedPublicKey let isCurrentUser = (contactID == currentUserID) layer.borderColor = isCurrentUser ? UIColor.clear.cgColor : color.cgColor diff --git a/SignalMessaging/categories/UIColor+OWS.h b/SignalMessaging/categories/UIColor+OWS.h index 1ff9bc37e..f03b4b3a7 100644 --- a/SignalMessaging/categories/UIColor+OWS.h +++ b/SignalMessaging/categories/UIColor+OWS.h @@ -58,6 +58,7 @@ NS_ASSUME_NONNULL_BEGIN + (UIColor *)lokiDarkestGray; + (UIColor *)lokiDarkerGray; + (UIColor *)lokiDarkGray; ++ (UIColor *)lokiGray; + (UIColor *)lokiLightGray; @end diff --git a/SignalMessaging/categories/UIColor+OWS.m b/SignalMessaging/categories/UIColor+OWS.m index 971a47dd5..1b408d7a4 100644 --- a/SignalMessaging/categories/UIColor+OWS.m +++ b/SignalMessaging/categories/UIColor+OWS.m @@ -208,6 +208,7 @@ NS_ASSUME_NONNULL_BEGIN + (UIColor *)lokiDarkestGray { return [UIColor colorWithRGBHex:0x0A0A0A]; } + (UIColor *)lokiDarkerGray { return [UIColor colorWithRGBHex:0x252525]; } + (UIColor *)lokiDarkGray { return [UIColor colorWithRGBHex:0x313131]; } ++ (UIColor *)lokiGray { return [UIColor colorWithRGBHex:0x363636]; } + (UIColor *)lokiLightGray { return [UIColor colorWithRGBHex:0x414141]; } @end