Package-level declarations

Types

Link copied to clipboard
data class BackgroundColor(val primary: DashColor, val secondary: DashColor, val tertiary: DashColor, val fade: DashColor, val sidebar: DashColor) : ComposeFactory<DashBackgroundColor>
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) : ComposeFactory<DashBorderColor>
Link copied to clipboard
data class ButtonColor(val primary: DashColor, val secondary: DashColor, val tertiary: DashColor, val transparent: DashColor, val red: DashColor) : ComposeFactory<DashButtonColor>
Link copied to clipboard
data class ChargingPinIcon(@ColorRes val textColor: Int)
Link copied to clipboard
Link copied to clipboard
typealias DefaultThemeFactory = () -> Theme
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) : ComposeFactory<DashGuidanceColor>
Link copied to clipboard
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) : ComposeFactory<DashIconColor>
Link copied to clipboard
data class IconTheme(@DrawableRes val arrowLeft: Int, @DrawableRes val arrowRight: Int, @DrawableRes val audioIssues: Int, @DrawableRes val close: Int, @DrawableRes val guidanceIssues: Int, @DrawableRes val positionIssues: Int, @DrawableRes val puck: Int, @DrawableRes val puckShadow: Int, @DrawableRes val recenterNone: Int, @DrawableRes val recenterTracking: Int, @DrawableRes val recenterTrackingNorth: Int, @DrawableRes val recenterRoute: Int, @DrawableRes val report: Int, @DrawableRes val search: Int, @DrawableRes val settings: Int, @DrawableRes val music: Int, @DrawableRes val connectivity: Int, @DrawableRes val gpsOff: Int, @DrawableRes val checkBox: Int, @DrawableRes val tripAdvisor: Int, @DrawableRes val mediaNext: Int, @DrawableRes val mediaPause: Int, @DrawableRes val mediaPlay: Int, @DrawableRes val mediaPrevious: Int, @DrawableRes val noLogo: Int, @DrawableRes val defaulMediaApp: Int, @DrawableRes val mediaNextDisabled: Int, @DrawableRes val mediaPreviousDisabled: Int, @DrawableRes val chargerL2: Int, @DrawableRes val chargerL3: Int, @DrawableRes val border: Int, @DrawableRes val coffee: Int, @DrawableRes val food: Int, @DrawableRes val charging: Int, @DrawableRes val fuel: Int, @DrawableRes val compass: Int, @DrawableRes val sendDebugBundle: Int, @DrawableRes val icBackArrow: Int, @DrawableRes val icCross: Int, @DrawableRes val icPlug: Int)
Link copied to clipboard
data class InsetsCompat(val start: Int = 0, val top: Int = 0, val end: Int = 0, val bottom: Int = 0)
Link copied to clipboard
class LoaderRefHolder(loader: ThemeLoader, dispatcher: CoroutineDispatcher)

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 SearchPinStyle(val primary: DashColor, val onPrimary: DashColor, val accent: DashColor, val onAccent: DashColor, @DrawableRes val pinShadow: 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) : ComposeFactory<DashSpeedLimitColor>
Link copied to clipboard
Link copied to clipboard
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
interface ThemeSource
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) : ComposeFactory<DashWorkingHoursColor>

Properties

Link copied to clipboard
const val EMPTY_COLOR: Int

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
inline fun <T : View> T.observeInsets(insetMask: Int = WindowInsetsCompat.Type.systemBars(), crossinline listener: T.(InsetsCompat) -> Unit)