summaryrefslogtreecommitdiff
path: root/Juick/Helpers/ColorScheme.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/Helpers/ColorScheme.m')
-rw-r--r--Juick/Helpers/ColorScheme.m37
1 files changed, 37 insertions, 0 deletions
diff --git a/Juick/Helpers/ColorScheme.m b/Juick/Helpers/ColorScheme.m
new file mode 100644
index 0000000..8417489
--- /dev/null
+++ b/Juick/Helpers/ColorScheme.m
@@ -0,0 +1,37 @@
+//
+// Colors.m
+// Juick
+//
+// Created by Vitaly Takmazov on 05.11.13.
+// Copyright (c) 2013 com.juick. All rights reserved.
+//
+
+#import "ColorScheme.h"
+
+@implementation ColorScheme
+
++ (void) initialize
+{
+ [super initialize];
+}
+
+// takes 0x123456
++ (UIColor *)colorWithHex:(UInt32)col {
+ unsigned char r, g, b;
+ b = col & 0xFF;
+ g = (col >> 8) & 0xFF;
+ r = (col >> 16) & 0xFF;
+ return [UIColor colorWithRed:(float)r/255.0f green:(float)g/255.0f blue:(float)b/255.0f alpha:1];
+}
+
+
++ (UIColor *) mainBackground {
+ return [UIColor colorWithRed:238/255.0f green:238/255.0f blue:229/255.0f alpha:1.0f];
+}
+
++ (UIColor *) linkColor {
+ return [self colorWithHex:0x006699];
+}
+
+
+@end