diff options
author | 2016-08-15 00:54:41 +0300 | |
---|---|---|
committer | 2016-08-15 00:54:41 +0300 | |
commit | a778c55cd848b0d0d452a20e8eaf6a477c068ca3 (patch) | |
tree | 4806924f036eff97cbbd623c23234aea68afc80e /Juick/ColorScheme.m | |
parent | c2a3fddc05e971351f919b1490869cb11e78ee30 (diff) |
colors
Diffstat (limited to 'Juick/ColorScheme.m')
-rw-r--r-- | Juick/ColorScheme.m | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Juick/ColorScheme.m b/Juick/ColorScheme.m index 257cc72..8417489 100644 --- a/Juick/ColorScheme.m +++ b/Juick/ColorScheme.m @@ -15,21 +15,22 @@ [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 [UIColor colorWithRed:0/255.0f green:102/255.0f blue:153/255.0f alpha:1.0f]; -} - -+ (UIColor *) navbarBackground { - return [UIColor colorWithRed:51/255.0f green:51/255.0f blue:51/255.0f alpha:1.0f]; -} - -+ (UIColor *) navbarFont { - return [UIColor colorWithRed:153/255.0f green:154/255.0f blue:153/255.0f alpha:1.0f]; + return [self colorWithHex:0x006699]; } |