Skip to content

2. Theme Dictionary

i_82 edited this page Mar 26, 2018 · 7 revisions

Global

Key Type Description
style style tableView.style
tintColor color tableView.tintColor
backgroundColor color tableView.backgroundColor
style Description
Grouped UITableViewStyleGrouped
Plain UITableViewStylePlain

Type color, i.e. RGB (RGBA) in hex string, for example, #FF0000 is red.

Components

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

Navigation Bar

Key Type Description
navigationBarColor color navigationBar.barTintColor
navigationTitleColor color navigationBar.titleTextAttributes[NSForegroundColorAttributeName]

Status

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.

Clone this wiki locally