Package-level declarations

Types

Link copied to clipboard
data class BackgroundColor(val primary: DashColor, val secondary: DashColor, val tertiary: DashColor, val quaternary: DashColor, val fade: DashColor, val sidebar: DashColor)
Link copied to clipboard
class BackgroundThemeHelper(view: View, attrs: AttributeSet?, defStyleAttr: Int = 0)
Link copied to clipboard
data class BorderColor(val primary: DashColor, val accent: DashColor, val red: DashColor)
Link copied to clipboard
data class ButtonColor(val primary: DashColor, val secondary: DashColor, val tertiary: DashColor, val quaternary: DashColor, val transparent: DashColor, val red: DashColor)
Link copied to clipboard
data class ChargingPinIcon(@ColorRes val textColor: Int)
Link copied to clipboard
data class ColorOptions(val statusColorMode: ColorMode, val navigationColorMode: ColorMode, @IntRange(from = 0, to = 255) val statusBarAlpha: Int, @IntRange(from = 0, to = 255) val navigationBarAlpha: Int, val fullScreen: Boolean)
Link copied to clipboard
data class DashDrawableCornerRadii(val topStart: Float, val topEnd: Float, val bottomEnd: Float, val bottomStart: Float)
Link copied to clipboard
typealias DefaultThemeFactory = () -> Theme
Link copied to clipboard
data class EvColor(val primaryProgressCheckOut: DashColor, val secondaryProgressCheckOut: DashColor, val backgroundProgress: DashColor, val secondaryProgressTextColor: DashColor)
Link copied to clipboard
data class GuidanceColor(val primary: DashColor, val onPrimary: DashColor, val onPrimaryInactive: DashColor, val secondary: DashColor, val onSecondary: DashColor, val onSecondaryInactive: DashColor, val tertiary: DashColor, val onTertiary: DashColor, val onTertiaryInactive: DashColor)
Link copied to clipboard
data class IconCollection(val camera: CameraIconSet, val controls: ControlsIconSet, val feedback: FeedbackIconSet, val information: InformationIconSet, val main: MainIconSet, val marker: MarkerIconSet, val sound: SoundIconSet, val tripProgress: TripProgressIconSet)
Link copied to clipboard
data class IconColor(val primary: DashColor, val secondary: DashColor, val tertiary: DashColor, val inverted: DashColor, val red: DashColor, val green: DashColor, val accent: DashColor)
Link copied to clipboard
data class IconTheme(@DrawableRes val puck: Int, @DrawableRes val puckShadow: Int, @DrawableRes val chargerL2: Int, @DrawableRes val chargerL3: Int)
Link copied to clipboard

The class is responsible for notifying the style change to the ThemeManager Thread safe Start observing when refCount 0 Stop when refCount = 0

Link copied to clipboard

Use case notifies a theme configuration change for specific id.

Link copied to clipboard
data class ProgressBarTheme(@ColorRes val primaryBackgroundTint: Int, @ColorRes val secondaryBackgroundTint: Int, @ColorRes val primaryTint: Int, @ColorRes val secondaryTint: Int)
Link copied to clipboard
data class RoutePointPinStyle(val primary: DashColor, val onPrimary: DashColor, val border: DashColor, val poiCategoryColorStyle: RoutePointPinStyle.PoiCategoryColorStyle, @DrawableRes val pinShadow: Int, @DrawableRes val pin: Int, @DrawableRes val pinVolume: Int)
Link copied to clipboard
data class SearchSuggestionPinStyle(val primary: DashColor, val onPrimary: DashColor, val border: DashColor, @DrawableRes val pinShadow: Int, @DrawableRes val pin: Int, @DrawableRes val pinVolume: Int)
Link copied to clipboard
data class SpeedLimitColor(val primary: DashColor, val onPrimary: DashColor, val secondary: DashColor, val onSecondary: DashColor, val accent: DashColor, val onAccent: DashColor)
Link copied to clipboard
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)
Link copied to clipboard
interface ThemeFactory
Link copied to clipboard
interface ThemeId : Parcelable
Link copied to clipboard
interface ThemeLoader
Link copied to clipboard
Link copied to clipboard
fun interface ThemeTransformer

A functional interface that defines a theme transformer for an application.

Link copied to clipboard
enum UiMode : Enum<UiMode>

Represents the available UI modes for an application.

Link copied to clipboard
Link copied to clipboard
data class WorkingHoursColor(val open: DashColor, val openUntil: DashColor, val closed: DashColor)

Functions

Link copied to clipboard
fun Theme.createStrokeDrawable(backgroundColor: DashColor?, strokeColor: DashColor?, stokeWidth: Int, cornerRadii: DashDrawableCornerRadii, inset: Int, shouldHighlightFocus: Boolean = false): Drawable?
Link copied to clipboard

Retrieve the value of an attribute in the Theme.

Link copied to clipboard

Retrieve the Theme object filled with dashTheme.style values and attribute values from the style resource referenced by attrStyleId.

Link copied to clipboard

Retrieve the Theme object filled with attribute values from the style resource specified by resId.

Link copied to clipboard
inline fun <T : View> T.observeInsets(insetMask: Int = WindowInsetsCompat.Type.systemBars(), crossinline listener: T.(Insets) -> Unit)