Package-level declarations

Types

Link copied to clipboard
data class AiSdAppThemeState(val stateKey: Long = 0, val systemColorPalette: Boolean = false, val systemDarkTheme: Boolean = true, val darkTheme: Boolean = true, val colorToken: ColorToken = ColorToken.MAUVE, val darkThemeToken: DarkThemeToken = DarkThemeToken.FRAPPE) : MviState

Carries AiSdAppThemeState data through the SDAI presentation layer.

Link copied to clipboard
class AiSdAppThemeViewModel(val dispatchersProvider: DispatchersProvider, preferenceManager: PreferenceManager, val onError: (Throwable) -> Unit = {}) : BaseMviViewModel<AiSdAppThemeState, EmptyIntent, EmptyEffect>

Coordinates AiSdAppThemeViewModel behavior in the SDAI presentation layer.

Link copied to clipboard
private data class CatppuccinPalette(val rosewater: Color, val flamingo: Color, val pink: Color, val mauve: Color, val red: Color, val maroon: Color, val peach: Color, val yellow: Color, val green: Color, val teal: Color, val sky: Color, val sapphire: Color, val blue: Color, val lavender: Color, val text: Color, val subtext1: Color, val subtext0: Color, val overlay1: Color, val base: Color, val mantle: Color, val crust: Color)

Carries CatppuccinPalette data through the SDAI presentation layer.

Properties

Link copied to clipboard
private const val EDGE_TO_EDGE_ENFORCED_API: Int = 35
private const val EDGE_TO_EDGE_ENFORCED_API: Int = 35

Functions

Link copied to clipboard
fun AiSdAppTheme(content: @Composable () -> Unit)
fun AiSdAppTheme(state: AiSdAppThemeState, applySystemBars: Boolean = true, content: @Composable () -> Unit)

Renders the AiSdAppTheme UI for the SDAI presentation layer.

Link copied to clipboard
private fun Window.applySystemBarIconMode(lightBars: Boolean)

Executes the applySystemBarIconMode step in the SDAI presentation layer.

Link copied to clipboard
private fun Window.applySystemBars(color: Int, lightBars: Boolean)

Executes the applySystemBars step in the SDAI presentation layer.

Link copied to clipboard
internal actual fun ApplySystemBarTheme(colorScheme: ColorScheme, isDark: Boolean)

Renders the ApplySystemBarTheme UI for the SDAI presentation layer.

internal expect fun ApplySystemBarTheme(colorScheme: ColorScheme, isDark: Boolean)

Renders the ApplySystemBarTheme UI for the SDAI presentation layer.

internal actual fun ApplySystemBarTheme(colorScheme: ColorScheme, isDark: Boolean)

Renders the ApplySystemBarTheme UI for the SDAI presentation layer.

Link copied to clipboard
internal fun catppuccinAccentColor(token: ColorToken, isDark: Boolean, darkThemeToken: DarkThemeToken): Color

Executes the catppuccinAccentColor step in the SDAI presentation layer.

Link copied to clipboard
internal fun catppuccinBaseColor(isDark: Boolean, darkThemeToken: DarkThemeToken): Color

Executes the catppuccinBaseColor step in the SDAI presentation layer.

Link copied to clipboard
internal fun catppuccinColorScheme(token: ColorToken, darkThemeToken: DarkThemeToken, isDark: Boolean): ColorScheme

Executes the catppuccinColorScheme step in the SDAI presentation layer.

Link copied to clipboard
internal fun catppuccinOverlayColor(isDark: Boolean, darkThemeToken: DarkThemeToken): Color

Executes the catppuccinOverlayColor step in the SDAI presentation layer.

Link copied to clipboard
private fun catppuccinPalette(isDark: Boolean, darkThemeToken: DarkThemeToken): CatppuccinPalette

Executes the catppuccinPalette step in the SDAI presentation layer.

Link copied to clipboard
internal fun catppuccinTypography(isDark: Boolean, darkThemeToken: DarkThemeToken): Typography

Executes the catppuccinTypography step in the SDAI presentation layer.

Link copied to clipboard
internal actual fun dynamicColorSchemeOrNull(useDynamicColors: Boolean, isDark: Boolean): ColorScheme?

Renders the dynamicColorSchemeOrNull UI for the SDAI presentation layer.

internal expect fun dynamicColorSchemeOrNull(useDynamicColors: Boolean, isDark: Boolean): ColorScheme?

Renders the dynamicColorSchemeOrNull UI for the SDAI presentation layer.

internal actual fun dynamicColorSchemeOrNull(useDynamicColors: Boolean, isDark: Boolean): ColorScheme?

Renders the dynamicColorSchemeOrNull UI for the SDAI presentation layer.

Link copied to clipboard
private tailrec fun Context.findActivity(): Activity?

Executes the findActivity step in the SDAI presentation layer.

Link copied to clipboard
private fun Color.inverse(): Color

Executes the inverse step in the SDAI presentation layer.

Link copied to clipboard

Android implementation for bottom bars that remain pinned to the screen edge.

Returns the bottom system inset that persistent bottom controls should apply.

iOS implementation for bottom bars that remain pinned to the screen edge.

Link copied to clipboard

Android implementation for the status-bar color spacer used by top app bars.

Returns the top inset used only by the artificial status-bar color spacer above app bars.

iOS implementation for the status-bar color spacer used by top app bars.

Link copied to clipboard
private fun ColorToken.toColor(palette: CatppuccinPalette): Color

Converts SDAI data with toColor.