Theme

data class Theme(val id: ThemeId, @StyleRes val style: Int, val isNightTheme: Boolean, context: Context, val iconTheme: IconTheme, val chargingPinIcon: ChargingPinIcon, val progressBarTheme: ProgressBarTheme, @StyleRes val turnCardStyle: Int = style)

Constructors

Link copied to clipboard
constructor(id: ThemeId, @StyleRes style: Int, isNightTheme: Boolean, context: Context, iconTheme: IconTheme, chargingPinIcon: ChargingPinIcon, progressBarTheme: ProgressBarTheme, @StyleRes turnCardStyle: Int = style)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: ThemeId
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val style: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun Theme.createDrawable(color: DashColor, cornerRadius: Float, inset: Int, shouldHighlightFocus: Boolean = false): Drawable?
Link copied to clipboard
fun Theme.createStrokeDrawable(backgroundColor: DashColor?, strokeColor: DashColor?, stokeWidth: Int, cornerRadii: DashDrawableCornerRadii, inset: Int, shouldHighlightFocus: Boolean = false): Drawable?
fun Theme.createStrokeDrawable(backgroundColor: DashColor?, strokeColor: DashColor?, stokeWidth: Int, backgroundCornerRadius: Float, inset: Int, shouldHighlightFocus: Boolean = false): Drawable?
fun Theme.createStrokeDrawable(@ColorRes backgroundColorId: Int, @ColorRes strokeColorId: Int, stokeWidth: Int, backgroundCornerRadius: Float, inset: Int, shouldHighlightFocus: Boolean = false): Drawable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getColorFromAttr(@AttrRes attrColor: Int, typedValue: TypedValue = TypedValue(), resolveRefs: Boolean = true): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getDrawableSelector(drawableSelectorIndex: Int): StateListDrawable?
Link copied to clipboard
fun getIconDrawable(iconIndex: Int): Drawable?
Link copied to clipboard