-
Notifications
You must be signed in to change notification settings - Fork 19
2. Theme Dictionary
i_82 edited this page May 24, 2018
·
7 revisions
| Key | Type | Description |
|---|---|---|
| style | style | tableView.style |
| tintColor | color | tableView.tintColor |
| backgroundColor | color | tableView.backgroundColor |
| separatorColor | color | color of separators between cells |
| backgroundImage | string | relative path of background image |
| style | Description |
|---|---|
| Grouped | UITableViewStyleGrouped |
| Plain | UITableViewStylePlain |
Type color, i.e. RGB (RGBA) in hex string, for example, #FF0000 is red.
| Key | Type | Description |
|---|---|---|
| headerTextColor | color | text color of header
|
| subheaderTextColor | color | text color of subheader
|
| footerTextColor | color | color of extra footer text |
| headerBackgroundColor | color | background color of header
|
| footerBackgroundColor | color | background color of footer |
| Key | Type | Description |
|---|---|---|
| cellBackgroundColor | color | cell.backgroundColor |
| disclosureIndicatorColor | color | color of disclosure indicator |
| selectedColor | color | color of selected cells |
| highlightedColor | color | color of highlighted cells |
| labelColor | color | cell.textLabel.textColor |
| valueColor | color | cell.detailTextLabel.textColor |
| Key | Type | Description |
|---|---|---|
| navigationBarColor | color | navigationBar.barTintColor |
| navigationTitleColor | color | navigationBar.titleTextAttributes[NSForegroundColorAttributeName] |
| Key | Type | Description |
|---|---|---|
| dangerColor | color | color of error |
| warningColor | color | color of warning |
| successColor | color | color of success |
Theme dictionary can be set for different cells/headers/footers separately.