From 78bcc152dadae837af41ab4e42fe9c95342c119e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 23 Nov 2017 00:53:49 +0300 Subject: add text color to scheme --- Juick/Helpers/ColorScheme.h | 1 + Juick/Helpers/ColorScheme.m | 3 +++ Juick/Views/MessageCell.m | 1 + 3 files changed, 5 insertions(+) diff --git a/Juick/Helpers/ColorScheme.h b/Juick/Helpers/ColorScheme.h index 3226f75..cb3c29b 100644 --- a/Juick/Helpers/ColorScheme.h +++ b/Juick/Helpers/ColorScheme.h @@ -13,6 +13,7 @@ + (UIColor *)colorWithHex:(UInt32)col; +(UIColor *) mainBackground; ++(UIColor *) textColor; +(UIColor *) headerBackground; +(UIColor *) linkColor; @end diff --git a/Juick/Helpers/ColorScheme.m b/Juick/Helpers/ColorScheme.m index 2658e0f..39e3971 100644 --- a/Juick/Helpers/ColorScheme.m +++ b/Juick/Helpers/ColorScheme.m @@ -31,6 +31,9 @@ + (UIColor *) mainBackground { return [self colorWithHex:0xeaeadf]; } ++ (UIColor *) textColor { + return [self colorWithHex:0x222222]; +} + (UIColor *) linkColor { return [self colorWithHex:0x006699]; diff --git a/Juick/Views/MessageCell.m b/Juick/Views/MessageCell.m index 1cfe304..77d54cd 100644 --- a/Juick/Views/MessageCell.m +++ b/Juick/Views/MessageCell.m @@ -19,6 +19,7 @@ - (void)awakeFromNib { [super awakeFromNib]; + self.text.textColor = [ColorScheme textColor]; self.text.enabledTextCheckingTypes = NSTextCheckingTypeLink; self.text.delegate = self; self.text.linkAttributes = @{ (id)kCTForegroundColorAttributeName: [ColorScheme linkColor], -- cgit v1.2.3