-
Notifications
You must be signed in to change notification settings - Fork 0
/
Theme.swift
77 lines (59 loc) · 2.59 KB
/
Theme.swift
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//
// Theme.swift
// PreSales-Huddle
//
// Created by Himanshu Phirke on 29/07/15.
// Copyright (c) 2015 synerzip. All rights reserved.
//
import UIKit
class Theme {
class Prospects {
static let navBarBG = UIColor.redColor()
static let tableViewSeparator = UIColor.clearColor()
static let cellBGEvenCell = UIColor(red: 1.000, green: 0.875, blue: 0.749, alpha: 1.00)
static let cellBGOddCell = UIColor(red: 1.000, green: 0.749, blue: 0.498, alpha: 1.00)
static let okButtonBG = UIColor(red: 139/255, green: 181/255, blue: 229/255, alpha: 1)
static let formBG = cellBGOddCell
static let textFieldBG = cellBGEvenCell
static let inputOutline = UIColor(red: 204.0/255.0, green: 204.0/255.0, blue: 204.0/255.0, alpha: 1.0)
static let detailText = UIColor(red: 0/255.0, green: 135/255.0,
blue: 222/255.0, alpha: 1.0)
static let detailTextSecond = UIColor(red: 204/255.0, green: 51/255.0,
blue: 51/255.0, alpha: 1.0)
static let RefreshControlBackground = cellBGOddCell
static let RefreshControl = UIColor.brownColor()
// static let
}
class Clients {
static let navBarBG = UIColor.redColor()
static let tableViewSeparator = UIColor.clearColor()
static let cellBGEvenCell = UIColor(red: 0.267, green: 0.839, blue: 0.992, alpha: 1.00)
static let cellBGOddCell = UIColor(red: 0.024, green: 0.667, blue: 0.831, alpha: 1.00)
static let formBG = cellBGOddCell
static let textFieldBG = cellBGEvenCell
static let detailText = UIColor(red: 1.000, green: 1.000, blue: 1.000, alpha: 1.00)
static let RefreshControlBackground = cellBGOddCell
static let RefreshControl = UIColor.yellowColor()
}
class Reports {
static let navBarBG = UIColor.yellowColor()
static let tableViewSeparator = UIColor.clearColor()
static let cellBGEvenCell = UIColor(red: 0.259, green: 0.651, blue: 0.478, alpha: 1.00)
static let cellBGOddCell = UIColor(red: 0.475, green: 0.824, blue: 0.667, alpha: 1.00)
static let formBG = cellBGOddCell
static let textFieldBG = cellBGEvenCell
static let RefreshControlBackground = cellBGOddCell
static let RefreshControl = UIColor.yellowColor()
}
class func applyButtonBorder(button: UIButton) {
button.layer.borderWidth = 1.0
button.layer.cornerRadius = 5.0
button.layer.borderColor = UIColor.clearColor().CGColor
button.tintColor = UIColor.whiteColor()
}
class func applyLabelBorder(label: UILabel) {
label.layer.borderWidth = 1.0
label.layer.cornerRadius = 5.0
label.layer.borderColor = UIColor.clearColor().CGColor
}
}