Skip to content

//ui/dev.atick.core.ui.theme

Package-level declarations

Types

Name Summary
BackgroundTheme [androidJvm]
@Immutable
data class BackgroundTheme(val color: Color = Color.Unspecified, val tonalElevation: Dp = Dp.Unspecified)
A class to model background color and tonal elevation values for Now in Android.
GradientColors [androidJvm]
@Immutable
data class GradientColors(val top: Color = Color.Unspecified, val bottom: Color = Color.Unspecified, val container: Color = Color.Unspecified)
A class to model gradient color values.
TintTheme [androidJvm]
@Immutable
data class TintTheme(val iconTint: Color? = null)
A class to model background color and tonal elevation values.

Properties

Name Summary
DarkAndroidBackgroundTheme [androidJvm]
val DarkAndroidBackgroundTheme: BackgroundTheme
Dark Android background theme
DarkAndroidColorScheme [androidJvm]
@VisibleForTesting
val DarkAndroidColorScheme: ColorScheme
Dark Android theme color scheme
DarkAndroidGradientColors [androidJvm]
val DarkAndroidGradientColors: GradientColors
Dark Android gradient colors
DarkDefaultColorScheme [androidJvm]
@VisibleForTesting
val DarkDefaultColorScheme: ColorScheme
Dark default theme color scheme
LightAndroidBackgroundTheme [androidJvm]
val LightAndroidBackgroundTheme: BackgroundTheme
Light Android background theme
LightAndroidColorScheme [androidJvm]
@VisibleForTesting
val LightAndroidColorScheme: ColorScheme
Light Android theme color scheme
LightAndroidGradientColors [androidJvm]
val LightAndroidGradientColors: GradientColors
Light Android gradient colors
LightDefaultColorScheme [androidJvm]
@VisibleForTesting
val LightDefaultColorScheme: ColorScheme
Light default theme color scheme
LocalBackgroundTheme [androidJvm]
val LocalBackgroundTheme: ProvidableCompositionLocal<BackgroundTheme>
A composition local for BackgroundTheme.
LocalGradientColors [androidJvm]
val LocalGradientColors: ProvidableCompositionLocal<GradientColors>
A composition local for GradientColors.
LocalTintTheme [androidJvm]
val LocalTintTheme: ProvidableCompositionLocal<TintTheme>
A composition local for TintTheme.

Functions

Name Summary
JetpackTheme [androidJvm]
@Composable
fun JetpackTheme(darkTheme: Boolean = isSystemInDarkTheme(), androidTheme: Boolean = false, disableDynamicTheming: Boolean = false, content: @Composable() -> Unit)
Now in Android theme.
supportsDynamicTheming [androidJvm]
@ChecksSdkIntAtLeast(api = 31)
fun supportsDynamicTheming(): Boolean