diff --git a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridge.kt b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridge.kt index 69270ce1b..b751d6b16 100644 --- a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridge.kt +++ b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridge.kt @@ -5,6 +5,7 @@ import androidx.compose.ui.text.TextStyle import com.intellij.ide.ui.laf.darcula.DarculaUIUtil import com.intellij.ui.JBColor import com.intellij.util.ui.DirProvider +import javax.swing.UIManager import org.jetbrains.jewel.bridge.dp import org.jetbrains.jewel.bridge.lafName import org.jetbrains.jewel.bridge.readFromLaF @@ -17,7 +18,6 @@ import org.jetbrains.jewel.foundation.theme.ThemeIconData import org.jetbrains.jewel.foundation.util.JewelLogger import org.jetbrains.jewel.ui.ComponentStyling import org.jetbrains.jewel.ui.DefaultComponentStyling -import javax.swing.UIManager private val logger = JewelLogger.getInstance("JewelIntUiBridge") diff --git a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridgeButton.kt b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridgeButton.kt index 384a5da48..e49d63da8 100644 --- a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridgeButton.kt +++ b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridgeButton.kt @@ -223,5 +223,5 @@ internal fun readTextFieldIconButtonStyle(): TextFieldIconButtonStyle = borderFocused = Color.Unspecified, borderPressed = retrieveColorOrUnspecified("ActionButton.pressedBorderColor"), borderHovered = retrieveColorOrUnspecified("ActionButton.hoverBorderColor"), - ), + ) ) diff --git a/int-ui/int-ui-standalone/api/int-ui-standalone.api b/int-ui/int-ui-standalone/api/int-ui-standalone.api index fcd91a722..9e2de9dfc 100644 --- a/int-ui/int-ui-standalone/api/int-ui-standalone.api +++ b/int-ui/int-ui-standalone/api/int-ui-standalone.api @@ -286,11 +286,15 @@ public final class org/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalP public final class org/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonStylingKt { public static final fun dark (Lorg/jetbrains/jewel/ui/component/styling/IconButtonStyle$Companion;Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors;Lorg/jetbrains/jewel/ui/component/styling/IconButtonMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/ui/component/styling/IconButtonStyle; - public static final fun dark-8v1krLo (Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors$Companion;JJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors; + public static final fun dark (Lorg/jetbrains/jewel/ui/component/styling/TextFieldIconButtonStyle$Companion;Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/ui/component/styling/TextFieldIconButtonStyle; + public static final fun dark-7HESe_I (Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors$Companion;JJJJJJJJJJJJJJJ)Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors; + public static synthetic fun dark-7HESe_I$default (Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors$Companion;JJJJJJJJJJJJJJJILjava/lang/Object;)Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors; public static final fun defaults-ij7-PLE (Lorg/jetbrains/jewel/ui/component/styling/IconButtonMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;FLandroidx/compose/foundation/layout/PaddingValues;J)Lorg/jetbrains/jewel/ui/component/styling/IconButtonMetrics; public static synthetic fun defaults-ij7-PLE$default (Lorg/jetbrains/jewel/ui/component/styling/IconButtonMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;FLandroidx/compose/foundation/layout/PaddingValues;JILjava/lang/Object;)Lorg/jetbrains/jewel/ui/component/styling/IconButtonMetrics; public static final fun light (Lorg/jetbrains/jewel/ui/component/styling/IconButtonStyle$Companion;Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors;Lorg/jetbrains/jewel/ui/component/styling/IconButtonMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/ui/component/styling/IconButtonStyle; - public static final fun light-8v1krLo (Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors$Companion;JJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors; + public static final fun light (Lorg/jetbrains/jewel/ui/component/styling/TextFieldIconButtonStyle$Companion;Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/ui/component/styling/TextFieldIconButtonStyle; + public static final fun light-7HESe_I (Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors$Companion;JJJJJJJJJJJJJJJ)Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors; + public static synthetic fun light-7HESe_I$default (Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors$Companion;JJJJJJJJJJJJJJJILjava/lang/Object;)Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors; } public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeStylingKt { @@ -550,10 +554,10 @@ public final class org/jetbrains/jewel/intui/standalone/theme/IntUiGlobalMetrics public final class org/jetbrains/jewel/intui/standalone/theme/IntUiThemeKt { public static final fun IntUiTheme (Lorg/jetbrains/jewel/foundation/theme/ThemeDefinition;Lorg/jetbrains/jewel/ui/ComponentStyling;ZLkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;II)V public static final fun IntUiTheme (ZZLkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;II)V - public static final fun dark (Lorg/jetbrains/jewel/ui/ComponentStyling;Lorg/jetbrains/jewel/ui/component/styling/CheckboxStyle;Lorg/jetbrains/jewel/ui/component/styling/ChipStyle;Lorg/jetbrains/jewel/ui/component/styling/CircularProgressStyle;Lorg/jetbrains/jewel/ui/component/styling/DefaultBannerStyles;Lorg/jetbrains/jewel/ui/component/styling/ComboBoxStyle;Lorg/jetbrains/jewel/ui/component/styling/ButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Lorg/jetbrains/jewel/ui/component/styling/DividerStyle;Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Lorg/jetbrains/jewel/ui/component/styling/GroupHeaderStyle;Lorg/jetbrains/jewel/ui/component/styling/HorizontalProgressBarStyle;Lorg/jetbrains/jewel/ui/component/styling/IconButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/LazyTreeStyle;Lorg/jetbrains/jewel/ui/component/styling/LinkStyle;Lorg/jetbrains/jewel/ui/component/styling/MenuStyle;Lorg/jetbrains/jewel/ui/component/styling/ButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/PopupContainerStyle;Lorg/jetbrains/jewel/ui/component/styling/RadioButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/ScrollbarStyle;Lorg/jetbrains/jewel/ui/component/styling/SegmentedControlButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/SegmentedControlStyle;Lorg/jetbrains/jewel/ui/component/styling/SelectableLazyColumnStyle;Lorg/jetbrains/jewel/ui/component/styling/SliderStyle;Lorg/jetbrains/jewel/ui/component/styling/SimpleListItemStyle;Lorg/jetbrains/jewel/ui/component/styling/TextAreaStyle;Lorg/jetbrains/jewel/ui/component/styling/TextFieldStyle;Lorg/jetbrains/jewel/ui/component/styling/TooltipStyle;Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle;Landroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/ui/ComponentStyling; + public static final fun dark (Lorg/jetbrains/jewel/ui/ComponentStyling;Lorg/jetbrains/jewel/ui/component/styling/CheckboxStyle;Lorg/jetbrains/jewel/ui/component/styling/ChipStyle;Lorg/jetbrains/jewel/ui/component/styling/CircularProgressStyle;Lorg/jetbrains/jewel/ui/component/styling/DefaultBannerStyles;Lorg/jetbrains/jewel/ui/component/styling/ComboBoxStyle;Lorg/jetbrains/jewel/ui/component/styling/ButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Lorg/jetbrains/jewel/ui/component/styling/DividerStyle;Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Lorg/jetbrains/jewel/ui/component/styling/GroupHeaderStyle;Lorg/jetbrains/jewel/ui/component/styling/HorizontalProgressBarStyle;Lorg/jetbrains/jewel/ui/component/styling/IconButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/LazyTreeStyle;Lorg/jetbrains/jewel/ui/component/styling/LinkStyle;Lorg/jetbrains/jewel/ui/component/styling/MenuStyle;Lorg/jetbrains/jewel/ui/component/styling/ButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/PopupContainerStyle;Lorg/jetbrains/jewel/ui/component/styling/RadioButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/ScrollbarStyle;Lorg/jetbrains/jewel/ui/component/styling/SegmentedControlButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/SegmentedControlStyle;Lorg/jetbrains/jewel/ui/component/styling/SelectableLazyColumnStyle;Lorg/jetbrains/jewel/ui/component/styling/SliderStyle;Lorg/jetbrains/jewel/ui/component/styling/SimpleListItemStyle;Lorg/jetbrains/jewel/ui/component/styling/TextAreaStyle;Lorg/jetbrains/jewel/ui/component/styling/TextFieldStyle;Lorg/jetbrains/jewel/ui/component/styling/TextFieldIconButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/TooltipStyle;Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle;Landroidx/compose/runtime/Composer;IIIII)Lorg/jetbrains/jewel/ui/ComponentStyling; public static final fun darkThemeDefinition-VRxQTpk (Lorg/jetbrains/jewel/foundation/theme/JewelTheme$Companion;Lorg/jetbrains/jewel/foundation/GlobalColors;Lorg/jetbrains/jewel/foundation/GlobalMetrics;Lorg/jetbrains/jewel/foundation/theme/ThemeColorPalette;Lorg/jetbrains/jewel/foundation/theme/ThemeIconData;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/foundation/theme/ThemeDefinition; public static final fun default (Lorg/jetbrains/jewel/ui/ComponentStyling;Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/ui/ComponentStyling; - public static final fun light (Lorg/jetbrains/jewel/ui/ComponentStyling;Lorg/jetbrains/jewel/ui/component/styling/CheckboxStyle;Lorg/jetbrains/jewel/ui/component/styling/ChipStyle;Lorg/jetbrains/jewel/ui/component/styling/CircularProgressStyle;Lorg/jetbrains/jewel/ui/component/styling/DefaultBannerStyles;Lorg/jetbrains/jewel/ui/component/styling/ComboBoxStyle;Lorg/jetbrains/jewel/ui/component/styling/ButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Lorg/jetbrains/jewel/ui/component/styling/DividerStyle;Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Lorg/jetbrains/jewel/ui/component/styling/GroupHeaderStyle;Lorg/jetbrains/jewel/ui/component/styling/HorizontalProgressBarStyle;Lorg/jetbrains/jewel/ui/component/styling/IconButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/LazyTreeStyle;Lorg/jetbrains/jewel/ui/component/styling/LinkStyle;Lorg/jetbrains/jewel/ui/component/styling/MenuStyle;Lorg/jetbrains/jewel/ui/component/styling/PopupContainerStyle;Lorg/jetbrains/jewel/ui/component/styling/ButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/RadioButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/ScrollbarStyle;Lorg/jetbrains/jewel/ui/component/styling/SegmentedControlButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/SegmentedControlStyle;Lorg/jetbrains/jewel/ui/component/styling/SliderStyle;Lorg/jetbrains/jewel/ui/component/styling/SelectableLazyColumnStyle;Lorg/jetbrains/jewel/ui/component/styling/SimpleListItemStyle;Lorg/jetbrains/jewel/ui/component/styling/TextAreaStyle;Lorg/jetbrains/jewel/ui/component/styling/TextFieldStyle;Lorg/jetbrains/jewel/ui/component/styling/TooltipStyle;Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle;Landroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/ui/ComponentStyling; + public static final fun light (Lorg/jetbrains/jewel/ui/ComponentStyling;Lorg/jetbrains/jewel/ui/component/styling/CheckboxStyle;Lorg/jetbrains/jewel/ui/component/styling/ChipStyle;Lorg/jetbrains/jewel/ui/component/styling/CircularProgressStyle;Lorg/jetbrains/jewel/ui/component/styling/DefaultBannerStyles;Lorg/jetbrains/jewel/ui/component/styling/ComboBoxStyle;Lorg/jetbrains/jewel/ui/component/styling/ButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Lorg/jetbrains/jewel/ui/component/styling/DividerStyle;Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Lorg/jetbrains/jewel/ui/component/styling/GroupHeaderStyle;Lorg/jetbrains/jewel/ui/component/styling/HorizontalProgressBarStyle;Lorg/jetbrains/jewel/ui/component/styling/IconButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/LazyTreeStyle;Lorg/jetbrains/jewel/ui/component/styling/LinkStyle;Lorg/jetbrains/jewel/ui/component/styling/MenuStyle;Lorg/jetbrains/jewel/ui/component/styling/PopupContainerStyle;Lorg/jetbrains/jewel/ui/component/styling/ButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/RadioButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/ScrollbarStyle;Lorg/jetbrains/jewel/ui/component/styling/SegmentedControlButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/SegmentedControlStyle;Lorg/jetbrains/jewel/ui/component/styling/SliderStyle;Lorg/jetbrains/jewel/ui/component/styling/SelectableLazyColumnStyle;Lorg/jetbrains/jewel/ui/component/styling/SimpleListItemStyle;Lorg/jetbrains/jewel/ui/component/styling/TextAreaStyle;Lorg/jetbrains/jewel/ui/component/styling/TextFieldStyle;Lorg/jetbrains/jewel/ui/component/styling/TextFieldIconButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/TooltipStyle;Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle;Landroidx/compose/runtime/Composer;IIIII)Lorg/jetbrains/jewel/ui/ComponentStyling; public static final fun lightThemeDefinition-VRxQTpk (Lorg/jetbrains/jewel/foundation/theme/JewelTheme$Companion;Lorg/jetbrains/jewel/foundation/GlobalColors;Lorg/jetbrains/jewel/foundation/GlobalMetrics;Lorg/jetbrains/jewel/foundation/theme/ThemeColorPalette;Lorg/jetbrains/jewel/foundation/theme/ThemeIconData;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/foundation/theme/ThemeDefinition; } diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonStyling.kt index 04a110cc9..95e818b02 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonStyling.kt @@ -28,28 +28,30 @@ public fun IconButtonStyle.Companion.dark( @Composable public fun TextFieldIconButtonStyle.Companion.light( - colors: IconButtonColors = IconButtonColors.light( - background = Color.Unspecified, - backgroundDisabled = Color.Unspecified, - backgroundSelected = Color.Unspecified, - backgroundSelectedActivated = Color.Unspecified, - backgroundFocused = Color.Unspecified, - backgroundPressed = Color.Unspecified, - backgroundHovered = Color.Unspecified, - ), + colors: IconButtonColors = + IconButtonColors.light( + background = Color.Unspecified, + backgroundDisabled = Color.Unspecified, + backgroundSelected = Color.Unspecified, + backgroundSelectedActivated = Color.Unspecified, + backgroundFocused = Color.Unspecified, + backgroundPressed = Color.Unspecified, + backgroundHovered = Color.Unspecified, + ) ): TextFieldIconButtonStyle = TextFieldIconButtonStyle(colors) @Composable public fun TextFieldIconButtonStyle.Companion.dark( - colors: IconButtonColors = IconButtonColors.dark( - background = Color.Unspecified, - backgroundDisabled = Color.Unspecified, - backgroundSelected = Color.Unspecified, - backgroundSelectedActivated = Color.Unspecified, - backgroundFocused = Color.Unspecified, - backgroundPressed = Color.Unspecified, - backgroundHovered = Color.Unspecified, - ), + colors: IconButtonColors = + IconButtonColors.dark( + background = Color.Unspecified, + backgroundDisabled = Color.Unspecified, + backgroundSelected = Color.Unspecified, + backgroundSelectedActivated = Color.Unspecified, + backgroundFocused = Color.Unspecified, + backgroundPressed = Color.Unspecified, + backgroundHovered = Color.Unspecified, + ) ): TextFieldIconButtonStyle = TextFieldIconButtonStyle(colors) public fun IconButtonColors.Companion.light( diff --git a/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/ComponentShowcaseTab.kt b/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/ComponentShowcaseTab.kt index ce28fc9a3..68f97bbc6 100644 --- a/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/ComponentShowcaseTab.kt +++ b/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/ComponentShowcaseTab.kt @@ -106,11 +106,7 @@ private fun RowScope.ColumnOne() { Modifier.onActivated { activated = it }, style = Typography.h3TextStyle(), ) - DefaultButton(onClick = { - ComponentShowcaseDialog().show() - }) { - Text("Open Component Showcase") - } + DefaultButton(onClick = { ComponentShowcaseDialog().show() }) { Text("Open Component Showcase") } var selectedItem by remember { mutableIntStateOf(-1) } Dropdown( diff --git a/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/SwingComparisonTabPanel.kt b/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/SwingComparisonTabPanel.kt index 3d1d1a378..d41a65091 100644 --- a/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/SwingComparisonTabPanel.kt +++ b/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/SwingComparisonTabPanel.kt @@ -42,6 +42,10 @@ import com.intellij.util.ui.JBUI import com.intellij.util.ui.components.BorderLayoutPanel import icons.IdeSampleIconKeys import icons.JewelIcons +import javax.swing.BoxLayout +import javax.swing.DefaultComboBoxModel +import javax.swing.JLabel +import javax.swing.JPanel import org.jetbrains.jewel.bridge.JewelComposePanel import org.jetbrains.jewel.bridge.medium import org.jetbrains.jewel.foundation.theme.JewelTheme @@ -57,10 +61,6 @@ import org.jetbrains.jewel.ui.component.TextField import org.jetbrains.jewel.ui.component.Typography import org.jetbrains.jewel.ui.theme.simpleListItemStyle import org.jetbrains.jewel.ui.theme.textAreaStyle -import javax.swing.BoxLayout -import javax.swing.DefaultComboBoxModel -import javax.swing.JLabel -import javax.swing.JPanel internal class SwingComparisonTabPanel : BorderLayoutPanel() { private val mainContent = diff --git a/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/dialog/ComponentShowcaseDialog.kt b/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/dialog/ComponentShowcaseDialog.kt index 83edb5b48..802e02a68 100644 --- a/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/dialog/ComponentShowcaseDialog.kt +++ b/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/dialog/ComponentShowcaseDialog.kt @@ -1,14 +1,14 @@ package org.jetbrains.jewel.samples.ideplugin.dialog import com.intellij.openapi.ui.DialogWrapper +import java.awt.Dimension +import javax.swing.JComponent import org.jetbrains.jewel.bridge.JewelComposePanel import org.jetbrains.jewel.bridge.theme.default import org.jetbrains.jewel.bridge.theme.macOs import org.jetbrains.jewel.samples.showcase.views.ComponentsView import org.jetbrains.jewel.samples.showcase.views.ComponentsViewModel import org.jetbrains.jewel.ui.component.styling.ScrollbarVisibility -import java.awt.Dimension -import javax.swing.JComponent internal class ComponentShowcaseDialog : DialogWrapper(true) { init { @@ -18,10 +18,11 @@ internal class ComponentShowcaseDialog : DialogWrapper(true) { override fun createCenterPanel(): JComponent { val dialogPanel = JewelComposePanel { - val viewModel = ComponentsViewModel( - alwaysVisibleScrollbarVisibility = ScrollbarVisibility.AlwaysVisible.default(), - whenScrollingScrollbarVisibility = ScrollbarVisibility.WhenScrolling.macOs(), - ) + val viewModel = + ComponentsViewModel( + alwaysVisibleScrollbarVisibility = ScrollbarVisibility.AlwaysVisible.default(), + whenScrollingScrollbarVisibility = ScrollbarVisibility.WhenScrolling.macOs(), + ) ComponentsView(viewModel) } dialogPanel.preferredSize = Dimension(800, 600) diff --git a/samples/showcase/api/showcase.api b/samples/showcase/api/showcase.api new file mode 100644 index 000000000..d28eff084 --- /dev/null +++ b/samples/showcase/api/showcase.api @@ -0,0 +1,345 @@ +public final class ComposableSingletons$SplitLayoutsKt { + public static final field INSTANCE LComposableSingletons$SplitLayoutsKt; + public static field lambda-1 Lkotlin/jvm/functions/Function3; + public static field lambda-2 Lkotlin/jvm/functions/Function2; + public static field lambda-3 Lkotlin/jvm/functions/Function2; + public static field lambda-4 Lkotlin/jvm/functions/Function2; + public static field lambda-5 Lkotlin/jvm/functions/Function2; + public static field lambda-6 Lkotlin/jvm/functions/Function2; + public static field lambda-7 Lkotlin/jvm/functions/Function2; + public fun ()V + public final fun getLambda-1$showcase ()Lkotlin/jvm/functions/Function3; + public final fun getLambda-2$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-3$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-4$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-5$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-6$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-7$showcase ()Lkotlin/jvm/functions/Function2; +} + +public final class SplitLayoutsKt { + public static final fun SplitLayouts (Lorg/jetbrains/jewel/ui/component/SplitLayoutState;Lorg/jetbrains/jewel/ui/component/SplitLayoutState;Lorg/jetbrains/jewel/ui/component/SplitLayoutState;Lkotlin/jvm/functions/Function0;Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/BannersKt { + public static final fun Banners (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/BordersKt { + public static final fun Borders (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/ButtonsKt { + public static final fun Buttons (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/CheckboxesKt { + public static final fun Checkboxes (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/ChipsAndTreeKt { + public static final fun ChipsAndTrees (Landroidx/compose/runtime/Composer;I)V + public static final fun ChipsSample (Landroidx/compose/ui/Modifier;Landroidx/compose/runtime/Composer;II)V + public static final fun SelectableLazyColumnSample (Landroidx/compose/runtime/Composer;I)V + public static final fun TreeSample (Landroidx/compose/ui/Modifier;Landroidx/compose/runtime/Composer;II)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/ComposableSingletons$BordersKt { + public static final field INSTANCE Lorg/jetbrains/jewel/samples/showcase/components/ComposableSingletons$BordersKt; + public static field lambda-1 Lkotlin/jvm/functions/Function3; + public static field lambda-2 Lkotlin/jvm/functions/Function3; + public static field lambda-3 Lkotlin/jvm/functions/Function3; + public static field lambda-4 Lkotlin/jvm/functions/Function3; + public fun ()V + public final fun getLambda-1$showcase ()Lkotlin/jvm/functions/Function3; + public final fun getLambda-2$showcase ()Lkotlin/jvm/functions/Function3; + public final fun getLambda-3$showcase ()Lkotlin/jvm/functions/Function3; + public final fun getLambda-4$showcase ()Lkotlin/jvm/functions/Function3; +} + +public final class org/jetbrains/jewel/samples/showcase/components/ComposableSingletons$ButtonsKt { + public static final field INSTANCE Lorg/jetbrains/jewel/samples/showcase/components/ComposableSingletons$ButtonsKt; + public static field lambda-1 Lkotlin/jvm/functions/Function3; + public static field lambda-10 Lkotlin/jvm/functions/Function2; + public static field lambda-2 Lkotlin/jvm/functions/Function3; + public static field lambda-3 Lkotlin/jvm/functions/Function3; + public static field lambda-4 Lkotlin/jvm/functions/Function3; + public static field lambda-5 Lkotlin/jvm/functions/Function4; + public static field lambda-6 Lkotlin/jvm/functions/Function4; + public static field lambda-7 Lkotlin/jvm/functions/Function2; + public static field lambda-8 Lkotlin/jvm/functions/Function2; + public static field lambda-9 Lkotlin/jvm/functions/Function2; + public fun ()V + public final fun getLambda-1$showcase ()Lkotlin/jvm/functions/Function3; + public final fun getLambda-10$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-2$showcase ()Lkotlin/jvm/functions/Function3; + public final fun getLambda-3$showcase ()Lkotlin/jvm/functions/Function3; + public final fun getLambda-4$showcase ()Lkotlin/jvm/functions/Function3; + public final fun getLambda-5$showcase ()Lkotlin/jvm/functions/Function4; + public final fun getLambda-6$showcase ()Lkotlin/jvm/functions/Function4; + public final fun getLambda-7$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-8$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-9$showcase ()Lkotlin/jvm/functions/Function2; +} + +public final class org/jetbrains/jewel/samples/showcase/components/ComposableSingletons$ChipsAndTreeKt { + public static final field INSTANCE Lorg/jetbrains/jewel/samples/showcase/components/ComposableSingletons$ChipsAndTreeKt; + public static field lambda-1 Lkotlin/jvm/functions/Function2; + public static field lambda-2 Lkotlin/jvm/functions/Function2; + public static field lambda-3 Lkotlin/jvm/functions/Function2; + public static field lambda-4 Lkotlin/jvm/functions/Function2; + public static field lambda-5 Lkotlin/jvm/functions/Function2; + public static field lambda-6 Lkotlin/jvm/functions/Function3; + public static field lambda-7 Lkotlin/jvm/functions/Function4; + public fun ()V + public final fun getLambda-1$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-2$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-3$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-4$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-5$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-6$showcase ()Lkotlin/jvm/functions/Function3; + public final fun getLambda-7$showcase ()Lkotlin/jvm/functions/Function4; +} + +public final class org/jetbrains/jewel/samples/showcase/components/ComposableSingletons$DropdownsKt { + public static final field INSTANCE Lorg/jetbrains/jewel/samples/showcase/components/ComposableSingletons$DropdownsKt; + public static field lambda-1 Lkotlin/jvm/functions/Function3; + public static field lambda-2 Lkotlin/jvm/functions/Function2; + public static field lambda-3 Lkotlin/jvm/functions/Function2; + public static field lambda-4 Lkotlin/jvm/functions/Function2; + public static field lambda-5 Lkotlin/jvm/functions/Function2; + public static field lambda-6 Lkotlin/jvm/functions/Function3; + public static field lambda-7 Lkotlin/jvm/functions/Function7; + public static field lambda-8 Lkotlin/jvm/functions/Function7; + public static field lambda-9 Lkotlin/jvm/functions/Function7; + public fun ()V + public final fun getLambda-1$showcase ()Lkotlin/jvm/functions/Function3; + public final fun getLambda-2$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-3$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-4$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-5$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-6$showcase ()Lkotlin/jvm/functions/Function3; + public final fun getLambda-7$showcase ()Lkotlin/jvm/functions/Function7; + public final fun getLambda-8$showcase ()Lkotlin/jvm/functions/Function7; + public final fun getLambda-9$showcase ()Lkotlin/jvm/functions/Function7; +} + +public final class org/jetbrains/jewel/samples/showcase/components/ComposableSingletons$TabsKt { + public static final field INSTANCE Lorg/jetbrains/jewel/samples/showcase/components/ComposableSingletons$TabsKt; + public static field lambda-1 Lkotlin/jvm/functions/Function4; + public fun ()V + public final fun getLambda-1$showcase ()Lkotlin/jvm/functions/Function4; +} + +public final class org/jetbrains/jewel/samples/showcase/components/ComposableSingletons$TextAreasKt { + public static final field INSTANCE Lorg/jetbrains/jewel/samples/showcase/components/ComposableSingletons$TextAreasKt; + public static field lambda-1 Lkotlin/jvm/functions/Function2; + public static field lambda-2 Lkotlin/jvm/functions/Function2; + public static field lambda-3 Lkotlin/jvm/functions/Function2; + public static field lambda-4 Lkotlin/jvm/functions/Function2; + public static field lambda-5 Lkotlin/jvm/functions/Function2; + public fun ()V + public final fun getLambda-1$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-2$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-3$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-4$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-5$showcase ()Lkotlin/jvm/functions/Function2; +} + +public final class org/jetbrains/jewel/samples/showcase/components/ComposableSingletons$TextFieldsKt { + public static final field INSTANCE Lorg/jetbrains/jewel/samples/showcase/components/ComposableSingletons$TextFieldsKt; + public static field lambda-1 Lkotlin/jvm/functions/Function2; + public static field lambda-2 Lkotlin/jvm/functions/Function2; + public static field lambda-3 Lkotlin/jvm/functions/Function2; + public static field lambda-4 Lkotlin/jvm/functions/Function2; + public static field lambda-5 Lkotlin/jvm/functions/Function2; + public static field lambda-6 Lkotlin/jvm/functions/Function2; + public static field lambda-7 Lkotlin/jvm/functions/Function2; + public static field lambda-8 Lkotlin/jvm/functions/Function4; + public fun ()V + public final fun getLambda-1$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-2$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-3$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-4$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-5$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-6$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-7$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-8$showcase ()Lkotlin/jvm/functions/Function4; +} + +public final class org/jetbrains/jewel/samples/showcase/components/ComposableSingletons$TooltipsKt { + public static final field INSTANCE Lorg/jetbrains/jewel/samples/showcase/components/ComposableSingletons$TooltipsKt; + public static field lambda-1 Lkotlin/jvm/functions/Function2; + public static field lambda-2 Lkotlin/jvm/functions/Function3; + public static field lambda-3 Lkotlin/jvm/functions/Function2; + public fun ()V + public final fun getLambda-1$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-2$showcase ()Lkotlin/jvm/functions/Function3; + public final fun getLambda-3$showcase ()Lkotlin/jvm/functions/Function2; +} + +public final class org/jetbrains/jewel/samples/showcase/components/DropdownsKt { + public static final fun Dropdowns (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/IconsKt { + public static final fun Icons (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/LinksKt { + public static final fun Links (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/ProgressBarKt { + public static final fun ProgressBar (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/RadioButtonsKt { + public static final fun RadioButtons (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/ScrollbarsKt { + public static final fun Scrollbars (Lorg/jetbrains/jewel/ui/component/styling/ScrollbarVisibility;Lorg/jetbrains/jewel/ui/component/styling/ScrollbarVisibility;Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/SegmentedControlsKt { + public static final fun SegmentedControls (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/SliderKt { + public static final fun Sliders (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/StandaloneSampleIcons { + public static final field $stable I + public static final field INSTANCE Lorg/jetbrains/jewel/samples/showcase/components/StandaloneSampleIcons; + public final fun getComponentsMenu ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getGitHub ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getJewelLogo ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getMarkdown ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getThemeDark ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getThemeLight ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getThemeLightWithLightHeader ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getThemeSystem ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getWelcome ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; +} + +public final class org/jetbrains/jewel/samples/showcase/components/StandaloneSampleIcons$Components { + public static final field $stable I + public static final field INSTANCE Lorg/jetbrains/jewel/samples/showcase/components/StandaloneSampleIcons$Components; + public final fun getBanners ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getBorders ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getButton ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getCheckbox ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getComboBox ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getLinks ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getProgressBar ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getRadioButton ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getScrollbar ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getSegmentedControls ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getSlider ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getSplitlayout ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getTabs ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getTextArea ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getTextField ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getToolbar ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getTooltip ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; + public final fun getTree ()Lorg/jetbrains/jewel/ui/icon/PathIconKey; +} + +public final class org/jetbrains/jewel/samples/showcase/components/TabsKt { + public static final fun Tabs (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/TextAreasKt { + public static final fun TextAreas (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/TextFieldsKt { + public static final fun TextFields (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/components/TooltipsKt { + public static final fun Tooltips (Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/views/ComponentsViewKt { + public static final fun ComponentsToolBar (Lorg/jetbrains/jewel/samples/showcase/views/ComponentsViewModel;Landroidx/compose/runtime/Composer;I)V + public static final fun ComponentsView (Lorg/jetbrains/jewel/samples/showcase/views/ComponentsViewModel;Landroidx/compose/runtime/Composer;I)V +} + +public final class org/jetbrains/jewel/samples/showcase/views/ComponentsViewModel { + public static final field $stable I + public fun (Lorg/jetbrains/jewel/ui/component/styling/ScrollbarVisibility$AlwaysVisible;Lorg/jetbrains/jewel/ui/component/styling/ScrollbarVisibility$WhenScrolling;)V + public final fun getCurrentView ()Lorg/jetbrains/jewel/samples/showcase/views/ViewInfo; + public final fun getViews ()Landroidx/compose/runtime/snapshots/SnapshotStateList; + public final fun setCurrentView (Lorg/jetbrains/jewel/samples/showcase/views/ViewInfo;)V +} + +public final class org/jetbrains/jewel/samples/showcase/views/ComposableSingletons$ComponentsViewModelKt { + public static final field INSTANCE Lorg/jetbrains/jewel/samples/showcase/views/ComposableSingletons$ComponentsViewModelKt; + public static field lambda-1 Lkotlin/jvm/functions/Function2; + public static field lambda-10 Lkotlin/jvm/functions/Function2; + public static field lambda-11 Lkotlin/jvm/functions/Function2; + public static field lambda-12 Lkotlin/jvm/functions/Function2; + public static field lambda-13 Lkotlin/jvm/functions/Function2; + public static field lambda-14 Lkotlin/jvm/functions/Function2; + public static field lambda-15 Lkotlin/jvm/functions/Function2; + public static field lambda-16 Lkotlin/jvm/functions/Function2; + public static field lambda-2 Lkotlin/jvm/functions/Function2; + public static field lambda-3 Lkotlin/jvm/functions/Function2; + public static field lambda-4 Lkotlin/jvm/functions/Function2; + public static field lambda-5 Lkotlin/jvm/functions/Function2; + public static field lambda-6 Lkotlin/jvm/functions/Function2; + public static field lambda-7 Lkotlin/jvm/functions/Function2; + public static field lambda-8 Lkotlin/jvm/functions/Function2; + public static field lambda-9 Lkotlin/jvm/functions/Function2; + public fun ()V + public final fun getLambda-1$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-10$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-11$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-12$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-13$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-14$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-15$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-16$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-2$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-3$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-4$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-5$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-6$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-7$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-8$showcase ()Lkotlin/jvm/functions/Function2; + public final fun getLambda-9$showcase ()Lkotlin/jvm/functions/Function2; +} + +public final class org/jetbrains/jewel/samples/showcase/views/KeyBinding { + public static final field $stable I + public fun ()V + public fun (Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;)V + public synthetic fun (Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getLinux ()Ljava/util/Set; + public final fun getMacOs ()Ljava/util/Set; + public final fun getWindows ()Ljava/util/Set; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/samples/showcase/views/ViewInfo { + public static final field $stable I + public fun (Ljava/lang/String;Lorg/jetbrains/jewel/ui/icon/IconKey;Lorg/jetbrains/jewel/samples/showcase/views/KeyBinding;Lkotlin/jvm/functions/Function2;)V + public synthetic fun (Ljava/lang/String;Lorg/jetbrains/jewel/ui/icon/IconKey;Lorg/jetbrains/jewel/samples/showcase/views/KeyBinding;Lkotlin/jvm/functions/Function2;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getContent ()Lkotlin/jvm/functions/Function2; + public final fun getIconKey ()Lorg/jetbrains/jewel/ui/icon/IconKey; + public final fun getKeyboardShortcut ()Lorg/jetbrains/jewel/samples/showcase/views/KeyBinding; + public final fun getTitle ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/samples/showcase/views/ViewInfoKt { + public static final fun forCurrentOs (Lorg/jetbrains/jewel/samples/showcase/views/KeyBinding;)Ljava/util/Set; +} + diff --git a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/ChipsAndTree.kt b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/ChipsAndTree.kt index 64dda4531..fb733edfb 100644 --- a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/ChipsAndTree.kt +++ b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/ChipsAndTree.kt @@ -26,6 +26,7 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.dp +import kotlin.random.Random import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch import org.jetbrains.jewel.foundation.lazy.SelectableLazyColumn @@ -43,7 +44,6 @@ import org.jetbrains.jewel.ui.component.RadioButtonChip import org.jetbrains.jewel.ui.component.Text import org.jetbrains.jewel.ui.component.ToggleableChip import org.jetbrains.jewel.ui.theme.colorPalette -import kotlin.random.Random @Composable public fun ChipsAndTrees() { diff --git a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Dropdowns.kt b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Dropdowns.kt index 7f99aca42..9b1b1daa8 100644 --- a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Dropdowns.kt +++ b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Dropdowns.kt @@ -12,6 +12,7 @@ import androidx.compose.runtime.setValue import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp +import kotlin.random.Random import org.jetbrains.jewel.foundation.theme.JewelTheme import org.jetbrains.jewel.ui.Outline import org.jetbrains.jewel.ui.component.Dropdown @@ -23,7 +24,6 @@ import org.jetbrains.jewel.ui.component.Typography import org.jetbrains.jewel.ui.component.separator import org.jetbrains.jewel.ui.icons.AllIconsKeys import org.jetbrains.jewel.ui.theme.simpleListItemStyle -import kotlin.random.Random @Composable public fun Dropdowns() { diff --git a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Links.kt b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Links.kt index f6daa9a36..e18c8c1d8 100644 --- a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Links.kt +++ b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Links.kt @@ -27,7 +27,11 @@ public fun Links() { Row(horizontalArrangement = Arrangement.spacedBy(10.dp), verticalAlignment = Alignment.CenterVertically) { Link("Link", {}) - Link("Always underlined", {}, style = JewelTheme.linkStyle.copy(underlineBehavior = LinkUnderlineBehavior.ShowAlways)) + Link( + "Always underlined", + {}, + style = JewelTheme.linkStyle.copy(underlineBehavior = LinkUnderlineBehavior.ShowAlways), + ) ExternalLink("ExternalLink", {}) diff --git a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Scrollbars.kt b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Scrollbars.kt index 8b7c3f8f7..3698db88f 100644 --- a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Scrollbars.kt +++ b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Scrollbars.kt @@ -27,6 +27,7 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp +import java.util.Locale import org.jetbrains.jewel.foundation.Stroke import org.jetbrains.jewel.foundation.modifier.border import org.jetbrains.jewel.foundation.theme.JewelTheme @@ -47,12 +48,11 @@ import org.jetbrains.jewel.ui.theme.scrollbarStyle import org.jetbrains.jewel.ui.theme.textAreaStyle import org.jetbrains.skiko.OS import org.jetbrains.skiko.hostOs -import java.util.Locale @Composable public fun Scrollbars( alwaysVisibleScrollbarVisibility: ScrollbarVisibility, - whenScrollingScrollbarVisibility: ScrollbarVisibility + whenScrollingScrollbarVisibility: ScrollbarVisibility, ) { Column(verticalArrangement = Arrangement.spacedBy(16.dp)) { val baseStyle = JewelTheme.scrollbarStyle diff --git a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Tabs.kt b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Tabs.kt index 974eca257..04cd36e85 100644 --- a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Tabs.kt +++ b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Tabs.kt @@ -20,6 +20,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.draw.drawWithCache import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.dp +import kotlin.math.max import org.jetbrains.jewel.foundation.theme.JewelTheme import org.jetbrains.jewel.ui.component.Icon import org.jetbrains.jewel.ui.component.IconButton @@ -34,7 +35,6 @@ import org.jetbrains.jewel.ui.painter.rememberResourcePainterProvider import org.jetbrains.jewel.ui.theme.defaultTabStyle import org.jetbrains.jewel.ui.theme.editorTabStyle import org.jetbrains.jewel.ui.util.thenIf -import kotlin.math.max @Composable public fun Tabs() { diff --git a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/TextFields.kt b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/TextFields.kt index e025e5f87..614312369 100644 --- a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/TextFields.kt +++ b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/TextFields.kt @@ -66,11 +66,7 @@ public fun TextFields() { } @Composable -private fun TextFieldsRows( - readOnly: Boolean, - iconMetrics: IconButtonMetrics, - iconColors: IconButtonColors, -) { +private fun TextFieldsRows(readOnly: Boolean, iconMetrics: IconButtonMetrics, iconColors: IconButtonColors) { Column(modifier = Modifier.padding(vertical = 4.dp), verticalArrangement = Arrangement.spacedBy(10.dp)) { Row(horizontalArrangement = Arrangement.spacedBy(10.dp), verticalAlignment = Alignment.CenterVertically) { val state1 = rememberTextFieldState("TextField") diff --git a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Tooltips.kt b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Tooltips.kt index e20cce1be..f22d5fa00 100644 --- a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Tooltips.kt +++ b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/components/Tooltips.kt @@ -10,12 +10,12 @@ import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import androidx.compose.ui.Alignment import androidx.compose.ui.unit.dp +import kotlin.time.Duration.Companion.seconds import kotlinx.coroutines.delay import org.jetbrains.jewel.ui.component.CheckboxRow import org.jetbrains.jewel.ui.component.DefaultButton import org.jetbrains.jewel.ui.component.Text import org.jetbrains.jewel.ui.component.Tooltip -import kotlin.time.Duration.Companion.seconds @Composable public fun Tooltips() { diff --git a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/views/ComponentsView.kt b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/views/ComponentsView.kt index 8b208086f..e532332f0 100644 --- a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/views/ComponentsView.kt +++ b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/views/ComponentsView.kt @@ -16,6 +16,7 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp +import kotlin.time.Duration.Companion.milliseconds import org.jetbrains.jewel.foundation.modifier.trackActivation import org.jetbrains.jewel.foundation.theme.JewelTheme import org.jetbrains.jewel.ui.Orientation @@ -27,7 +28,6 @@ import org.jetbrains.jewel.ui.component.styling.TooltipMetrics import org.jetbrains.jewel.ui.component.styling.TooltipStyle import org.jetbrains.jewel.ui.painter.hints.Size import org.jetbrains.jewel.ui.theme.tooltipStyle -import kotlin.time.Duration.Companion.milliseconds @Composable public fun ComponentsView(viewModel: ComponentsViewModel) { @@ -58,7 +58,8 @@ public fun ComponentsToolBar(viewModel: ComponentsViewModel) { } } -@Composable internal fun ComponentView(view: ViewInfo) { +@Composable +internal fun ComponentView(view: ViewInfo) { Column(Modifier.fillMaxSize().padding(24.dp), verticalArrangement = Arrangement.spacedBy(24.dp)) { Text(view.title, style = Typography.h1TextStyle()) view.content() diff --git a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/views/ComponentsViewModel.kt b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/views/ComponentsViewModel.kt index c54eba9c2..211b9fdae 100644 --- a/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/views/ComponentsViewModel.kt +++ b/samples/showcase/src/main/kotlin/org/jetbrains/jewel/samples/showcase/views/ComponentsViewModel.kt @@ -31,12 +31,12 @@ public class ComponentsViewModel( alwaysVisibleScrollbarVisibility: ScrollbarVisibility.AlwaysVisible, whenScrollingScrollbarVisibility: ScrollbarVisibility.WhenScrolling, ) { - private var outerSplitState by mutableStateOf(SplitLayoutState(0.5f)) private var verticalSplitState by mutableStateOf(SplitLayoutState(0.5f)) private var innerSplitState by mutableStateOf(SplitLayoutState(0.5f)) public fun getViews(): SnapshotStateList = views + private val views: SnapshotStateList = mutableStateListOf( ViewInfo(title = "Buttons", iconKey = StandaloneSampleIcons.Components.button, content = { Buttons() }), @@ -66,11 +66,7 @@ public class ComponentsViewModel( content = { ProgressBar() }, ), ViewInfo(title = "Icons", iconKey = StandaloneSampleIcons.Components.toolbar, content = { Icons() }), - ViewInfo( - title = "Links", - iconKey = StandaloneSampleIcons.Components.links, - content = { Links() }, - ), + ViewInfo(title = "Links", iconKey = StandaloneSampleIcons.Components.links, content = { Links() }), ViewInfo(title = "Borders", iconKey = StandaloneSampleIcons.Components.borders, content = { Borders() }), ViewInfo( title = "Segmented Controls", @@ -115,7 +111,9 @@ public class ComponentsViewModel( ) private var _currentView: ViewInfo by mutableStateOf(views.first()) + public fun getCurrentView(): ViewInfo = _currentView + public fun setCurrentView(view: ViewInfo) { _currentView = view } diff --git a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/markdown/JewelReadme.kt b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/markdown/JewelReadme.kt index 569556bd0..2a75f60aa 100644 --- a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/markdown/JewelReadme.kt +++ b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/markdown/JewelReadme.kt @@ -2,7 +2,8 @@ package org.jetbrains.jewel.samples.standalone.markdown import org.intellij.lang.annotations.Language -@Language("Markdown") public val JewelReadme: String = +@Language("Markdown") +public val JewelReadme: String = """ # Jewel: a Compose for Desktop theme diff --git a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/markdown/MarkdownEditor.kt b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/markdown/MarkdownEditor.kt index ac526c0ba..3d8a6c9cb 100644 --- a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/markdown/MarkdownEditor.kt +++ b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/markdown/MarkdownEditor.kt @@ -33,7 +33,8 @@ import org.jetbrains.jewel.ui.component.Text import org.jetbrains.jewel.ui.component.TextArea import org.jetbrains.jewel.ui.theme.simpleListItemStyle -@Composable public fun MarkdownEditor(state: TextFieldState, modifier: Modifier = Modifier) { +@Composable +public fun MarkdownEditor(state: TextFieldState, modifier: Modifier = Modifier) { Column(modifier) { ControlsRow( modifier = Modifier.fillMaxWidth().background(JewelTheme.globalColors.panelBackground).padding(8.dp), diff --git a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/markdown/MarkdownPreview.kt b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/markdown/MarkdownPreview.kt index 32a1c6de0..1c269a163 100644 --- a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/markdown/MarkdownPreview.kt +++ b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/markdown/MarkdownPreview.kt @@ -13,6 +13,8 @@ import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.dp +import java.awt.Desktop +import java.net.URI import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import org.jetbrains.jewel.foundation.ExperimentalJewelApi @@ -32,8 +34,6 @@ import org.jetbrains.jewel.markdown.rendering.MarkdownBlockRenderer import org.jetbrains.jewel.markdown.rendering.MarkdownStyling import org.jetbrains.jewel.ui.component.VerticallyScrollableContainer import org.jetbrains.jewel.ui.component.scrollbarContentSafePadding -import java.awt.Desktop -import java.net.URI @Composable public fun MarkdownPreview( diff --git a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/TitleBarView.kt b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/TitleBarView.kt index 0a535e022..8c0ab47ca 100644 --- a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/TitleBarView.kt +++ b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/TitleBarView.kt @@ -11,9 +11,9 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp import java.awt.Desktop import java.net.URI -import org.jetbrains.jewel.samples.standalone.IntUiThemes import org.jetbrains.jewel.samples.showcase.components.StandaloneSampleIcons import org.jetbrains.jewel.samples.showcase.views.forCurrentOs +import org.jetbrains.jewel.samples.standalone.IntUiThemes import org.jetbrains.jewel.samples.standalone.viewmodel.MainViewModel import org.jetbrains.jewel.ui.component.Dropdown import org.jetbrains.jewel.ui.component.Icon diff --git a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/viewmodel/MainViewModel.kt b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/viewmodel/MainViewModel.kt index beb9242c5..2911d9c28 100644 --- a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/viewmodel/MainViewModel.kt +++ b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/viewmodel/MainViewModel.kt @@ -20,9 +20,9 @@ import org.jetbrains.jewel.samples.showcase.components.StandaloneSampleIcons import org.jetbrains.jewel.samples.showcase.views.ComponentsView import org.jetbrains.jewel.samples.showcase.views.ComponentsViewModel import org.jetbrains.jewel.samples.showcase.views.KeyBinding -import org.jetbrains.jewel.samples.standalone.view.MarkdownDemo import org.jetbrains.jewel.samples.showcase.views.ViewInfo import org.jetbrains.jewel.samples.standalone.IntUiThemes +import org.jetbrains.jewel.samples.standalone.view.MarkdownDemo import org.jetbrains.jewel.samples.standalone.view.WelcomeView import org.jetbrains.jewel.samples.standalone.viewmodel.MainViewModel.componentsViewModel import org.jetbrains.jewel.ui.component.styling.ScrollbarVisibility diff --git a/ui/api/ui.api b/ui/api/ui.api index 31d18b523..fa1e9da64 100644 --- a/ui/api/ui.api +++ b/ui/api/ui.api @@ -25,7 +25,7 @@ public final class org/jetbrains/jewel/ui/ComponentStyling$DefaultImpls { public final class org/jetbrains/jewel/ui/DefaultComponentStyling : org/jetbrains/jewel/ui/ComponentStyling { public static final field $stable I - public fun (Lorg/jetbrains/jewel/ui/component/styling/CheckboxStyle;Lorg/jetbrains/jewel/ui/component/styling/ChipStyle;Lorg/jetbrains/jewel/ui/component/styling/CircularProgressStyle;Lorg/jetbrains/jewel/ui/component/styling/DefaultBannerStyles;Lorg/jetbrains/jewel/ui/component/styling/ComboBoxStyle;Lorg/jetbrains/jewel/ui/component/styling/ButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Lorg/jetbrains/jewel/ui/component/styling/DividerStyle;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Lorg/jetbrains/jewel/ui/component/styling/GroupHeaderStyle;Lorg/jetbrains/jewel/ui/component/styling/HorizontalProgressBarStyle;Lorg/jetbrains/jewel/ui/component/styling/IconButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/LazyTreeStyle;Lorg/jetbrains/jewel/ui/component/styling/LinkStyle;Lorg/jetbrains/jewel/ui/component/styling/MenuStyle;Lorg/jetbrains/jewel/ui/component/styling/ButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/PopupContainerStyle;Lorg/jetbrains/jewel/ui/component/styling/RadioButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/ScrollbarStyle;Lorg/jetbrains/jewel/ui/component/styling/SegmentedControlButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/SegmentedControlStyle;Lorg/jetbrains/jewel/ui/component/styling/SelectableLazyColumnStyle;Lorg/jetbrains/jewel/ui/component/styling/SimpleListItemStyle;Lorg/jetbrains/jewel/ui/component/styling/SliderStyle;Lorg/jetbrains/jewel/ui/component/styling/TextAreaStyle;Lorg/jetbrains/jewel/ui/component/styling/TextFieldStyle;Lorg/jetbrains/jewel/ui/component/styling/TooltipStyle;Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle;)V + public fun (Lorg/jetbrains/jewel/ui/component/styling/CheckboxStyle;Lorg/jetbrains/jewel/ui/component/styling/ChipStyle;Lorg/jetbrains/jewel/ui/component/styling/CircularProgressStyle;Lorg/jetbrains/jewel/ui/component/styling/DefaultBannerStyles;Lorg/jetbrains/jewel/ui/component/styling/ComboBoxStyle;Lorg/jetbrains/jewel/ui/component/styling/ButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Lorg/jetbrains/jewel/ui/component/styling/DividerStyle;Lorg/jetbrains/jewel/ui/component/styling/TabStyle;Lorg/jetbrains/jewel/ui/component/styling/GroupHeaderStyle;Lorg/jetbrains/jewel/ui/component/styling/HorizontalProgressBarStyle;Lorg/jetbrains/jewel/ui/component/styling/IconButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/LazyTreeStyle;Lorg/jetbrains/jewel/ui/component/styling/LinkStyle;Lorg/jetbrains/jewel/ui/component/styling/MenuStyle;Lorg/jetbrains/jewel/ui/component/styling/ButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/PopupContainerStyle;Lorg/jetbrains/jewel/ui/component/styling/RadioButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/ScrollbarStyle;Lorg/jetbrains/jewel/ui/component/styling/SegmentedControlButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/SegmentedControlStyle;Lorg/jetbrains/jewel/ui/component/styling/SelectableLazyColumnStyle;Lorg/jetbrains/jewel/ui/component/styling/SimpleListItemStyle;Lorg/jetbrains/jewel/ui/component/styling/SliderStyle;Lorg/jetbrains/jewel/ui/component/styling/TextAreaStyle;Lorg/jetbrains/jewel/ui/component/styling/TextFieldStyle;Lorg/jetbrains/jewel/ui/component/styling/TextFieldIconButtonStyle;Lorg/jetbrains/jewel/ui/component/styling/TooltipStyle;Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle;)V public fun equals (Ljava/lang/Object;)Z public final fun getCheckboxStyle ()Lorg/jetbrains/jewel/ui/component/styling/CheckboxStyle; public final fun getChipStyle ()Lorg/jetbrains/jewel/ui/component/styling/ChipStyle; @@ -53,6 +53,7 @@ public final class org/jetbrains/jewel/ui/DefaultComponentStyling : org/jetbrain public final fun getSimpleListItemStyle ()Lorg/jetbrains/jewel/ui/component/styling/SimpleListItemStyle; public final fun getSliderStyle ()Lorg/jetbrains/jewel/ui/component/styling/SliderStyle; public final fun getTextAreaStyle ()Lorg/jetbrains/jewel/ui/component/styling/TextAreaStyle; + public final fun getTextFieldIconButtonStyle ()Lorg/jetbrains/jewel/ui/component/styling/TextFieldIconButtonStyle; public final fun getTextFieldStyle ()Lorg/jetbrains/jewel/ui/component/styling/TextFieldStyle; public final fun getTooltipStyle ()Lorg/jetbrains/jewel/ui/component/styling/TooltipStyle; public final fun getUndecoratedDropdownStyle ()Lorg/jetbrains/jewel/ui/component/styling/DropdownStyle; @@ -1741,6 +1742,7 @@ public final class org/jetbrains/jewel/ui/component/styling/IconButtonStyle$Comp public final class org/jetbrains/jewel/ui/component/styling/IconButtonStylingKt { public static final fun getLocalIconButtonStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; + public static final fun getLocalTextFieldIconButtonStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } public abstract interface class org/jetbrains/jewel/ui/component/styling/InputFieldColors { @@ -2752,6 +2754,19 @@ public final class org/jetbrains/jewel/ui/component/styling/TextFieldColors : or public final class org/jetbrains/jewel/ui/component/styling/TextFieldColors$Companion { } +public final class org/jetbrains/jewel/ui/component/styling/TextFieldIconButtonStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/ui/component/styling/TextFieldIconButtonStyle$Companion; + public fun (Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/ui/component/styling/IconButtonColors; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/ui/component/styling/TextFieldIconButtonStyle$Companion { +} + public final class org/jetbrains/jewel/ui/component/styling/TextFieldMetrics : org/jetbrains/jewel/ui/component/styling/InputFieldMetrics { public static final field $stable I public static final field Companion Lorg/jetbrains/jewel/ui/component/styling/TextFieldMetrics$Companion; @@ -4735,6 +4750,7 @@ public final class org/jetbrains/jewel/ui/theme/JewelThemeKt { public static final fun getSimpleListItemStyle (Lorg/jetbrains/jewel/foundation/theme/JewelTheme$Companion;Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/ui/component/styling/SimpleListItemStyle; public static final fun getSliderStyle (Lorg/jetbrains/jewel/foundation/theme/JewelTheme$Companion;Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/ui/component/styling/SliderStyle; public static final fun getTextAreaStyle (Lorg/jetbrains/jewel/foundation/theme/JewelTheme$Companion;Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/ui/component/styling/TextAreaStyle; + public static final fun getTextFieldIconButtonStyle (Lorg/jetbrains/jewel/foundation/theme/JewelTheme$Companion;Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/ui/component/styling/TextFieldIconButtonStyle; public static final fun getTextFieldStyle (Lorg/jetbrains/jewel/foundation/theme/JewelTheme$Companion;Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/ui/component/styling/TextFieldStyle; public static final fun getTooltipStyle (Lorg/jetbrains/jewel/foundation/theme/JewelTheme$Companion;Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/ui/component/styling/TooltipStyle; public static final fun getTreeStyle (Lorg/jetbrains/jewel/foundation/theme/JewelTheme$Companion;Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/ui/component/styling/LazyTreeStyle;