Class JewelThemeKt
-
- All Implemented Interfaces:
public final class JewelThemeKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static <Error class: unknown class><String>LocalThemeNameprivate final static <Error class: unknown class><UUID>LocalThemeInstanceUuidprivate final static <Error class: unknown class><<Error class: unknown class>>LocalContentColorprivate final static <Error class: unknown class><ThemeColorPalette>LocalColorPaletteprivate final static <Error class: unknown class><ThemeIconData>LocalIconDataprivate final static <Error class: unknown class><<Error class: unknown class>>LocalTextStyleprivate final static <Error class: unknown class><<Error class: unknown class>>LocalEditorTextStyleprivate final static <Error class: unknown class><<Error class: unknown class>>LocalConsoleTextStyle
-
Method Summary
Modifier and Type Method Description final <Error class: unknown class><String>getLocalThemeName()final <Error class: unknown class><UUID>getLocalThemeInstanceUuid()A UUID that's unique to any instance of the ThemeDefinition, and can be used as a signal to invalidate any remembered value that needs to be refreshed when the theme changes. final <Error class: unknown class><<Error class: unknown class>>getLocalContentColor()final <Error class: unknown class><ThemeColorPalette>getLocalColorPalette()final <Error class: unknown class><ThemeIconData>getLocalIconData()final <Error class: unknown class><<Error class: unknown class>>getLocalTextStyle()final <Error class: unknown class><<Error class: unknown class>>getLocalEditorTextStyle()final <Error class: unknown class><<Error class: unknown class>>getLocalConsoleTextStyle()final static UnitJewelTheme(ThemeDefinition theme, Boolean swingCompatMode, Function0<Unit> content)final static UnitJewelTheme(ThemeDefinition theme, Function0<Unit> content)final static UnitOverrideDarkMode(Boolean isDark, Function0<Unit> content)Overrides the isDark value for the content. -
-
Method Detail
-
getLocalThemeName
final <Error class: unknown class><String> getLocalThemeName()
-
getLocalThemeInstanceUuid
final <Error class: unknown class><UUID> getLocalThemeInstanceUuid()
A UUID that's unique to any instance of the ThemeDefinition, and can be used as a signal to invalidate any remembered value that needs to be refreshed when the theme changes. Note that this can change even if the rest of the theme does not change, so you should only use this when you can't key the remembers to anything else in the theme (e.g., you need to re-read values from the environment whose changes can't be listened to).
The provided value should be random, and must change every time the theme definition is changed, and be different from all previous values.
-
getLocalContentColor
final <Error class: unknown class><<Error class: unknown class>> getLocalContentColor()
-
getLocalColorPalette
final <Error class: unknown class><ThemeColorPalette> getLocalColorPalette()
-
getLocalIconData
final <Error class: unknown class><ThemeIconData> getLocalIconData()
-
getLocalTextStyle
final <Error class: unknown class><<Error class: unknown class>> getLocalTextStyle()
-
getLocalEditorTextStyle
final <Error class: unknown class><<Error class: unknown class>> getLocalEditorTextStyle()
-
getLocalConsoleTextStyle
final <Error class: unknown class><<Error class: unknown class>> getLocalConsoleTextStyle()
-
JewelTheme
final static Unit JewelTheme(ThemeDefinition theme, Boolean swingCompatMode, Function0<Unit> content)
-
JewelTheme
final static Unit JewelTheme(ThemeDefinition theme, Function0<Unit> content)
-
OverrideDarkMode
final static Unit OverrideDarkMode(Boolean isDark, Function0<Unit> content)
Overrides the isDark value for the content. It is used to inject a different dark mode style in a sub-tree.
Note: this does not change the theme. If you want to change the theme, you need to do it by yourself. For example, in standalone:
IntUiTheme(isDark = false) { Text("I am light") IntUiTheme(isDark = true) { Text("I am dark") } }
-
-
-
-