From 76745bee5b979ce1cffa7f4904095ecb1bad028b Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Mon, 9 Jul 2018 17:00:41 -0600 Subject: [PATCH] failed background color to spec --- Signal/src/ViewControllers/DebugUI/DebugUIMessages.m | 6 +++--- SignalMessaging/utils/ConversationStyle.swift | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Signal/src/ViewControllers/DebugUI/DebugUIMessages.m b/Signal/src/ViewControllers/DebugUI/DebugUIMessages.m index dbea7315f..c98ea9c46 100644 --- a/Signal/src/ViewControllers/DebugUI/DebugUIMessages.m +++ b/Signal/src/ViewControllers/DebugUI/DebugUIMessages.m @@ -1328,7 +1328,7 @@ NS_ASSUME_NONNULL_BEGIN [self fakeOutgoingPngAction:thread actionLabel:@"Fake Outgoing 'Outgoing Unsent' Png" imageSize:CGSizeMake(200.f, 200.f) - backgroundColor:[conversationStyle bubbleColorOutgoingUnsent] + backgroundColor:[conversationStyle bubbleColorOutgoingFailed] textColor:[UIColor whiteColor] imageLabel:@"W" messageState:TSOutgoingMessageStateFailed @@ -1336,7 +1336,7 @@ NS_ASSUME_NONNULL_BEGIN [self fakeOutgoingPngAction:thread actionLabel:@"Fake Outgoing 'Outgoing Unsent' Png" imageSize:CGSizeMake(200.f, 200.f) - backgroundColor:[conversationStyle bubbleColorOutgoingUnsent] + backgroundColor:[conversationStyle bubbleColorOutgoingFailed] textColor:[UIColor whiteColor] imageLabel:@"W" messageState:TSOutgoingMessageStateSending @@ -1344,7 +1344,7 @@ NS_ASSUME_NONNULL_BEGIN [self fakeOutgoingPngAction:thread actionLabel:@"Fake Outgoing 'Outgoing Unsent' Png" imageSize:CGSizeMake(200.f, 200.f) - backgroundColor:[conversationStyle bubbleColorOutgoingUnsent] + backgroundColor:[conversationStyle bubbleColorOutgoingFailed] textColor:[UIColor whiteColor] imageLabel:@"W" messageState:TSOutgoingMessageStateSent diff --git a/SignalMessaging/utils/ConversationStyle.swift b/SignalMessaging/utils/ConversationStyle.swift index 89929e4ba..0a55b85c6 100644 --- a/SignalMessaging/utils/ConversationStyle.swift +++ b/SignalMessaging/utils/ConversationStyle.swift @@ -137,7 +137,7 @@ public class ConversationStyle: NSObject { private static let defaultBubbleColorIncoming = UIColor.ows_messageBubbleLightGray @objc - public let bubbleColorOutgoingUnsent = UIColor.ows_light10 + public let bubbleColorOutgoingFailed = UIColor.ows_darkSkyBlue @objc public let bubbleColorOutgoingSending = UIColor.ows_fadedBlue @@ -155,7 +155,7 @@ public class ConversationStyle: NSObject { } else if let outgoingMessage = message as? TSOutgoingMessage { switch outgoingMessage.messageState { case .failed: - return bubbleColorOutgoingUnsent + return bubbleColorOutgoingFailed case .sending: return bubbleColorOutgoingSending default: