From e7bb615b91d05d25ab84d9ed355a7bfdb0b2a353 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 3 Oct 2019 13:40:36 +0300 Subject: Fix chat and loading colors --- Juick/Colors.xcassets/Chat.colorset/Contents.json | 18 ++++++++++++++++++ Juick/Views/BubbleMessageCell.m | 2 +- Juick/Views/ContentLoadingCell.xib | 20 ++++++++++---------- 3 files changed, 29 insertions(+), 11 deletions(-) diff --git a/Juick/Colors.xcassets/Chat.colorset/Contents.json b/Juick/Colors.xcassets/Chat.colorset/Contents.json index 2702bf1..e96c07d 100644 --- a/Juick/Colors.xcassets/Chat.colorset/Contents.json +++ b/Juick/Colors.xcassets/Chat.colorset/Contents.json @@ -15,6 +15,24 @@ "green" : "0xF8" } } + }, + { + "idiom" : "universal", + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "0.200", + "alpha" : "1.000", + "blue" : "0.200", + "green" : "0.200" + } + } } ] } \ No newline at end of file diff --git a/Juick/Views/BubbleMessageCell.m b/Juick/Views/BubbleMessageCell.m index 53c4b2c..f889200 100644 --- a/Juick/Views/BubbleMessageCell.m +++ b/Juick/Views/BubbleMessageCell.m @@ -23,7 +23,7 @@ } -(void) configureWithMessage:(Message *)message isMe:(BOOL)isMe { - self.message.backgroundColor = isMe ? [UIColor colorNamed:@"Funny"] : [UIColor colorNamed:@"Background"]; + self.message.backgroundColor = isMe ? [UIColor colorNamed:@"Funny"] : [UIColor colorNamed:@"Chat"]; self.message.textColor = isMe ? [UIColor whiteColor] : [UIColor colorNamed:@"Text"]; self.message.dataDetectorTypes = UIDataDetectorTypeAll; self.message.tintColor = isMe? [UIColor whiteColor] : [UIColor colorNamed:@"Title"]; diff --git a/Juick/Views/ContentLoadingCell.xib b/Juick/Views/ContentLoadingCell.xib index fea4046..f7ca251 100644 --- a/Juick/Views/ContentLoadingCell.xib +++ b/Juick/Views/ContentLoadingCell.xib @@ -26,7 +26,7 @@ - + @@ -35,7 +35,7 @@ - + @@ -48,27 +48,27 @@ - + - + - + - + - + @@ -88,11 +88,11 @@ - - + + - + -- cgit v1.2.3