diff --git a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/styling/DecoratedWindowStyling.kt b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/styling/DecoratedWindowStyling.kt index bf2756a8bb..005cae130e 100644 --- a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/styling/DecoratedWindowStyling.kt +++ b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/styling/DecoratedWindowStyling.kt @@ -48,4 +48,4 @@ public class DecoratedWindowMetrics(public val borderWidth: Dp) { } public val LocalDecoratedWindowStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No DecoratedWindowStyle provided") } + staticCompositionLocalOf { error("No DecoratedWindowStyle provided. Have you forgotten the theme?") } diff --git a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/styling/TitleBarStyling.kt b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/styling/TitleBarStyling.kt index 1a81412d8b..ab2ee27117 100644 --- a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/styling/TitleBarStyling.kt +++ b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/styling/TitleBarStyling.kt @@ -97,4 +97,4 @@ public class TitleBarIcons( } public val LocalTitleBarStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No TitleBarStyle provided") } + staticCompositionLocalOf { error("No TitleBarStyle provided. Have you forgotten the theme?") } diff --git a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/GlobalColors.kt b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/GlobalColors.kt index f613e2e81e..267e3157b2 100644 --- a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/GlobalColors.kt +++ b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/GlobalColors.kt @@ -42,4 +42,4 @@ public class OutlineColors( } public val LocalGlobalColors: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No GlobalColors provided") } + staticCompositionLocalOf { error("No GlobalColors provided. Have you forgotten the theme?") } diff --git a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/GlobalMetrics.kt b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/GlobalMetrics.kt index 135184c80d..2f4ada838d 100644 --- a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/GlobalMetrics.kt +++ b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/GlobalMetrics.kt @@ -16,4 +16,4 @@ public class GlobalMetrics( } public val LocalGlobalMetrics: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No GlobalMetrics provided") } + staticCompositionLocalOf { error("No GlobalMetrics provided. Have you forgotten the theme?") } diff --git a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/theme/JewelTheme.kt b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/theme/JewelTheme.kt index 50ac534223..5db3e67673 100644 --- a/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/theme/JewelTheme.kt +++ b/foundation/src/main/kotlin/org/jetbrains/jewel/foundation/theme/JewelTheme.kt @@ -66,10 +66,10 @@ public fun JewelTheme(theme: ThemeDefinition, content: @Composable () -> Unit) { } public val LocalContentColor: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No ContentColor provided") } + staticCompositionLocalOf { error("No ContentColor provided. Have you forgotten the theme?") } internal val LocalIsDarkTheme = - staticCompositionLocalOf { error("No IsDarkTheme provided") } + staticCompositionLocalOf { error("No IsDarkTheme provided. Have you forgotten the theme?") } internal val LocalSwingCompatMode = staticCompositionLocalOf { // By default, Swing compat is not enabled @@ -86,7 +86,7 @@ public val LocalIconData: ProvidableCompositionLocal = staticComp } public val LocalTextStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No TextStyle provided") } + staticCompositionLocalOf { error("No TextStyle provided. Have you forgotten the theme?") } /** Overrides the dark mode for the current composition scope. */ @Composable diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/MenuManager.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/MenuManager.kt index 00d6f93672..b2e2c6d680 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/MenuManager.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/MenuManager.kt @@ -47,4 +47,4 @@ public class MenuManager( } public val LocalMenuManager: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No MenuManager provided") } + staticCompositionLocalOf { error("No MenuManager provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/ButtonStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/ButtonStyling.kt index b1b6480160..1e39127b4f 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/ButtonStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/ButtonStyling.kt @@ -101,7 +101,7 @@ public class ButtonMetrics( } public val LocalDefaultButtonStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No default ButtonStyle provided") } + staticCompositionLocalOf { error("No default ButtonStyle provided. Have you forgotten the theme?") } public val LocalOutlinedButtonStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No outlined ButtonStyle provided") } + staticCompositionLocalOf { error("No outlined ButtonStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/CheckboxStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/CheckboxStyling.kt index 61b4df80cd..1e583e874d 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/CheckboxStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/CheckboxStyling.kt @@ -69,4 +69,4 @@ public class CheckboxIcons(public val checkbox: PainterProvider) { } public val LocalCheckboxStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No CheckboxStyle provided") } + staticCompositionLocalOf { error("No CheckboxStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/ChipStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/ChipStyling.kt index c48d1aa736..6d17608b19 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/ChipStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/ChipStyling.kt @@ -143,4 +143,4 @@ public class ChipMetrics( } public val LocalChipStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No ChipStyle provided") } + staticCompositionLocalOf { error("No ChipStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/CircularProgressStyle.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/CircularProgressStyle.kt index 8a2cbce519..56a22ba481 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/CircularProgressStyle.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/CircularProgressStyle.kt @@ -16,4 +16,4 @@ public class CircularProgressStyle( } public val LocalCircularProgressStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No CircularProgressStyle provided") } + staticCompositionLocalOf { error("No CircularProgressStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/DividerStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/DividerStyling.kt index efba64e22b..063e3883a0 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/DividerStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/DividerStyling.kt @@ -35,4 +35,4 @@ public class DividerMetrics( } public val LocalDividerStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No DividerStyle provided") } + staticCompositionLocalOf { error("No DividerStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/DropdownStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/DropdownStyling.kt index 341d9d2ca0..ead09ae719 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/DropdownStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/DropdownStyling.kt @@ -131,7 +131,7 @@ public class DropdownIcons(public val chevronDown: PainterProvider) { } public val LocalDefaultDropdownStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No DefaultDropdownStyle provided") } + staticCompositionLocalOf { error("No DefaultDropdownStyle provided. Have you forgotten the theme?") } public val LocalUndecoratedDropdownStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No UndecoratedDropdownStyle provided") } + staticCompositionLocalOf { error("No UndecoratedDropdownStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/GroupHeaderStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/GroupHeaderStyling.kt index 9c2b9eddcb..3d85b8a0c9 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/GroupHeaderStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/GroupHeaderStyling.kt @@ -35,4 +35,4 @@ public class GroupHeaderMetrics( } public val LocalGroupHeaderStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No GroupHeaderStyle provided") } + staticCompositionLocalOf { error("No GroupHeaderStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/HorizontalProgressBarStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/HorizontalProgressBarStyling.kt index f081e3a7e6..b81f95c082 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/HorizontalProgressBarStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/HorizontalProgressBarStyling.kt @@ -45,5 +45,5 @@ public class HorizontalProgressBarMetrics( public val LocalHorizontalProgressBarStyle: ProvidableCompositionLocal = staticCompositionLocalOf { - error("No HorizontalProgressBarStyle provided") + error("No HorizontalProgressBarStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/IconButtonStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/IconButtonStyling.kt index 5f89de6c8d..7c936f1907 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/IconButtonStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/IconButtonStyling.kt @@ -96,4 +96,4 @@ public class IconButtonMetrics( } public val LocalIconButtonStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No IconButtonStyle provided") } + staticCompositionLocalOf { error("No IconButtonStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/LazyTreeStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/LazyTreeStyling.kt index e4d25100d4..f30715d418 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/LazyTreeStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/LazyTreeStyling.kt @@ -88,4 +88,4 @@ public class LazyTreeIcons( } public val LocalLazyTreeStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No LazyTreeStyle provided") } + staticCompositionLocalOf { error("No LazyTreeStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/LinkStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/LinkStyling.kt index aa1793f0e2..8d99ddd3d8 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/LinkStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/LinkStyling.kt @@ -105,4 +105,4 @@ public class LinkTextStyles( } public val LocalLinkStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No LinkStyle provided") } + staticCompositionLocalOf { error("No LinkStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/MenuStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/MenuStyling.kt index 0d2d326b1f..a3ccb2ccb9 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/MenuStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/MenuStyling.kt @@ -147,4 +147,4 @@ public class MenuIcons(public val submenuChevron: PainterProvider) { } public val LocalMenuStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No MenuStyle provided") } + staticCompositionLocalOf { error("No MenuStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/RadioButtonStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/RadioButtonStyling.kt index cca6500fb6..80ceaaee4e 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/RadioButtonStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/RadioButtonStyling.kt @@ -69,4 +69,4 @@ public class RadioButtonIcons(public val radioButton: PainterProvider) { } public val LocalRadioButtonStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No RadioButtonStyle provided") } + staticCompositionLocalOf { error("No RadioButtonStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/ScrollbarStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/ScrollbarStyling.kt index fc8b84adfd..d022e67fe2 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/ScrollbarStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/ScrollbarStyling.kt @@ -45,4 +45,4 @@ public class ScrollbarMetrics( } public val LocalScrollbarStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No ScrollbarStyle provided") } + staticCompositionLocalOf { error("No ScrollbarStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TabStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TabStyling.kt index 36baa395d3..cbecd73508 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TabStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TabStyling.kt @@ -186,7 +186,7 @@ private fun TabState.chooseValueIgnoreCompat( } public val LocalDefaultTabStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No LocalTabStyle provided") } + staticCompositionLocalOf { error("No LocalTabStyle provided. Have you forgotten the theme?") } public val LocalEditorTabStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No LocalTabStyle provided") } + staticCompositionLocalOf { error("No LocalTabStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TextAreaStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TextAreaStyling.kt index 49d2084a46..fb13ec215b 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TextAreaStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TextAreaStyling.kt @@ -65,4 +65,4 @@ public class TextAreaMetrics( } public val LocalTextAreaStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No TextAreaStyle provided") } + staticCompositionLocalOf { error("No TextAreaStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TextFieldStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TextFieldStyling.kt index 06b7565d19..8df75afc35 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TextFieldStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TextFieldStyling.kt @@ -65,4 +65,4 @@ public class TextFieldMetrics( } public val LocalTextFieldStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No TextFieldStyle provided") } + staticCompositionLocalOf { error("No TextFieldStyle provided. Have you forgotten the theme?") } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TooltipStyling.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TooltipStyling.kt index 9785021e57..ac718dcbf9 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TooltipStyling.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/TooltipStyling.kt @@ -72,4 +72,4 @@ public class TooltipMetrics( } public val LocalTooltipStyle: ProvidableCompositionLocal = - staticCompositionLocalOf { error("No TooltipStyle provided") } + staticCompositionLocalOf { error("No TooltipStyle provided. Have you forgotten the theme?") }