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 [self fakeOutgoingPngAction:thread
actionLabel:@"Fake Outgoing 'Outgoing Unsent' Png" actionLabel:@"Fake Outgoing 'Outgoing Unsent' Png"
imageSize:CGSizeMake(200.f, 200.f) imageSize:CGSizeMake(200.f, 200.f)
backgroundColor:[conversationStyle bubbleColorOutgoingUnsent] backgroundColor:[conversationStyle bubbleColorOutgoingFailed]
textColor:[UIColor whiteColor] textColor:[UIColor whiteColor]
imageLabel:@"W" imageLabel:@"W"
messageState:TSOutgoingMessageStateFailed messageState:TSOutgoingMessageStateFailed
@ -1336,7 +1336,7 @@ NS_ASSUME_NONNULL_BEGIN
[self fakeOutgoingPngAction:thread [self fakeOutgoingPngAction:thread
actionLabel:@"Fake Outgoing 'Outgoing Unsent' Png" actionLabel:@"Fake Outgoing 'Outgoing Unsent' Png"
imageSize:CGSizeMake(200.f, 200.f) imageSize:CGSizeMake(200.f, 200.f)
backgroundColor:[conversationStyle bubbleColorOutgoingUnsent] backgroundColor:[conversationStyle bubbleColorOutgoingFailed]
textColor:[UIColor whiteColor] textColor:[UIColor whiteColor]
imageLabel:@"W" imageLabel:@"W"
messageState:TSOutgoingMessageStateSending messageState:TSOutgoingMessageStateSending
@ -1344,7 +1344,7 @@ NS_ASSUME_NONNULL_BEGIN
[self fakeOutgoingPngAction:thread [self fakeOutgoingPngAction:thread
actionLabel:@"Fake Outgoing 'Outgoing Unsent' Png" actionLabel:@"Fake Outgoing 'Outgoing Unsent' Png"
imageSize:CGSizeMake(200.f, 200.f) imageSize:CGSizeMake(200.f, 200.f)
backgroundColor:[conversationStyle bubbleColorOutgoingUnsent] backgroundColor:[conversationStyle bubbleColorOutgoingFailed]
textColor:[UIColor whiteColor] textColor:[UIColor whiteColor]
imageLabel:@"W" imageLabel:@"W"
messageState:TSOutgoingMessageStateSent messageState:TSOutgoingMessageStateSent

View file

@ -137,7 +137,7 @@ public class ConversationStyle: NSObject {
private static let defaultBubbleColorIncoming = UIColor.ows_messageBubbleLightGray private static let defaultBubbleColorIncoming = UIColor.ows_messageBubbleLightGray
@objc @objc
public let bubbleColorOutgoingUnsent = UIColor.ows_light10 public let bubbleColorOutgoingFailed = UIColor.ows_darkSkyBlue
@objc @objc
public let bubbleColorOutgoingSending = UIColor.ows_fadedBlue public let bubbleColorOutgoingSending = UIColor.ows_fadedBlue
@ -155,7 +155,7 @@ public class ConversationStyle: NSObject {
} else if let outgoingMessage = message as? TSOutgoingMessage { } else if let outgoingMessage = message as? TSOutgoingMessage {
switch outgoingMessage.messageState { switch outgoingMessage.messageState {
case .failed: case .failed:
return bubbleColorOutgoingUnsent return bubbleColorOutgoingFailed
case .sending: case .sending:
return bubbleColorOutgoingSending return bubbleColorOutgoingSending
default: default: