failed background color to spec

This commit is contained in:
Michael Kirk 2018-07-09 17:00:41 -06:00
parent b0978abd01
commit 76745bee5b
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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: