ColorThemePainter
public protocol ColorThemePainter
Undocumented
-
This is where all paint method should be called.
Declaration
Swift
func apply(using theme: ColorTheme)
-
Override for adding more customization.
Note
By default this is called inside the apply method after calling all the paint methods.Declaration
Swift
func extend(using theme: ColorTheme)
-
Change the color appearance of UILabel.
The default implementation of this method paint activityIndicator using text
Declaration
Swift
func paintUILabel(using theme: ColorTheme)
-
Change the color appearance of UIActivityIndicatorView.
The default implementation of this method paint activityIndicator using primaryColor
Declaration
Swift
func paintUIActivityIndicatorView(using theme: ColorTheme)
-
Change the color appearance of UINavigationBar.
The default implementation of this method paint the pageIndicatorTintColor using secondaryColor and currentPageIndicatorTintColor with primaryColor.
Declaration
Swift
func paintUINavigationBar(using theme: ColorTheme)
-
Change the color appearance of UIPageControl.
The default implementation of this method paint the pageIndicatorTintColor using secondaryColor and currentPageIndicatorTintColor with primaryColor.
Declaration
Swift
func paintUIPageControl(using theme: ColorTheme)
-
Change the color appearance of UISegmentedControl.
The default implementation of this method paint the tintColor using primaryColor. This also change the color of the text in selected state to textColor and primaryColor when in normal state.
Declaration
Swift
func paintUISegmentedControl(using theme: ColorTheme)
-
Change the color appearance of UISlider.
The default implementation of this method paint the tintColor and thumbTintColor using secondaryColor.
Declaration
Swift
func paintUISlider(using theme: ColorTheme)
-
Change the color appearance of UISwitch.
The default implementation of this method paint the onTintColor using primaryColor and thumbTintCOlor using secondaryColor.
Declaration
Swift
func paintUISwitch(using theme: ColorTheme)
-
Change the color appearance of UIButton.
The default implementation of this method paint the backgroundColor using primaryColor and its’ text to textColor.
Declaration
Swift
func paintUIButton(using theme: ColorTheme)
-
Change the color appearance of CheckBox.
The default implementation of this method clear the background color of CheckBox.
Declaration
Swift
func paintSelectionButton(using theme: ColorTheme)
-
Change the color appearance of UIStepper.
The default implementation of this method paint the backgroundColor of the button it contain to UIColor.clear and its tintColor to textColor. This also set the default tintColor to textColor and backgroundColor to primaryColor
Declaration
Swift
func paintUIStepper(using theme: ColorTheme)
-
Change the color appearance of UIProgressView.
The default implementation of this method paint the progressTintColor using secondary color.
Declaration
Swift
func paintUIProgressView(using theme: ColorTheme)
-
Change the color appearance of UITableView.
The default implementation of this method paint the tintColor using the primary color and will set its background color to UIColor.clear.
Declaration
Swift
func paintUITableView(using theme: ColorTheme)
-
Change the color appearance of UITableViewCell.
The default implementation of this method paint the selected cell using accent color.
Declaration
Swift
func paintUITableViewCell(using theme: ColorTheme)
-
Change the color appearance of UIRefreshControl.
The default implementation of this method paint the tintColor using primaryColor.
Declaration
Swift
func paintUIRefreshControl(using theme: ColorTheme)
-
Change the color appearance of UIToolbar.
The default implementation of this method paint barTintColor using primaryColor and tintColor using secondaryColor
Declaration
Swift
func paintUIToolBar(using theme: ColorTheme)
-
Change the color appearance of UIStatusbar.
The default implementation of this method change the style of SearchBar to .minimal
Declaration
Swift
func paintUISearchBar(using theme: ColorTheme)
-
Change the color appearance of UIStatusbar.
The default implementation of this method change the barTintColor using primaryColor, tintColor to secondaryColor and unselectedItemTintColor using textColor
Declaration
Swift
func paintUITabBar(using theme: ColorTheme)