Object IncodeTheme
-
- All Implemented Interfaces:
public class IncodeTheme
-
-
Field Summary
Fields Modifier and Type Field Description private final IncodeColorPalettecolorPaletteprivate final IncodeColorSchemecolorSchemeprivate final IncodeTextStylestypographyprivate final IncodeComponentscomponentsprivate final IncodeUXConfiguxConfigprivate final BooleanisDarkModepublic final static IncodeThemeINSTANCE
-
Method Summary
Modifier and Type Method Description final UnitIncodeComposeTheme(DisplayMode forcedDisplayMode, Function0<Unit> content)Applies the Incode theme to the content, based on the display mode. final IncodeColorPalettegetColorPalette()final IncodeColorSchemegetColorScheme()final IncodeTextStylesgetTypography()final IncodeComponentsgetComponents()final IncodeUXConfiggetUxConfig()final BooleanisDarkMode()-
-
Method Detail
-
IncodeComposeTheme
@Composable() final Unit IncodeComposeTheme(DisplayMode forcedDisplayMode, Function0<Unit> content)
Applies the Incode theme to the content, based on the display mode. Display mode is determined by the
forcedDisplayModeparameter or the configuration fromIncodeWelcome. In case where both sources returnnull, display mode is DisplayMode.LIGHT.- Parameters:
forcedDisplayMode- Optional parameter to force a specific display mode (light or dark).content- The composable content to be themed.
-
getColorPalette
@Composable() final IncodeColorPalette getColorPalette()
-
getColorScheme
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP})@Composable() final IncodeColorScheme getColorScheme()
-
getTypography
@Composable() final IncodeTextStyles getTypography()
-
getComponents
@Composable() final IncodeComponents getComponents()
-
getUxConfig
@Composable() final IncodeUXConfig getUxConfig()
-
isDarkMode
@Composable() final Boolean isDarkMode()
-
-
-
-