summaryrefslogtreecommitdiff
path: root/Juick/Helpers/ColorScheme.m
blob: 84174895ca014818e96626ea9b58cdb0afbc9362 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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