Class
ColorProvider
public class ColorProvider: ColorProviding
A type that can provide custom colors for Tink views.
Relationships
Conforms To
ColorProviding
A type that can provide colors for Tink views.
Initializers
init()
public init()
init(background:secondaryBackground:groupedBackground:secondaryGroupedBackground:label:secondaryLabel:separator:accent:expenses:income:transfers:uncategorized:warning:expensesIconColor:incomeIconColor:transfersIconColor:uncategorizedIconColor:expensesIconBackgroundColor:incomeIconBackgroundColor:transfersIconBackgroundColor:uncategorizedIconBackgroundColor:)
public init(background: UIColor, secondaryBackground: UIColor, groupedBackground: UIColor, secondaryGroupedBackground: UIColor, label: UIColor, secondaryLabel: UIColor, separator: UIColor, accent: UIColor, expenses: UIColor, income: UIColor, transfers: UIColor, uncategorized: UIColor, warning: UIColor, expensesIconColor: UIColor? = nil, incomeIconColor: UIColor? = nil, transfersIconColor: UIColor? = nil, uncategorizedIconColor: UIColor? = nil, expensesIconBackgroundColor: UIColor? = nil, incomeIconBackgroundColor: UIColor? = nil, transfersIconBackgroundColor: UIColor? = nil, uncategorizedIconBackgroundColor: UIColor? = nil)
Initializes a color provider with the specified styling.
Parameters
Name | Type | Description |
---|---|---|
background | UIColor |
Color for the main background of the interface. |
secondaryBackground | UIColor |
Color for content layered on top of the main background. |
groupedBackground | UIColor |
Color for the main background of grouped interface components. |
secondaryGroupedBackground | UIColor |
Color for content layered on top of the main background of grouped interface components. |
label | UIColor |
Primary text color. |
secondaryLabel | UIColor |
Secondary text color. |
separator | UIColor |
Color for separators. |
accent | UIColor |
Colors for buttons, indicators and other similar elements. |
expenses | UIColor |
Color to represent expenses. |
income | UIColor |
Color to represent incomes. |
transfers | UIColor |
Color to represent transfers. |
uncategorized | UIColor |
Color representing uncategorized transactions. |
warning | UIColor |
Color representing a warning. |
expensesIconColor | UIColor? |
Color to represent expenses icon, defaults to |
incomeIconColor | UIColor? |
Color to represent incomes, defaults to |
transfersIconColor | UIColor? |
Color to represent transfers, defaults to |
uncategorizedIconColor | UIColor? |
Color representing uncategorized transactions, defaults to |
expensesIconBackgroundColor | UIColor? |
Color to represent expenses, defaults to |
incomeIconBackgroundColor | UIColor? |
Color to represent incomes, defaults to |
transfersIconBackgroundColor | UIColor? |
Color to represent transfers, defaults to |
uncategorizedIconBackgroundColor | UIColor? |
Color representing uncategorized transactions, defaults to |
Properties
background
var background
Color for the main background of the interface.
secondaryBackground
var secondaryBackground
Color for content layered on top of the main background.
label
var label
Primary text color.
secondaryLabel
var secondaryLabel
Secondary text color.
separator
var separator
Color for separators.
accent
var accent
Colors for buttons, indicators and other similar elements.
accentBackground
var accentBackground
Colors for background of buttons, indicators and other similar elements.
button
var button
Colors for buttons.
buttonLabel
var buttonLabel
Color for the primary buttons label.
secondaryButton
var secondaryButton: UIColor?
Color for secondary buttons. Defaults to button color.
secondaryButtonTitle
var secondaryButtonTitle: UIColor?
tertiaryButton
var tertiaryButton: UIColor?
Color for smaller buttons. Defaults to button color.
tertiaryButtonTitle
var tertiaryButtonTitle: UIColor?
tertiaryButtonBackground
var tertiaryButtonBackground: UIColor?
Color for the background of smaller buttons. Defaults to accentBackground color.
chevronButton
var chevronButton: UIColor?
Color for chevron buttons. Defaults to accent color.
chevronButtonDisabled
var chevronButtonDisabled: UIColor?
Color for disabled chevron buttons. Defaults to a disabled chevronButton color with 20% alpha.
groupedBackground
var groupedBackground: UIColor?
Color for the main background of grouped interface components.
secondaryGroupedBackground
var secondaryGroupedBackground: UIColor?
Color for content layered on top of the main background of grouped interface components.
expenses
var expenses
Color to represent expenses.
income
var income
Color to represent incomes.
transfers
var transfers
Color to represent transfers.
uncategorized
var uncategorized
Color representing uncategorized transactions.
warning
var warning
Color representing a warning.
critical
var critical
Color representing a critical error.
leftToSpend
var leftToSpend
Color to represent left to spend.
expensesIconColor
var expensesIconColor: UIColor?
Color representing a expenses icon.
incomeIconColor
var incomeIconColor: UIColor?
Color representing a income icon.
transfersIconColor
var transfersIconColor: UIColor?
Color representing a tranfers icon.
uncategorizedIconColor
var uncategorizedIconColor: UIColor?
Color representing a uncategorized icon.
expensesIconBackgroundColor
var expensesIconBackgroundColor: UIColor?
Color representing a expenses icon background.
incomeIconBackgroundColor
var incomeIconBackgroundColor: UIColor?
Color representing a icnome icon background.
transfersIconBackgroundColor
var transfersIconBackgroundColor: UIColor?
Color representing a transfer icon background.
uncategorizedIconBackgroundColor
var uncategorizedIconBackgroundColor: UIColor?
Color representing a uncategorized icon background.