summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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],