summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-11-23 00:53:49 +0300
committerGravatar Vitaly Takmazov2017-11-23 00:53:49 +0300
commit78bcc152dadae837af41ab4e42fe9c95342c119e (patch)
treeeade7bfaf218fa8168293fa85893716d252ad22c
parentf5d748d0e7df6d7f798cd3da5752462bb1b84969 (diff)
add text color to scheme
-rw-r--r--Juick/Helpers/ColorScheme.h1
-rw-r--r--Juick/Helpers/ColorScheme.m3
-rw-r--r--Juick/Views/MessageCell.m1
3 files changed, 5 insertions, 0 deletions
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],