From 3b591230fec85316aa94a888aff9b6efab71106f Mon Sep 17 00:00:00 2001 From: Sebastiano Poggi Date: Fri, 20 Oct 2023 21:10:11 +0200 Subject: [PATCH] =?UTF-8?q?The=20big=20refactor=20=E2=80=94=C2=A0part=202?= =?UTF-8?q?=20(#193)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ButtonStyle refactor * CheckboxStyle refactor * ChipStyle refactor * CircularProgressStyle refactor * DividerStyle refactor * DropdownStyle refactor * GroupHeaderStyle refactor, simplify other styling * HorizontalProgressBarStyle refactor * IconButtonStyle refactor * LazyTreeStyle refactor * LinkStyle refactor * MenuStyle refactor * RadioButtonStyle refactor * ScrollbarStyle refactor * Fix IntUiButtonStyling * TabStyle refactor * InputFieldStyle & co refactor * TooltipStyle refactor * Update API dump * Fix dropdown menu and fallback rule (#194) * Fix dropdown menu and fallback rule * Fix tooltip * Fix tooltip * 🔀 Apply suggestions from code review Co-authored-by: Sebastiano Poggi * 🔀 Apply suggestions from code review --------- Co-authored-by: Sebastiano Poggi * Fix issues --------- Co-authored-by: Kanro --- core/api/core.api | 1538 +++++++++++----- .../main/kotlin/org/jetbrains/jewel/Chip.kt | 8 +- .../jewel/IntelliJComponentStyling.kt | 88 +- .../org/jetbrains/jewel/IntelliJTheme.kt | 4 +- .../org/jetbrains/jewel/LabelledTextField.kt | 2 +- .../jewel/painter/PainterHintsProvider.kt | 9 + .../jewel/painter/ResourcePainterProvider.kt | 34 +- .../jetbrains/jewel/styling/ButtonStyling.kt | 62 +- .../jewel/styling/CheckboxStyling.kt | 59 +- .../jetbrains/jewel/styling/ChipStyling.kt | 92 +- .../jewel/styling/CircularProgressStyle.kt | 12 +- .../jetbrains/jewel/styling/DividerStyling.kt | 19 +- .../jewel/styling/DropdownStyling.kt | 98 +- .../jewel/styling/GroupHeaderStyling.kt | 24 +- .../styling/HorizontalProgressBarStyling.kt | 42 +- .../jewel/styling/IconButtonMetrics.kt | 51 +- .../jewel/styling/LabelledTextFieldStyling.kt | 118 ++ .../jewel/styling/LazyTreeStyling.kt | 66 +- .../jetbrains/jewel/styling/LinkStyling.kt | 72 +- .../jetbrains/jewel/styling/MenuStyling.kt | 139 +- .../jewel/styling/RadioButtonStyling.kt | 45 +- .../jewel/styling/ScrollbarStyling.kt | 38 +- .../org/jetbrains/jewel/styling/TabStyling.kt | 117 +- .../jewel/styling/TextAreaStyling.kt | 55 +- .../jewel/styling/TextFieldStyling.kt | 81 +- .../jetbrains/jewel/styling/TooltipStyling.kt | 47 +- decorated-window/api/decorated-window.api | 16 +- .../org/jetbrains/jewel/window/TitleBar.kt | 4 +- .../jewel/window/styling/TitleBarStyling.kt | 16 +- .../org/jetbrains/jewel/bridge/IntUiBridge.kt | 485 ++--- int-ui/int-ui-core/api/int-ui-core.api | 8 + .../jewel/intui/core/styling/CommonMetrics.kt | 27 + .../api/int-ui-decorated-window.api | 16 +- .../window/styling/IntUiTitleBarStyling.kt | 427 ++--- .../api/int-ui-standalone.api | 1561 +++-------------- .../jewel/intui/standalone/IntUiTheme.kt | 148 +- .../standalone/styling/IntUiButtonStyling.kt | 429 +++-- .../styling/IntUiCheckboxStyling.kt | 142 +- .../standalone/styling/IntUiChipStyling.kt | 343 ++-- .../styling/IntUiCircularProgressStyling.kt | 29 +- .../standalone/styling/IntUiDividerStyle.kt | 43 +- .../styling/IntUiDropdownStyling.kt | 461 ++--- .../styling/IntUiGroupHeaderStyling.kt | 77 +- .../IntUiHorizontalProgressBarStyling.kt | 99 +- .../styling/IntUiIconButtonStyling.kt | 161 +- .../styling/IntUiLabelledTextFieldStyling.kt | 335 ++-- .../styling/IntUiLazyTreeStyling.kt | 192 +- .../standalone/styling/IntUiLinkStyling.kt | 217 +-- .../standalone/styling/IntUiMenuStyling.kt | 324 ++-- .../styling/IntUiRadioButtonStyling.kt | 156 +- .../styling/IntUiScrollbarStyling.kt | 92 +- .../standalone/styling/IntUiTabStyling.kt | 588 +++---- .../styling/IntUiTextAreaStyling.kt | 269 ++- .../styling/IntUiTextFieldStyling.kt | 269 ++- .../standalone/styling/IntUiTooltipStyling.kt | 113 +- 55 files changed, 4470 insertions(+), 5497 deletions(-) create mode 100644 core/src/main/kotlin/org/jetbrains/jewel/styling/LabelledTextFieldStyling.kt create mode 100644 int-ui/int-ui-core/src/main/kotlin/org/jetbrains/jewel/intui/core/styling/CommonMetrics.kt diff --git a/core/api/core.api b/core/api/core.api index 417862149..ab0ce833b 100644 --- a/core/api/core.api +++ b/core/api/core.api @@ -310,15 +310,15 @@ public final class org/jetbrains/jewel/InputFieldState$Companion { public final class org/jetbrains/jewel/IntelliJComponentStyling { public static final field $stable I - public fun (Lorg/jetbrains/jewel/styling/CheckboxStyle;Lorg/jetbrains/jewel/styling/ChipStyle;Lorg/jetbrains/jewel/styling/ButtonStyle;Lorg/jetbrains/jewel/styling/TabStyle;Lorg/jetbrains/jewel/styling/DividerStyle;Lorg/jetbrains/jewel/styling/DropdownStyle;Lorg/jetbrains/jewel/styling/TabStyle;Lorg/jetbrains/jewel/styling/GroupHeaderStyle;Lorg/jetbrains/jewel/styling/HorizontalProgressBarStyle;Lorg/jetbrains/jewel/styling/LabelledTextFieldStyle;Lorg/jetbrains/jewel/styling/LazyTreeStyle;Lorg/jetbrains/jewel/styling/LinkStyle;Lorg/jetbrains/jewel/styling/MenuStyle;Lorg/jetbrains/jewel/styling/ButtonStyle;Lorg/jetbrains/jewel/styling/RadioButtonStyle;Lorg/jetbrains/jewel/styling/ScrollbarStyle;Lorg/jetbrains/jewel/styling/TextAreaStyle;Lorg/jetbrains/jewel/styling/TextFieldStyle;Lorg/jetbrains/jewel/styling/CircularProgressStyle;Lorg/jetbrains/jewel/styling/TooltipStyle;Lorg/jetbrains/jewel/styling/IconButtonStyle;)V + public fun (Lorg/jetbrains/jewel/styling/CheckboxStyle;Lorg/jetbrains/jewel/styling/ChipStyle;Lorg/jetbrains/jewel/styling/CircularProgressStyle;Lorg/jetbrains/jewel/styling/ButtonStyle;Lorg/jetbrains/jewel/styling/DropdownStyle;Lorg/jetbrains/jewel/styling/TabStyle;Lorg/jetbrains/jewel/styling/DividerStyle;Lorg/jetbrains/jewel/styling/TabStyle;Lorg/jetbrains/jewel/styling/GroupHeaderStyle;Lorg/jetbrains/jewel/styling/HorizontalProgressBarStyle;Lorg/jetbrains/jewel/styling/IconButtonStyle;Lorg/jetbrains/jewel/styling/LabelledTextFieldStyle;Lorg/jetbrains/jewel/styling/LazyTreeStyle;Lorg/jetbrains/jewel/styling/LinkStyle;Lorg/jetbrains/jewel/styling/MenuStyle;Lorg/jetbrains/jewel/styling/ButtonStyle;Lorg/jetbrains/jewel/styling/RadioButtonStyle;Lorg/jetbrains/jewel/styling/ScrollbarStyle;Lorg/jetbrains/jewel/styling/TextAreaStyle;Lorg/jetbrains/jewel/styling/TextFieldStyle;Lorg/jetbrains/jewel/styling/TooltipStyle;Lorg/jetbrains/jewel/styling/DropdownStyle;)V public fun equals (Ljava/lang/Object;)Z public final fun getCheckboxStyle ()Lorg/jetbrains/jewel/styling/CheckboxStyle; public final fun getChipStyle ()Lorg/jetbrains/jewel/styling/ChipStyle; public final fun getCircularProgressStyle ()Lorg/jetbrains/jewel/styling/CircularProgressStyle; public final fun getDefaultButtonStyle ()Lorg/jetbrains/jewel/styling/ButtonStyle; + public final fun getDefaultDropdownStyle ()Lorg/jetbrains/jewel/styling/DropdownStyle; public final fun getDefaultTabStyle ()Lorg/jetbrains/jewel/styling/TabStyle; public final fun getDividerStyle ()Lorg/jetbrains/jewel/styling/DividerStyle; - public final fun getDropdownStyle ()Lorg/jetbrains/jewel/styling/DropdownStyle; public final fun getEditorTabStyle ()Lorg/jetbrains/jewel/styling/TabStyle; public final fun getGroupHeaderStyle ()Lorg/jetbrains/jewel/styling/GroupHeaderStyle; public final fun getHorizontalProgressBarStyle ()Lorg/jetbrains/jewel/styling/HorizontalProgressBarStyle; @@ -333,6 +333,7 @@ public final class org/jetbrains/jewel/IntelliJComponentStyling { public final fun getTextAreaStyle ()Lorg/jetbrains/jewel/styling/TextAreaStyle; public final fun getTextFieldStyle ()Lorg/jetbrains/jewel/styling/TextFieldStyle; public final fun getTooltipStyle ()Lorg/jetbrains/jewel/styling/TooltipStyle; + public final fun getUndecoratedDropdownStyle ()Lorg/jetbrains/jewel/styling/DropdownStyle; public fun hashCode ()I public final fun providedStyles (Landroidx/compose/runtime/Composer;I)[Landroidx/compose/runtime/ProvidedValue; public fun toString ()Ljava/lang/String; @@ -1485,6 +1486,7 @@ public final class org/jetbrains/jewel/painter/CommonPainterHintsProvider : org/ public static final field $stable I public static final field INSTANCE Lorg/jetbrains/jewel/painter/CommonPainterHintsProvider; public fun hints (Ljava/lang/String;Landroidx/compose/runtime/Composer;I)Ljava/util/List; + public fun priorityHints (Ljava/lang/String;Landroidx/compose/runtime/Composer;I)Ljava/util/List; } public abstract interface class org/jetbrains/jewel/painter/PainterHint { @@ -1503,6 +1505,11 @@ public final class org/jetbrains/jewel/painter/PainterHint$None : org/jetbrains/ public abstract interface class org/jetbrains/jewel/painter/PainterHintsProvider { public abstract fun hints (Ljava/lang/String;Landroidx/compose/runtime/Composer;I)Ljava/util/List; + public abstract fun priorityHints (Ljava/lang/String;Landroidx/compose/runtime/Composer;I)Ljava/util/List; +} + +public final class org/jetbrains/jewel/painter/PainterHintsProvider$DefaultImpls { + public static fun priorityHints (Lorg/jetbrains/jewel/painter/PainterHintsProvider;Ljava/lang/String;Landroidx/compose/runtime/Composer;I)Ljava/util/List; } public final class org/jetbrains/jewel/painter/PainterHintsProviderKt { @@ -1618,43 +1625,64 @@ public final class org/jetbrains/jewel/painter/hints/StrokeKt { public static synthetic fun Stroke$default (ZILjava/lang/Object;)Lorg/jetbrains/jewel/painter/PainterHint; } -public abstract interface class org/jetbrains/jewel/styling/ButtonColors { - public abstract fun backgroundFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun borderFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun contentFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun getBackground ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBackgroundDisabled ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBackgroundFocused ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBackgroundHovered ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBackgroundPressed ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBorder ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBorderDisabled ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBorderFocused ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBorderHovered ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBorderPressed ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getContent-0d7_KjU ()J - public abstract fun getContentDisabled-0d7_KjU ()J - public abstract fun getContentFocused-0d7_KjU ()J - public abstract fun getContentHovered-0d7_KjU ()J - public abstract fun getContentPressed-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/ButtonColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/ButtonColors$Companion; + public synthetic fun (Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun backgroundFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public final fun borderFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public final fun contentFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun equals (Ljava/lang/Object;)Z + public final fun getBackground ()Landroidx/compose/ui/graphics/Brush; + public final fun getBackgroundDisabled ()Landroidx/compose/ui/graphics/Brush; + public final fun getBackgroundFocused ()Landroidx/compose/ui/graphics/Brush; + public final fun getBackgroundHovered ()Landroidx/compose/ui/graphics/Brush; + public final fun getBackgroundPressed ()Landroidx/compose/ui/graphics/Brush; + public final fun getBorder ()Landroidx/compose/ui/graphics/Brush; + public final fun getBorderDisabled ()Landroidx/compose/ui/graphics/Brush; + public final fun getBorderFocused ()Landroidx/compose/ui/graphics/Brush; + public final fun getBorderHovered ()Landroidx/compose/ui/graphics/Brush; + public final fun getBorderPressed ()Landroidx/compose/ui/graphics/Brush; + public final fun getContent-0d7_KjU ()J + public final fun getContentDisabled-0d7_KjU ()J + public final fun getContentFocused-0d7_KjU ()J + public final fun getContentHovered-0d7_KjU ()J + public final fun getContentPressed-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public final class org/jetbrains/jewel/styling/ButtonColors$DefaultImpls { - public static fun backgroundFor-RO59lCw (Lorg/jetbrains/jewel/styling/ButtonColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun borderFor-RO59lCw (Lorg/jetbrains/jewel/styling/ButtonColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun contentFor-RO59lCw (Lorg/jetbrains/jewel/styling/ButtonColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/ButtonColors$Companion { } -public abstract interface class org/jetbrains/jewel/styling/ButtonMetrics { - public abstract fun getBorderWidth-D9Ej5fM ()F - public abstract fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public abstract fun getMinSize-MYxV2XQ ()J - public abstract fun getPadding ()Landroidx/compose/foundation/layout/PaddingValues; +public final class org/jetbrains/jewel/styling/ButtonMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/ButtonMetrics$Companion; + public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getBorderWidth-D9Ej5fM ()F + public final fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public final fun getMinSize-MYxV2XQ ()J + public final fun getPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/ButtonStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/ButtonColors; - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/ButtonMetrics; +public final class org/jetbrains/jewel/styling/ButtonMetrics$Companion { +} + +public final class org/jetbrains/jewel/styling/ButtonStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/ButtonStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/ButtonColors;Lorg/jetbrains/jewel/styling/ButtonMetrics;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/styling/ButtonColors; + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/ButtonMetrics; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/ButtonStyle$Companion { } public final class org/jetbrains/jewel/styling/ButtonStylingKt { @@ -1662,258 +1690,436 @@ public final class org/jetbrains/jewel/styling/ButtonStylingKt { public static final fun getLocalOutlinedButtonStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/CheckboxColors { - public abstract fun backgroundFor-An7rHrs (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun contentFor-An7rHrs (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun getCheckboxBackground-0d7_KjU ()J - public abstract fun getCheckboxBackgroundDisabled-0d7_KjU ()J - public abstract fun getCheckboxBackgroundSelected-0d7_KjU ()J - public abstract fun getContent-0d7_KjU ()J - public abstract fun getContentDisabled-0d7_KjU ()J - public abstract fun getContentSelected-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/CheckboxColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/CheckboxColors$Companion; + public synthetic fun (JJJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun contentFor-An7rHrs (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun equals (Ljava/lang/Object;)Z + public final fun getContent-0d7_KjU ()J + public final fun getContentDisabled-0d7_KjU ()J + public final fun getContentSelected-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/CheckboxColors$Companion { } -public final class org/jetbrains/jewel/styling/CheckboxColors$DefaultImpls { - public static fun backgroundFor-An7rHrs (Lorg/jetbrains/jewel/styling/CheckboxColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun contentFor-An7rHrs (Lorg/jetbrains/jewel/styling/CheckboxColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/CheckboxIcons { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/CheckboxIcons$Companion; + public fun (Lorg/jetbrains/jewel/painter/PainterProvider;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getCheckbox ()Lorg/jetbrains/jewel/painter/PainterProvider; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/CheckboxIcons$Companion { +} + +public final class org/jetbrains/jewel/styling/CheckboxMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/CheckboxMetrics$Companion; + public synthetic fun (JLandroidx/compose/foundation/shape/CornerSize;JJFLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getCheckboxCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public final fun getCheckboxSize-MYxV2XQ ()J + public final fun getIconContentGap-D9Ej5fM ()F + public final fun getOutlineOffset-RKDOV3M ()J + public final fun getOutlineSize-MYxV2XQ ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/CheckboxIcons { - public abstract fun getCheckbox ()Lorg/jetbrains/jewel/painter/PainterProvider; +public final class org/jetbrains/jewel/styling/CheckboxMetrics$Companion { } -public abstract interface class org/jetbrains/jewel/styling/CheckboxMetrics { - public abstract fun getCheckboxCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public abstract fun getCheckboxSize-MYxV2XQ ()J - public abstract fun getIconContentGap-D9Ej5fM ()F - public abstract fun getOutlineOffset-RKDOV3M ()J - public abstract fun getOutlineSize-MYxV2XQ ()J +public final class org/jetbrains/jewel/styling/CheckboxStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/CheckboxStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/CheckboxColors;Lorg/jetbrains/jewel/styling/CheckboxMetrics;Lorg/jetbrains/jewel/styling/CheckboxIcons;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/styling/CheckboxColors; + public final fun getIcons ()Lorg/jetbrains/jewel/styling/CheckboxIcons; + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/CheckboxMetrics; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/CheckboxStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/CheckboxColors; - public abstract fun getIcons ()Lorg/jetbrains/jewel/styling/CheckboxIcons; - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/CheckboxMetrics; +public final class org/jetbrains/jewel/styling/CheckboxStyle$Companion { } public final class org/jetbrains/jewel/styling/CheckboxStylingKt { public static final fun getLocalCheckboxStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/ChipColors { - public abstract fun backgroundFor-z6rh5VY (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun borderFor-z6rh5VY (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun contentFor-z6rh5VY (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun getBackground ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBackgroundDisabled ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBackgroundFocused ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBackgroundHovered ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBackgroundPressed ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBackgroundSelected ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBackgroundSelectedDisabled ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBackgroundSelectedFocused ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBackgroundSelectedHovered ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBackgroundSelectedPressed ()Landroidx/compose/ui/graphics/Brush; - public abstract fun getBorder-0d7_KjU ()J - public abstract fun getBorderDisabled-0d7_KjU ()J - public abstract fun getBorderFocused-0d7_KjU ()J - public abstract fun getBorderHovered-0d7_KjU ()J - public abstract fun getBorderPressed-0d7_KjU ()J - public abstract fun getBorderSelected-0d7_KjU ()J - public abstract fun getBorderSelectedDisabled-0d7_KjU ()J - public abstract fun getBorderSelectedFocused-0d7_KjU ()J - public abstract fun getBorderSelectedHovered-0d7_KjU ()J - public abstract fun getBorderSelectedPressed-0d7_KjU ()J - public abstract fun getContent-0d7_KjU ()J - public abstract fun getContentDisabled-0d7_KjU ()J - public abstract fun getContentFocused-0d7_KjU ()J - public abstract fun getContentHovered-0d7_KjU ()J - public abstract fun getContentPressed-0d7_KjU ()J - public abstract fun getContentSelected-0d7_KjU ()J - public abstract fun getContentSelectedDisabled-0d7_KjU ()J - public abstract fun getContentSelectedFocused-0d7_KjU ()J - public abstract fun getContentSelectedHovered-0d7_KjU ()J - public abstract fun getContentSelectedPressed-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/ChipColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/ChipColors$Companion; + public synthetic fun (Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJJJJJJJJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun backgroundFor-z6rh5VY (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public final fun borderFor-z6rh5VY (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public final fun contentFor-z6rh5VY (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun equals (Ljava/lang/Object;)Z + public final fun getBackground ()Landroidx/compose/ui/graphics/Brush; + public final fun getBackgroundDisabled ()Landroidx/compose/ui/graphics/Brush; + public final fun getBackgroundFocused ()Landroidx/compose/ui/graphics/Brush; + public final fun getBackgroundHovered ()Landroidx/compose/ui/graphics/Brush; + public final fun getBackgroundPressed ()Landroidx/compose/ui/graphics/Brush; + public final fun getBackgroundSelected ()Landroidx/compose/ui/graphics/Brush; + public final fun getBackgroundSelectedDisabled ()Landroidx/compose/ui/graphics/Brush; + public final fun getBackgroundSelectedFocused ()Landroidx/compose/ui/graphics/Brush; + public final fun getBackgroundSelectedHovered ()Landroidx/compose/ui/graphics/Brush; + public final fun getBackgroundSelectedPressed ()Landroidx/compose/ui/graphics/Brush; + public final fun getBorder-0d7_KjU ()J + public final fun getBorderDisabled-0d7_KjU ()J + public final fun getBorderFocused-0d7_KjU ()J + public final fun getBorderHovered-0d7_KjU ()J + public final fun getBorderPressed-0d7_KjU ()J + public final fun getBorderSelected-0d7_KjU ()J + public final fun getBorderSelectedDisabled-0d7_KjU ()J + public final fun getBorderSelectedFocused-0d7_KjU ()J + public final fun getBorderSelectedHovered-0d7_KjU ()J + public final fun getBorderSelectedPressed-0d7_KjU ()J + public final fun getContent-0d7_KjU ()J + public final fun getContentDisabled-0d7_KjU ()J + public final fun getContentFocused-0d7_KjU ()J + public final fun getContentHovered-0d7_KjU ()J + public final fun getContentPressed-0d7_KjU ()J + public final fun getContentSelected-0d7_KjU ()J + public final fun getContentSelectedDisabled-0d7_KjU ()J + public final fun getContentSelectedFocused-0d7_KjU ()J + public final fun getContentSelectedHovered-0d7_KjU ()J + public final fun getContentSelectedPressed-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public final class org/jetbrains/jewel/styling/ChipColors$DefaultImpls { - public static fun backgroundFor-z6rh5VY (Lorg/jetbrains/jewel/styling/ChipColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun borderFor-z6rh5VY (Lorg/jetbrains/jewel/styling/ChipColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun contentFor-z6rh5VY (Lorg/jetbrains/jewel/styling/ChipColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/ChipColors$Companion { } -public abstract interface class org/jetbrains/jewel/styling/ChipMetrics { - public abstract fun getBorderWidth-D9Ej5fM ()F - public abstract fun getBorderWidthSelected-D9Ej5fM ()F - public abstract fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public abstract fun getPadding ()Landroidx/compose/foundation/layout/PaddingValues; +public final class org/jetbrains/jewel/styling/ChipMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/ChipMetrics$Companion; + public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;FFLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getBorderWidth-D9Ej5fM ()F + public final fun getBorderWidthSelected-D9Ej5fM ()F + public final fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public final fun getPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/ChipMetrics$Companion { +} + +public final class org/jetbrains/jewel/styling/ChipStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/ChipStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/ChipColors;Lorg/jetbrains/jewel/styling/ChipMetrics;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/styling/ChipColors; + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/ChipMetrics; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/ChipStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/ChipColors; - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/ChipMetrics; +public final class org/jetbrains/jewel/styling/ChipStyle$Companion { } public final class org/jetbrains/jewel/styling/ChipStylingKt { public static final fun getLocalChipStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/CircularProgressStyle { - public abstract fun getColor-0d7_KjU ()J - public abstract fun getFrameTime-UwyO8pc ()J +public final class org/jetbrains/jewel/styling/CircularProgressStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/CircularProgressStyle$Companion; + public synthetic fun (JJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun getColor-0d7_KjU ()J + public final fun getFrameTime-UwyO8pc ()J +} + +public final class org/jetbrains/jewel/styling/CircularProgressStyle$Companion { } public final class org/jetbrains/jewel/styling/CircularProgressStyleKt { public static final fun getLocalCircularProgressStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/DividerMetrics { - public abstract fun getStartIndent-D9Ej5fM ()F - public abstract fun getThickness-D9Ej5fM ()F +public final class org/jetbrains/jewel/styling/DividerMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/DividerMetrics$Companion; + public synthetic fun (FFLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getStartIndent-D9Ej5fM ()F + public final fun getThickness-D9Ej5fM ()F + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/DividerMetrics$Companion { +} + +public final class org/jetbrains/jewel/styling/DividerStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/DividerStyle$Companion; + public synthetic fun (JLorg/jetbrains/jewel/styling/DividerMetrics;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColor-0d7_KjU ()J + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/DividerMetrics; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/DividerStyle { - public abstract fun getColor-0d7_KjU ()J - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/DividerMetrics; +public final class org/jetbrains/jewel/styling/DividerStyle$Companion { } public final class org/jetbrains/jewel/styling/DividerStylingKt { public static final fun getLocalDividerStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/DropdownColors { - public abstract fun backgroundFor-7I1Rs2w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun borderFor-7I1Rs2w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun contentFor-7I1Rs2w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun getBackground-0d7_KjU ()J - public abstract fun getBackgroundDisabled-0d7_KjU ()J - public abstract fun getBackgroundFocused-0d7_KjU ()J - public abstract fun getBackgroundHovered-0d7_KjU ()J - public abstract fun getBackgroundPressed-0d7_KjU ()J - public abstract fun getBorder-0d7_KjU ()J - public abstract fun getBorderDisabled-0d7_KjU ()J - public abstract fun getBorderFocused-0d7_KjU ()J - public abstract fun getBorderHovered-0d7_KjU ()J - public abstract fun getBorderPressed-0d7_KjU ()J - public abstract fun getContent-0d7_KjU ()J - public abstract fun getContentDisabled-0d7_KjU ()J - public abstract fun getContentFocused-0d7_KjU ()J - public abstract fun getContentHovered-0d7_KjU ()J - public abstract fun getContentPressed-0d7_KjU ()J - public abstract fun getIconTint-0d7_KjU ()J - public abstract fun getIconTintDisabled-0d7_KjU ()J - public abstract fun getIconTintFocused-0d7_KjU ()J - public abstract fun getIconTintHovered-0d7_KjU ()J - public abstract fun getIconTintPressed-0d7_KjU ()J - public abstract fun iconTintFor-7I1Rs2w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/DropdownColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/DropdownColors$Companion; + public synthetic fun (JJJJJJJJJJJJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun backgroundFor-7I1Rs2w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public final fun borderFor-7I1Rs2w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public final fun contentFor-7I1Rs2w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun equals (Ljava/lang/Object;)Z + public final fun getBackground-0d7_KjU ()J + public final fun getBackgroundDisabled-0d7_KjU ()J + public final fun getBackgroundFocused-0d7_KjU ()J + public final fun getBackgroundHovered-0d7_KjU ()J + public final fun getBackgroundPressed-0d7_KjU ()J + public final fun getBorder-0d7_KjU ()J + public final fun getBorderDisabled-0d7_KjU ()J + public final fun getBorderFocused-0d7_KjU ()J + public final fun getBorderHovered-0d7_KjU ()J + public final fun getBorderPressed-0d7_KjU ()J + public final fun getContent-0d7_KjU ()J + public final fun getContentDisabled-0d7_KjU ()J + public final fun getContentFocused-0d7_KjU ()J + public final fun getContentHovered-0d7_KjU ()J + public final fun getContentPressed-0d7_KjU ()J + public final fun getIconTint-0d7_KjU ()J + public final fun getIconTintDisabled-0d7_KjU ()J + public final fun getIconTintFocused-0d7_KjU ()J + public final fun getIconTintHovered-0d7_KjU ()J + public final fun getIconTintPressed-0d7_KjU ()J + public fun hashCode ()I + public final fun iconTintFor-7I1Rs2w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun toString ()Ljava/lang/String; } -public final class org/jetbrains/jewel/styling/DropdownColors$DefaultImpls { - public static fun backgroundFor-7I1Rs2w (Lorg/jetbrains/jewel/styling/DropdownColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun borderFor-7I1Rs2w (Lorg/jetbrains/jewel/styling/DropdownColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun contentFor-7I1Rs2w (Lorg/jetbrains/jewel/styling/DropdownColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun iconTintFor-7I1Rs2w (Lorg/jetbrains/jewel/styling/DropdownColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/DropdownColors$Companion { } -public abstract interface class org/jetbrains/jewel/styling/DropdownIcons { - public abstract fun getChevronDown ()Lorg/jetbrains/jewel/painter/PainterProvider; +public final class org/jetbrains/jewel/styling/DropdownIcons { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/DropdownIcons$Companion; + public fun (Lorg/jetbrains/jewel/painter/PainterProvider;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getChevronDown ()Lorg/jetbrains/jewel/painter/PainterProvider; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/DropdownMetrics { - public abstract fun getArrowMinSize-MYxV2XQ ()J - public abstract fun getBorderWidth-D9Ej5fM ()F - public abstract fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public abstract fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public abstract fun getMinSize-MYxV2XQ ()J +public final class org/jetbrains/jewel/styling/DropdownIcons$Companion { } -public abstract interface class org/jetbrains/jewel/styling/DropdownStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/DropdownColors; - public abstract fun getIcons ()Lorg/jetbrains/jewel/styling/DropdownIcons; - public abstract fun getMenuStyle ()Lorg/jetbrains/jewel/styling/MenuStyle; - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/DropdownMetrics; - public abstract fun getTextStyle ()Landroidx/compose/ui/text/TextStyle; +public final class org/jetbrains/jewel/styling/DropdownMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/DropdownMetrics$Companion; + public synthetic fun (JJLandroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;FLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getArrowMinSize-MYxV2XQ ()J + public final fun getBorderWidth-D9Ej5fM ()F + public final fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public final fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public final fun getMinSize-MYxV2XQ ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/DropdownMetrics$Companion { +} + +public final class org/jetbrains/jewel/styling/DropdownStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/DropdownStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/DropdownColors;Lorg/jetbrains/jewel/styling/DropdownMetrics;Lorg/jetbrains/jewel/styling/DropdownIcons;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/styling/MenuStyle;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/styling/DropdownColors; + public final fun getIcons ()Lorg/jetbrains/jewel/styling/DropdownIcons; + public final fun getMenuStyle ()Lorg/jetbrains/jewel/styling/MenuStyle; + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/DropdownMetrics; + public final fun getTextStyle ()Landroidx/compose/ui/text/TextStyle; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/DropdownStyle$Companion { } public final class org/jetbrains/jewel/styling/DropdownStylingKt { - public static final fun getLocalDropdownStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; + public static final fun getLocalDefaultDropdownStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; + public static final fun getLocalUndecoratedDropdownStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; +} + +public final class org/jetbrains/jewel/styling/GroupHeaderColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/GroupHeaderColors$Companion; + public synthetic fun (JLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getDivider-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/GroupHeaderColors$Companion { +} + +public final class org/jetbrains/jewel/styling/GroupHeaderMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/GroupHeaderMetrics$Companion; + public synthetic fun (FFLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getDividerThickness-D9Ej5fM ()F + public final fun getIndent-D9Ej5fM ()F + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/GroupHeaderColors { - public abstract fun getDivider-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/GroupHeaderMetrics$Companion { } -public abstract interface class org/jetbrains/jewel/styling/GroupHeaderMetrics { - public abstract fun getDividerThickness-D9Ej5fM ()F - public abstract fun getIndent-D9Ej5fM ()F +public final class org/jetbrains/jewel/styling/GroupHeaderStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/GroupHeaderStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/GroupHeaderColors;Lorg/jetbrains/jewel/styling/GroupHeaderMetrics;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/styling/GroupHeaderColors; + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/GroupHeaderMetrics; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/GroupHeaderStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/GroupHeaderColors; - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/GroupHeaderMetrics; +public final class org/jetbrains/jewel/styling/GroupHeaderStyle$Companion { } public final class org/jetbrains/jewel/styling/GroupHeaderStylingKt { public static final fun getLocalGroupHeaderStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/HorizontalProgressBarColors { - public abstract fun getIndeterminateBase-0d7_KjU ()J - public abstract fun getIndeterminateHighlight-0d7_KjU ()J - public abstract fun getProgress-0d7_KjU ()J - public abstract fun getTrack-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/HorizontalProgressBarColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/HorizontalProgressBarColors$Companion; + public synthetic fun (JJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getIndeterminateBase-0d7_KjU ()J + public final fun getIndeterminateHighlight-0d7_KjU ()J + public final fun getProgress-0d7_KjU ()J + public final fun getTrack-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/HorizontalProgressBarMetrics { - public abstract fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public abstract fun getIndeterminateHighlightWidth-D9Ej5fM ()F - public abstract fun getMinHeight-D9Ej5fM ()F +public final class org/jetbrains/jewel/styling/HorizontalProgressBarColors$Companion { +} + +public final class org/jetbrains/jewel/styling/HorizontalProgressBarMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/HorizontalProgressBarMetrics$Companion; + public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;FFLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public final fun getIndeterminateHighlightWidth-D9Ej5fM ()F + public final fun getMinHeight-D9Ej5fM ()F + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/HorizontalProgressBarMetrics$Companion { } -public abstract interface class org/jetbrains/jewel/styling/HorizontalProgressBarStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/HorizontalProgressBarColors; - public abstract fun getIndeterminateCycleDuration-UwyO8pc ()J - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/HorizontalProgressBarMetrics; +public final class org/jetbrains/jewel/styling/HorizontalProgressBarStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/HorizontalProgressBarStyle$Companion; + public synthetic fun (Lorg/jetbrains/jewel/styling/HorizontalProgressBarColors;Lorg/jetbrains/jewel/styling/HorizontalProgressBarMetrics;JLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/styling/HorizontalProgressBarColors; + public final fun getIndeterminateCycleDuration-UwyO8pc ()J + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/HorizontalProgressBarMetrics; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/HorizontalProgressBarStyle$Companion { } public final class org/jetbrains/jewel/styling/HorizontalProgressBarStylingKt { public static final fun getLocalHorizontalProgressBarStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/IconButtonColors { - public abstract fun backgroundFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun borderFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun getBackground-0d7_KjU ()J - public abstract fun getBackgroundDisabled-0d7_KjU ()J - public abstract fun getBackgroundFocused-0d7_KjU ()J - public abstract fun getBackgroundHovered-0d7_KjU ()J - public abstract fun getBackgroundPressed-0d7_KjU ()J - public abstract fun getBorder-0d7_KjU ()J - public abstract fun getBorderDisabled-0d7_KjU ()J - public abstract fun getBorderFocused-0d7_KjU ()J - public abstract fun getBorderHovered-0d7_KjU ()J - public abstract fun getBorderPressed-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/IconButtonColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/IconButtonColors$Companion; + public synthetic fun (JJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun backgroundFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public final fun borderFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun equals (Ljava/lang/Object;)Z + public final fun getBackground-0d7_KjU ()J + public final fun getBackgroundDisabled-0d7_KjU ()J + public final fun getBackgroundFocused-0d7_KjU ()J + public final fun getBackgroundHovered-0d7_KjU ()J + public final fun getBackgroundPressed-0d7_KjU ()J + public final fun getBorder-0d7_KjU ()J + public final fun getBorderDisabled-0d7_KjU ()J + public final fun getBorderFocused-0d7_KjU ()J + public final fun getBorderHovered-0d7_KjU ()J + public final fun getBorderPressed-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public final class org/jetbrains/jewel/styling/IconButtonColors$DefaultImpls { - public static fun backgroundFor-RO59lCw (Lorg/jetbrains/jewel/styling/IconButtonColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun borderFor-RO59lCw (Lorg/jetbrains/jewel/styling/IconButtonColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/IconButtonColors$Companion { } -public abstract interface class org/jetbrains/jewel/styling/IconButtonMetrics { - public abstract fun getBorderWidth-D9Ej5fM ()F - public abstract fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public abstract fun getMinSize-MYxV2XQ ()J - public abstract fun getPadding ()Landroidx/compose/foundation/layout/PaddingValues; +public final class org/jetbrains/jewel/styling/IconButtonMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/IconButtonMetrics$Companion; + public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;FLandroidx/compose/foundation/layout/PaddingValues;JLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getBorderWidth-D9Ej5fM ()F + public final fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public final fun getMinSize-MYxV2XQ ()J + public final fun getPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/IconButtonMetrics$Companion { } public final class org/jetbrains/jewel/styling/IconButtonMetricsKt { public static final fun getLocalIconButtonStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/IconButtonStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/IconButtonColors; - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/IconButtonMetrics; +public final class org/jetbrains/jewel/styling/IconButtonStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/IconButtonStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/IconButtonColors;Lorg/jetbrains/jewel/styling/IconButtonMetrics;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/styling/IconButtonColors; + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/IconButtonMetrics; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/IconButtonStyle$Companion { } public abstract interface class org/jetbrains/jewel/styling/InputFieldColors { @@ -1963,325 +2169,608 @@ public abstract interface class org/jetbrains/jewel/styling/InputFieldStyle { public abstract fun getTextStyle ()Landroidx/compose/ui/text/TextStyle; } -public abstract interface class org/jetbrains/jewel/styling/LabelledTextFieldColors : org/jetbrains/jewel/styling/TextFieldColors { - public abstract fun getHint-0d7_KjU ()J - public abstract fun getLabel-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/LabelledTextFieldColors : org/jetbrains/jewel/styling/InputFieldColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/LabelledTextFieldColors$Companion; + public synthetic fun (JJJJJJJJJJJJJJJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun asTextFieldColors ()Lorg/jetbrains/jewel/styling/TextFieldColors; + public fun backgroundFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun borderFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun caretFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun contentFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun equals (Ljava/lang/Object;)Z + public fun getBackground-0d7_KjU ()J + public fun getBackgroundDisabled-0d7_KjU ()J + public fun getBackgroundFocused-0d7_KjU ()J + public fun getBackgroundHovered-0d7_KjU ()J + public fun getBackgroundPressed-0d7_KjU ()J + public fun getBorder-0d7_KjU ()J + public fun getBorderDisabled-0d7_KjU ()J + public fun getBorderFocused-0d7_KjU ()J + public fun getBorderHovered-0d7_KjU ()J + public fun getBorderPressed-0d7_KjU ()J + public fun getCaret-0d7_KjU ()J + public fun getCaretDisabled-0d7_KjU ()J + public fun getCaretFocused-0d7_KjU ()J + public fun getCaretHovered-0d7_KjU ()J + public fun getCaretPressed-0d7_KjU ()J + public fun getContent-0d7_KjU ()J + public fun getContentDisabled-0d7_KjU ()J + public fun getContentFocused-0d7_KjU ()J + public fun getContentHovered-0d7_KjU ()J + public fun getContentPressed-0d7_KjU ()J + public final fun getHint-0d7_KjU ()J + public final fun getLabel-0d7_KjU ()J + public final fun getPlaceholder-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/LabelledTextFieldColors$Companion { } -public final class org/jetbrains/jewel/styling/LabelledTextFieldColors$DefaultImpls { - public static fun backgroundFor-37MyHpk (Lorg/jetbrains/jewel/styling/LabelledTextFieldColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun borderFor-37MyHpk (Lorg/jetbrains/jewel/styling/LabelledTextFieldColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun caretFor-37MyHpk (Lorg/jetbrains/jewel/styling/LabelledTextFieldColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun contentFor-37MyHpk (Lorg/jetbrains/jewel/styling/LabelledTextFieldColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/LabelledTextFieldMetrics : org/jetbrains/jewel/styling/InputFieldMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/LabelledTextFieldMetrics$Companion; + public synthetic fun (FLandroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/shape/CornerSize;JFFLkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun asTextFieldMetrics ()Lorg/jetbrains/jewel/styling/TextFieldMetrics; + public fun equals (Ljava/lang/Object;)Z + public fun getBorderWidth-D9Ej5fM ()F + public fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public final fun getHintSpacing-D9Ej5fM ()F + public final fun getLabelSpacing-D9Ej5fM ()F + public fun getMinSize-MYxV2XQ ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/LabelledTextFieldMetrics : org/jetbrains/jewel/styling/InputFieldMetrics { - public abstract fun getHintSpacing-D9Ej5fM ()F - public abstract fun getLabelSpacing-D9Ej5fM ()F +public final class org/jetbrains/jewel/styling/LabelledTextFieldMetrics$Companion { } -public abstract interface class org/jetbrains/jewel/styling/LabelledTextFieldStyle : org/jetbrains/jewel/styling/TextFieldStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/LabelledTextFieldColors; - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/LabelledTextFieldMetrics; - public abstract fun getTextStyles ()Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles; +public final class org/jetbrains/jewel/styling/LabelledTextFieldStyle : org/jetbrains/jewel/styling/InputFieldStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/LabelledTextFieldStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/LabelledTextFieldColors;Lorg/jetbrains/jewel/styling/LabelledTextFieldMetrics;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles;)V + public final fun asTextFieldStyle ()Lorg/jetbrains/jewel/styling/TextFieldStyle; + public fun equals (Ljava/lang/Object;)Z + public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/InputFieldColors; + public fun getColors ()Lorg/jetbrains/jewel/styling/LabelledTextFieldColors; + public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/InputFieldMetrics; + public fun getMetrics ()Lorg/jetbrains/jewel/styling/LabelledTextFieldMetrics; + public fun getTextStyle ()Landroidx/compose/ui/text/TextStyle; + public final fun getTextStyles ()Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/LabelledTextFieldTextStyles { - public abstract fun getHint ()Landroidx/compose/ui/text/TextStyle; - public abstract fun getLabel ()Landroidx/compose/ui/text/TextStyle; +public final class org/jetbrains/jewel/styling/LabelledTextFieldStyle$Companion { } -public abstract interface class org/jetbrains/jewel/styling/LazyTreeColors { - public abstract fun contentFor-iZdlh1w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun getContent-0d7_KjU ()J - public abstract fun getContentFocused-0d7_KjU ()J - public abstract fun getContentSelected-0d7_KjU ()J - public abstract fun getContentSelectedFocused-0d7_KjU ()J - public abstract fun getElementBackgroundFocused-0d7_KjU ()J - public abstract fun getElementBackgroundSelected-0d7_KjU ()J - public abstract fun getElementBackgroundSelectedFocused-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/LabelledTextFieldStylingKt { + public static final fun getLocalLabelledTextFieldStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; +} + +public final class org/jetbrains/jewel/styling/LabelledTextFieldTextStyles { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles$Companion; + public fun (Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getHint ()Landroidx/compose/ui/text/TextStyle; + public final fun getLabel ()Landroidx/compose/ui/text/TextStyle; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public final class org/jetbrains/jewel/styling/LazyTreeColors$DefaultImpls { - public static fun contentFor-iZdlh1w (Lorg/jetbrains/jewel/styling/LazyTreeColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/LabelledTextFieldTextStyles$Companion { } -public abstract interface class org/jetbrains/jewel/styling/LazyTreeIcons { - public abstract fun chevron (ZZLandroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/painter/PainterProvider; - public abstract fun getChevronCollapsed ()Lorg/jetbrains/jewel/painter/PainterProvider; - public abstract fun getChevronExpanded ()Lorg/jetbrains/jewel/painter/PainterProvider; - public abstract fun getChevronSelectedCollapsed ()Lorg/jetbrains/jewel/painter/PainterProvider; - public abstract fun getChevronSelectedExpanded ()Lorg/jetbrains/jewel/painter/PainterProvider; +public final class org/jetbrains/jewel/styling/LazyTreeColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/LazyTreeColors$Companion; + public synthetic fun (JJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun contentFor-iZdlh1w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun equals (Ljava/lang/Object;)Z + public final fun getContent-0d7_KjU ()J + public final fun getContentFocused-0d7_KjU ()J + public final fun getContentSelected-0d7_KjU ()J + public final fun getContentSelectedFocused-0d7_KjU ()J + public final fun getElementBackgroundFocused-0d7_KjU ()J + public final fun getElementBackgroundSelected-0d7_KjU ()J + public final fun getElementBackgroundSelectedFocused-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public final class org/jetbrains/jewel/styling/LazyTreeIcons$DefaultImpls { - public static fun chevron (Lorg/jetbrains/jewel/styling/LazyTreeIcons;ZZLandroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/painter/PainterProvider; +public final class org/jetbrains/jewel/styling/LazyTreeColors$Companion { } -public abstract interface class org/jetbrains/jewel/styling/LazyTreeMetrics { - public abstract fun getChevronContentGap-D9Ej5fM ()F - public abstract fun getElementBackgroundCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public abstract fun getElementContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public abstract fun getElementMinHeight-D9Ej5fM ()F - public abstract fun getElementPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public abstract fun getIndentSize-D9Ej5fM ()F +public final class org/jetbrains/jewel/styling/LazyTreeIcons { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/LazyTreeIcons$Companion; + public fun (Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;)V + public final fun chevron (ZZLandroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/painter/PainterProvider; + public fun equals (Ljava/lang/Object;)Z + public final fun getChevronCollapsed ()Lorg/jetbrains/jewel/painter/PainterProvider; + public final fun getChevronExpanded ()Lorg/jetbrains/jewel/painter/PainterProvider; + public final fun getChevronSelectedCollapsed ()Lorg/jetbrains/jewel/painter/PainterProvider; + public final fun getChevronSelectedExpanded ()Lorg/jetbrains/jewel/painter/PainterProvider; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/LazyTreeStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/LazyTreeColors; - public abstract fun getIcons ()Lorg/jetbrains/jewel/styling/LazyTreeIcons; - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/LazyTreeMetrics; +public final class org/jetbrains/jewel/styling/LazyTreeIcons$Companion { +} + +public final class org/jetbrains/jewel/styling/LazyTreeMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/LazyTreeMetrics$Companion; + public synthetic fun (FLandroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;FFLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getChevronContentGap-D9Ej5fM ()F + public final fun getElementBackgroundCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public final fun getElementContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public final fun getElementMinHeight-D9Ej5fM ()F + public final fun getElementPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public final fun getIndentSize-D9Ej5fM ()F + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/LazyTreeMetrics$Companion { +} + +public final class org/jetbrains/jewel/styling/LazyTreeStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/LazyTreeStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/LazyTreeColors;Lorg/jetbrains/jewel/styling/LazyTreeMetrics;Lorg/jetbrains/jewel/styling/LazyTreeIcons;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/styling/LazyTreeColors; + public final fun getIcons ()Lorg/jetbrains/jewel/styling/LazyTreeIcons; + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/LazyTreeMetrics; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/LazyTreeStyle$Companion { } public final class org/jetbrains/jewel/styling/LazyTreeStylingKt { public static final fun getLocalLazyTreeStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/LinkColors { - public abstract fun contentFor-4qImzQQ (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun getContent-0d7_KjU ()J - public abstract fun getContentDisabled-0d7_KjU ()J - public abstract fun getContentFocused-0d7_KjU ()J - public abstract fun getContentHovered-0d7_KjU ()J - public abstract fun getContentPressed-0d7_KjU ()J - public abstract fun getContentVisited-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/LinkColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/LinkColors$Companion; + public synthetic fun (JJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun contentFor-4qImzQQ (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun equals (Ljava/lang/Object;)Z + public final fun getContent-0d7_KjU ()J + public final fun getContentDisabled-0d7_KjU ()J + public final fun getContentFocused-0d7_KjU ()J + public final fun getContentHovered-0d7_KjU ()J + public final fun getContentPressed-0d7_KjU ()J + public final fun getContentVisited-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/LinkColors$Companion { +} + +public final class org/jetbrains/jewel/styling/LinkIcons { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/LinkIcons$Companion; + public fun (Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getDropdownChevron ()Lorg/jetbrains/jewel/painter/PainterProvider; + public final fun getExternalLink ()Lorg/jetbrains/jewel/painter/PainterProvider; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/LinkIcons$Companion { } -public final class org/jetbrains/jewel/styling/LinkColors$DefaultImpls { - public static fun contentFor-4qImzQQ (Lorg/jetbrains/jewel/styling/LinkColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/LinkMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/LinkMetrics$Companion; + public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;FJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getFocusHaloCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public final fun getIconSize-MYxV2XQ ()J + public final fun getTextIconGap-D9Ej5fM ()F + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/LinkIcons { - public abstract fun getDropdownChevron ()Lorg/jetbrains/jewel/painter/PainterProvider; - public abstract fun getExternalLink ()Lorg/jetbrains/jewel/painter/PainterProvider; +public final class org/jetbrains/jewel/styling/LinkMetrics$Companion { } -public abstract interface class org/jetbrains/jewel/styling/LinkMetrics { - public abstract fun getFocusHaloCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public abstract fun getIconSize-MYxV2XQ ()J - public abstract fun getTextIconGap-D9Ej5fM ()F +public final class org/jetbrains/jewel/styling/LinkStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/LinkStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/LinkColors;Lorg/jetbrains/jewel/styling/LinkMetrics;Lorg/jetbrains/jewel/styling/LinkIcons;Lorg/jetbrains/jewel/styling/LinkTextStyles;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/styling/LinkColors; + public final fun getIcons ()Lorg/jetbrains/jewel/styling/LinkIcons; + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/LinkMetrics; + public final fun getTextStyles ()Lorg/jetbrains/jewel/styling/LinkTextStyles; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/LinkStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/LinkColors; - public abstract fun getIcons ()Lorg/jetbrains/jewel/styling/LinkIcons; - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/LinkMetrics; - public abstract fun getTextStyles ()Lorg/jetbrains/jewel/styling/LinkTextStyles; +public final class org/jetbrains/jewel/styling/LinkStyle$Companion { } public final class org/jetbrains/jewel/styling/LinkStylingKt { public static final fun getLocalLinkStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/LinkTextStyles { - public abstract fun getDisabled ()Landroidx/compose/ui/text/TextStyle; - public abstract fun getFocused ()Landroidx/compose/ui/text/TextStyle; - public abstract fun getHovered ()Landroidx/compose/ui/text/TextStyle; - public abstract fun getNormal ()Landroidx/compose/ui/text/TextStyle; - public abstract fun getPressed ()Landroidx/compose/ui/text/TextStyle; - public abstract fun getVisited ()Landroidx/compose/ui/text/TextStyle; - public abstract fun styleFor-4qImzQQ (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/LinkTextStyles { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/LinkTextStyles$Companion; + public fun (Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getDisabled ()Landroidx/compose/ui/text/TextStyle; + public final fun getFocused ()Landroidx/compose/ui/text/TextStyle; + public final fun getHovered ()Landroidx/compose/ui/text/TextStyle; + public final fun getNormal ()Landroidx/compose/ui/text/TextStyle; + public final fun getPressed ()Landroidx/compose/ui/text/TextStyle; + public final fun getVisited ()Landroidx/compose/ui/text/TextStyle; + public fun hashCode ()I + public final fun styleFor-4qImzQQ (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun toString ()Ljava/lang/String; } -public final class org/jetbrains/jewel/styling/LinkTextStyles$DefaultImpls { - public static fun styleFor-4qImzQQ (Lorg/jetbrains/jewel/styling/LinkTextStyles;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/LinkTextStyles$Companion { } -public abstract interface class org/jetbrains/jewel/styling/MenuColors { - public abstract fun getBackground-0d7_KjU ()J - public abstract fun getBorder-0d7_KjU ()J - public abstract fun getItemColors ()Lorg/jetbrains/jewel/styling/MenuItemColors; - public abstract fun getShadow-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/MenuColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/MenuColors$Companion; + public synthetic fun (JJJLorg/jetbrains/jewel/styling/MenuItemColors;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getBackground-0d7_KjU ()J + public final fun getBorder-0d7_KjU ()J + public final fun getItemColors ()Lorg/jetbrains/jewel/styling/MenuItemColors; + public final fun getShadow-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/MenuIcons { - public abstract fun getSubmenuChevron ()Lorg/jetbrains/jewel/painter/PainterProvider; +public final class org/jetbrains/jewel/styling/MenuColors$Companion { } -public abstract interface class org/jetbrains/jewel/styling/MenuItemColors { - public abstract fun backgroundFor-BYhRtsk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun contentFor-BYhRtsk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun getBackground-0d7_KjU ()J - public abstract fun getBackgroundDisabled-0d7_KjU ()J - public abstract fun getBackgroundFocused-0d7_KjU ()J - public abstract fun getBackgroundHovered-0d7_KjU ()J - public abstract fun getBackgroundPressed-0d7_KjU ()J - public abstract fun getContent-0d7_KjU ()J - public abstract fun getContentDisabled-0d7_KjU ()J - public abstract fun getContentFocused-0d7_KjU ()J - public abstract fun getContentHovered-0d7_KjU ()J - public abstract fun getContentPressed-0d7_KjU ()J - public abstract fun getIconTint-0d7_KjU ()J - public abstract fun getIconTintDisabled-0d7_KjU ()J - public abstract fun getIconTintFocused-0d7_KjU ()J - public abstract fun getIconTintHovered-0d7_KjU ()J - public abstract fun getIconTintPressed-0d7_KjU ()J - public abstract fun getSeparator-0d7_KjU ()J - public abstract fun iconTintFor-BYhRtsk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/MenuIcons { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/MenuIcons$Companion; + public fun (Lorg/jetbrains/jewel/painter/PainterProvider;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getSubmenuChevron ()Lorg/jetbrains/jewel/painter/PainterProvider; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public final class org/jetbrains/jewel/styling/MenuItemColors$DefaultImpls { - public static fun backgroundFor-BYhRtsk (Lorg/jetbrains/jewel/styling/MenuItemColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun contentFor-BYhRtsk (Lorg/jetbrains/jewel/styling/MenuItemColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun iconTintFor-BYhRtsk (Lorg/jetbrains/jewel/styling/MenuItemColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/MenuIcons$Companion { } -public abstract interface class org/jetbrains/jewel/styling/MenuItemMetrics { - public abstract fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public abstract fun getOuterPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public abstract fun getSelectionCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public abstract fun getSeparatorPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public abstract fun getSeparatorThickness-D9Ej5fM ()F +public final class org/jetbrains/jewel/styling/MenuItemColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/MenuItemColors$Companion; + public synthetic fun (JJJJJJJJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun backgroundFor-BYhRtsk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public final fun contentFor-BYhRtsk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun equals (Ljava/lang/Object;)Z + public final fun getBackground-0d7_KjU ()J + public final fun getBackgroundDisabled-0d7_KjU ()J + public final fun getBackgroundFocused-0d7_KjU ()J + public final fun getBackgroundHovered-0d7_KjU ()J + public final fun getBackgroundPressed-0d7_KjU ()J + public final fun getContent-0d7_KjU ()J + public final fun getContentDisabled-0d7_KjU ()J + public final fun getContentFocused-0d7_KjU ()J + public final fun getContentHovered-0d7_KjU ()J + public final fun getContentPressed-0d7_KjU ()J + public final fun getIconTint-0d7_KjU ()J + public final fun getIconTintDisabled-0d7_KjU ()J + public final fun getIconTintFocused-0d7_KjU ()J + public final fun getIconTintHovered-0d7_KjU ()J + public final fun getIconTintPressed-0d7_KjU ()J + public final fun getSeparator-0d7_KjU ()J + public fun hashCode ()I + public final fun iconTintFor-BYhRtsk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/MenuMetrics { - public abstract fun getBorderWidth-D9Ej5fM ()F - public abstract fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public abstract fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public abstract fun getItemMetrics ()Lorg/jetbrains/jewel/styling/MenuItemMetrics; - public abstract fun getMenuMargin ()Landroidx/compose/foundation/layout/PaddingValues; - public abstract fun getOffset-RKDOV3M ()J - public abstract fun getShadowSize-D9Ej5fM ()F - public abstract fun getSubmenuMetrics ()Lorg/jetbrains/jewel/styling/SubmenuMetrics; +public final class org/jetbrains/jewel/styling/MenuItemColors$Companion { +} + +public final class org/jetbrains/jewel/styling/MenuItemMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/MenuItemMetrics$Companion; + public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;FLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public final fun getOuterPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public final fun getSelectionCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public final fun getSeparatorPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public final fun getSeparatorThickness-D9Ej5fM ()F + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/MenuItemMetrics$Companion { +} + +public final class org/jetbrains/jewel/styling/MenuMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/MenuMetrics$Companion; + public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;JFFLorg/jetbrains/jewel/styling/MenuItemMetrics;Lorg/jetbrains/jewel/styling/SubmenuMetrics;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getBorderWidth-D9Ej5fM ()F + public final fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public final fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public final fun getItemMetrics ()Lorg/jetbrains/jewel/styling/MenuItemMetrics; + public final fun getMenuMargin ()Landroidx/compose/foundation/layout/PaddingValues; + public final fun getOffset-RKDOV3M ()J + public final fun getShadowSize-D9Ej5fM ()F + public final fun getSubmenuMetrics ()Lorg/jetbrains/jewel/styling/SubmenuMetrics; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/MenuMetrics$Companion { +} + +public final class org/jetbrains/jewel/styling/MenuStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/MenuStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/MenuColors;Lorg/jetbrains/jewel/styling/MenuMetrics;Lorg/jetbrains/jewel/styling/MenuIcons;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/styling/MenuColors; + public final fun getIcons ()Lorg/jetbrains/jewel/styling/MenuIcons; + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/MenuMetrics; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/MenuStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/MenuColors; - public abstract fun getIcons ()Lorg/jetbrains/jewel/styling/MenuIcons; - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/MenuMetrics; +public final class org/jetbrains/jewel/styling/MenuStyle$Companion { } public final class org/jetbrains/jewel/styling/MenuStylingKt { public static final fun getLocalMenuStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/RadioButtonColors { - public abstract fun contentFor-dQFH0ko (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun getContent-0d7_KjU ()J - public abstract fun getContentDisabled-0d7_KjU ()J - public abstract fun getContentHovered-0d7_KjU ()J - public abstract fun getContentSelected-0d7_KjU ()J - public abstract fun getContentSelectedDisabled-0d7_KjU ()J - public abstract fun getContentSelectedHovered-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/RadioButtonColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/RadioButtonColors$Companion; + public synthetic fun (JJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun contentFor-dQFH0ko (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun equals (Ljava/lang/Object;)Z + public final fun getContent-0d7_KjU ()J + public final fun getContentDisabled-0d7_KjU ()J + public final fun getContentHovered-0d7_KjU ()J + public final fun getContentSelected-0d7_KjU ()J + public final fun getContentSelectedDisabled-0d7_KjU ()J + public final fun getContentSelectedHovered-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/RadioButtonColors$Companion { +} + +public final class org/jetbrains/jewel/styling/RadioButtonIcons { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/RadioButtonIcons$Companion; + public fun (Lorg/jetbrains/jewel/painter/PainterProvider;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getRadioButton ()Lorg/jetbrains/jewel/painter/PainterProvider; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public final class org/jetbrains/jewel/styling/RadioButtonColors$DefaultImpls { - public static fun contentFor-dQFH0ko (Lorg/jetbrains/jewel/styling/RadioButtonColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/RadioButtonIcons$Companion { } -public abstract interface class org/jetbrains/jewel/styling/RadioButtonIcons { - public abstract fun getRadioButton ()Lorg/jetbrains/jewel/painter/PainterProvider; +public final class org/jetbrains/jewel/styling/RadioButtonMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/RadioButtonMetrics$Companion; + public synthetic fun (JFLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getIconContentGap-D9Ej5fM ()F + public final fun getRadioButtonSize-MYxV2XQ ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/RadioButtonMetrics { - public abstract fun getIconContentGap-D9Ej5fM ()F - public abstract fun getRadioButtonSize-MYxV2XQ ()J +public final class org/jetbrains/jewel/styling/RadioButtonMetrics$Companion { } -public abstract interface class org/jetbrains/jewel/styling/RadioButtonStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/RadioButtonColors; - public abstract fun getIcons ()Lorg/jetbrains/jewel/styling/RadioButtonIcons; - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/RadioButtonMetrics; +public final class org/jetbrains/jewel/styling/RadioButtonStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/RadioButtonStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/RadioButtonColors;Lorg/jetbrains/jewel/styling/RadioButtonMetrics;Lorg/jetbrains/jewel/styling/RadioButtonIcons;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/styling/RadioButtonColors; + public final fun getIcons ()Lorg/jetbrains/jewel/styling/RadioButtonIcons; + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/RadioButtonMetrics; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/RadioButtonStyle$Companion { } public final class org/jetbrains/jewel/styling/RadioButtonStylingKt { public static final fun getLocalRadioButtonStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/ScrollbarColors { - public abstract fun getThumbBackground-0d7_KjU ()J - public abstract fun getThumbBackgroundHovered-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/ScrollbarColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/ScrollbarColors$Companion; + public synthetic fun (JJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getThumbBackground-0d7_KjU ()J + public final fun getThumbBackgroundHovered-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/ScrollbarColors$Companion { } -public abstract interface class org/jetbrains/jewel/styling/ScrollbarMetrics { - public abstract fun getMinThumbLength-D9Ej5fM ()F - public abstract fun getThumbCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public abstract fun getThumbThickness-D9Ej5fM ()F - public abstract fun getTrackPadding ()Landroidx/compose/foundation/layout/PaddingValues; +public final class org/jetbrains/jewel/styling/ScrollbarMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/ScrollbarMetrics$Companion; + public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;FFLandroidx/compose/foundation/layout/PaddingValues;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getMinThumbLength-D9Ej5fM ()F + public final fun getThumbCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public final fun getThumbThickness-D9Ej5fM ()F + public final fun getTrackPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/ScrollbarMetrics$Companion { +} + +public final class org/jetbrains/jewel/styling/ScrollbarStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/ScrollbarStyle$Companion; + public synthetic fun (Lorg/jetbrains/jewel/styling/ScrollbarColors;Lorg/jetbrains/jewel/styling/ScrollbarMetrics;JLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/styling/ScrollbarColors; + public final fun getHoverDuration-UwyO8pc ()J + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/ScrollbarMetrics; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/ScrollbarStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/ScrollbarColors; - public abstract fun getHoverDuration-UwyO8pc ()J - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/ScrollbarMetrics; +public final class org/jetbrains/jewel/styling/ScrollbarStyle$Companion { } public final class org/jetbrains/jewel/styling/ScrollbarStylingKt { public static final fun getLocalScrollbarStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/SubmenuMetrics { - public abstract fun getOffset-RKDOV3M ()J +public final class org/jetbrains/jewel/styling/SubmenuMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/SubmenuMetrics$Companion; + public synthetic fun (JLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getOffset-RKDOV3M ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/TabColors { - public abstract fun backgroundFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun contentFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun getBackground-0d7_KjU ()J - public abstract fun getBackgroundDisabled-0d7_KjU ()J - public abstract fun getBackgroundFocused-0d7_KjU ()J - public abstract fun getBackgroundHovered-0d7_KjU ()J - public abstract fun getBackgroundPressed-0d7_KjU ()J - public abstract fun getBackgroundSelected-0d7_KjU ()J - public abstract fun getContent-0d7_KjU ()J - public abstract fun getContentDisabled-0d7_KjU ()J - public abstract fun getContentFocused-0d7_KjU ()J - public abstract fun getContentHovered-0d7_KjU ()J - public abstract fun getContentPressed-0d7_KjU ()J - public abstract fun getContentSelected-0d7_KjU ()J - public abstract fun getUnderline-0d7_KjU ()J - public abstract fun getUnderlineDisabled-0d7_KjU ()J - public abstract fun getUnderlineFocused-0d7_KjU ()J - public abstract fun getUnderlineHovered-0d7_KjU ()J - public abstract fun getUnderlinePressed-0d7_KjU ()J - public abstract fun getUnderlineSelected-0d7_KjU ()J - public abstract fun underlineFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/SubmenuMetrics$Companion { +} + +public final class org/jetbrains/jewel/styling/TabColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/TabColors$Companion; + public synthetic fun (JJJJJJJJJJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun backgroundFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public final fun contentFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun equals (Ljava/lang/Object;)Z + public final fun getBackground-0d7_KjU ()J + public final fun getBackgroundDisabled-0d7_KjU ()J + public final fun getBackgroundFocused-0d7_KjU ()J + public final fun getBackgroundHovered-0d7_KjU ()J + public final fun getBackgroundPressed-0d7_KjU ()J + public final fun getBackgroundSelected-0d7_KjU ()J + public final fun getContent-0d7_KjU ()J + public final fun getContentDisabled-0d7_KjU ()J + public final fun getContentFocused-0d7_KjU ()J + public final fun getContentHovered-0d7_KjU ()J + public final fun getContentPressed-0d7_KjU ()J + public final fun getContentSelected-0d7_KjU ()J + public final fun getUnderline-0d7_KjU ()J + public final fun getUnderlineDisabled-0d7_KjU ()J + public final fun getUnderlineFocused-0d7_KjU ()J + public final fun getUnderlineHovered-0d7_KjU ()J + public final fun getUnderlinePressed-0d7_KjU ()J + public final fun getUnderlineSelected-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; + public final fun underlineFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +} + +public final class org/jetbrains/jewel/styling/TabColors$Companion { +} + +public final class org/jetbrains/jewel/styling/TabContentAlpha { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/TabContentAlpha$Companion; + public fun (FFFFFFFFFFFF)V + public fun equals (Ljava/lang/Object;)Z + public final fun getIconDisabled ()F + public final fun getIconFocused ()F + public final fun getIconHovered ()F + public final fun getIconNormal ()F + public final fun getIconPressed ()F + public final fun getIconSelected ()F + public final fun getLabelDisabled ()F + public final fun getLabelFocused ()F + public final fun getLabelHovered ()F + public final fun getLabelNormal ()F + public final fun getLabelPressed ()F + public final fun getLabelSelected ()F + public fun hashCode ()I + public final fun iconFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public final fun labelFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/TabContentAlpha$Companion { } -public final class org/jetbrains/jewel/styling/TabColors$DefaultImpls { - public static fun backgroundFor-WCiaD9s (Lorg/jetbrains/jewel/styling/TabColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun contentFor-WCiaD9s (Lorg/jetbrains/jewel/styling/TabColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun underlineFor-WCiaD9s (Lorg/jetbrains/jewel/styling/TabColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/TabIcons { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/TabIcons$Companion; + public fun (Lorg/jetbrains/jewel/painter/PainterProvider;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getClose ()Lorg/jetbrains/jewel/painter/PainterProvider; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/TabContentAlpha { - public abstract fun getIconDisabled ()F - public abstract fun getIconFocused ()F - public abstract fun getIconHovered ()F - public abstract fun getIconNormal ()F - public abstract fun getIconPressed ()F - public abstract fun getIconSelected ()F - public abstract fun getLabelDisabled ()F - public abstract fun getLabelFocused ()F - public abstract fun getLabelHovered ()F - public abstract fun getLabelNormal ()F - public abstract fun getLabelPressed ()F - public abstract fun getLabelSelected ()F - public abstract fun iconFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public abstract fun labelFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/TabIcons$Companion { } -public final class org/jetbrains/jewel/styling/TabContentAlpha$DefaultImpls { - public static fun iconFor-WCiaD9s (Lorg/jetbrains/jewel/styling/TabContentAlpha;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun labelFor-WCiaD9s (Lorg/jetbrains/jewel/styling/TabContentAlpha;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/TabMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/TabMetrics$Companion; + public synthetic fun (FLandroidx/compose/foundation/layout/PaddingValues;FFLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getCloseContentGap-D9Ej5fM ()F + public final fun getTabHeight-D9Ej5fM ()F + public final fun getTabPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public final fun getUnderlineThickness-D9Ej5fM ()F + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/TabIcons { - public abstract fun getClose ()Lorg/jetbrains/jewel/painter/PainterProvider; +public final class org/jetbrains/jewel/styling/TabMetrics$Companion { } -public abstract interface class org/jetbrains/jewel/styling/TabMetrics { - public abstract fun getCloseContentGap-D9Ej5fM ()F - public abstract fun getTabHeight-D9Ej5fM ()F - public abstract fun getTabPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public abstract fun getUnderlineThickness-D9Ej5fM ()F +public final class org/jetbrains/jewel/styling/TabStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/TabStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/TabColors;Lorg/jetbrains/jewel/styling/TabMetrics;Lorg/jetbrains/jewel/styling/TabIcons;Lorg/jetbrains/jewel/styling/TabContentAlpha;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/styling/TabColors; + public final fun getContentAlpha ()Lorg/jetbrains/jewel/styling/TabContentAlpha; + public final fun getIcons ()Lorg/jetbrains/jewel/styling/TabIcons; + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/TabMetrics; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/TabStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/TabColors; - public abstract fun getContentAlpha ()Lorg/jetbrains/jewel/styling/TabContentAlpha; - public abstract fun getIcons ()Lorg/jetbrains/jewel/styling/TabIcons; - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/TabMetrics; +public final class org/jetbrains/jewel/styling/TabStyle$Companion { } public final class org/jetbrains/jewel/styling/TabStylingKt { @@ -2289,66 +2778,201 @@ public final class org/jetbrains/jewel/styling/TabStylingKt { public static final fun getLocalEditorTabStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/TextAreaColors : org/jetbrains/jewel/styling/InputFieldColors { - public abstract fun getPlaceholder-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/TextAreaColors : org/jetbrains/jewel/styling/InputFieldColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/TextAreaColors$Companion; + public synthetic fun (JJJJJJJJJJJJJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun backgroundFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun borderFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun caretFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun contentFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun equals (Ljava/lang/Object;)Z + public fun getBackground-0d7_KjU ()J + public fun getBackgroundDisabled-0d7_KjU ()J + public fun getBackgroundFocused-0d7_KjU ()J + public fun getBackgroundHovered-0d7_KjU ()J + public fun getBackgroundPressed-0d7_KjU ()J + public fun getBorder-0d7_KjU ()J + public fun getBorderDisabled-0d7_KjU ()J + public fun getBorderFocused-0d7_KjU ()J + public fun getBorderHovered-0d7_KjU ()J + public fun getBorderPressed-0d7_KjU ()J + public fun getCaret-0d7_KjU ()J + public fun getCaretDisabled-0d7_KjU ()J + public fun getCaretFocused-0d7_KjU ()J + public fun getCaretHovered-0d7_KjU ()J + public fun getCaretPressed-0d7_KjU ()J + public fun getContent-0d7_KjU ()J + public fun getContentDisabled-0d7_KjU ()J + public fun getContentFocused-0d7_KjU ()J + public fun getContentHovered-0d7_KjU ()J + public fun getContentPressed-0d7_KjU ()J + public final fun getPlaceholder-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public final class org/jetbrains/jewel/styling/TextAreaColors$DefaultImpls { - public static fun backgroundFor-37MyHpk (Lorg/jetbrains/jewel/styling/TextAreaColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun borderFor-37MyHpk (Lorg/jetbrains/jewel/styling/TextAreaColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun caretFor-37MyHpk (Lorg/jetbrains/jewel/styling/TextAreaColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun contentFor-37MyHpk (Lorg/jetbrains/jewel/styling/TextAreaColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/TextAreaColors$Companion { } -public abstract interface class org/jetbrains/jewel/styling/TextAreaStyle : org/jetbrains/jewel/styling/InputFieldStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/TextAreaColors; - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/InputFieldMetrics; +public final class org/jetbrains/jewel/styling/TextAreaMetrics : org/jetbrains/jewel/styling/InputFieldMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/TextAreaMetrics$Companion; + public synthetic fun (FLandroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/shape/CornerSize;JLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public fun getBorderWidth-D9Ej5fM ()F + public fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public fun getMinSize-MYxV2XQ ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/TextAreaMetrics$Companion { +} + +public final class org/jetbrains/jewel/styling/TextAreaStyle : org/jetbrains/jewel/styling/InputFieldStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/TextAreaStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/TextAreaColors;Lorg/jetbrains/jewel/styling/TextAreaMetrics;Landroidx/compose/ui/text/TextStyle;)V + public fun equals (Ljava/lang/Object;)Z + public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/InputFieldColors; + public fun getColors ()Lorg/jetbrains/jewel/styling/TextAreaColors; + public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/InputFieldMetrics; + public fun getMetrics ()Lorg/jetbrains/jewel/styling/TextAreaMetrics; + public fun getTextStyle ()Landroidx/compose/ui/text/TextStyle; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/TextAreaStyle$Companion { } public final class org/jetbrains/jewel/styling/TextAreaStylingKt { public static final fun getLocalTextAreaStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/TextFieldColors : org/jetbrains/jewel/styling/InputFieldColors { - public abstract fun getPlaceholder-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/TextFieldColors : org/jetbrains/jewel/styling/InputFieldColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/TextFieldColors$Companion; + public synthetic fun (JJJJJJJJJJJJJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun backgroundFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun borderFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun caretFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun contentFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; + public fun equals (Ljava/lang/Object;)Z + public fun getBackground-0d7_KjU ()J + public fun getBackgroundDisabled-0d7_KjU ()J + public fun getBackgroundFocused-0d7_KjU ()J + public fun getBackgroundHovered-0d7_KjU ()J + public fun getBackgroundPressed-0d7_KjU ()J + public fun getBorder-0d7_KjU ()J + public fun getBorderDisabled-0d7_KjU ()J + public fun getBorderFocused-0d7_KjU ()J + public fun getBorderHovered-0d7_KjU ()J + public fun getBorderPressed-0d7_KjU ()J + public fun getCaret-0d7_KjU ()J + public fun getCaretDisabled-0d7_KjU ()J + public fun getCaretFocused-0d7_KjU ()J + public fun getCaretHovered-0d7_KjU ()J + public fun getCaretPressed-0d7_KjU ()J + public fun getContent-0d7_KjU ()J + public fun getContentDisabled-0d7_KjU ()J + public fun getContentFocused-0d7_KjU ()J + public fun getContentHovered-0d7_KjU ()J + public fun getContentPressed-0d7_KjU ()J + public final fun getPlaceholder-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public final class org/jetbrains/jewel/styling/TextFieldColors$DefaultImpls { - public static fun backgroundFor-37MyHpk (Lorg/jetbrains/jewel/styling/TextFieldColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun borderFor-37MyHpk (Lorg/jetbrains/jewel/styling/TextFieldColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun caretFor-37MyHpk (Lorg/jetbrains/jewel/styling/TextFieldColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public static fun contentFor-37MyHpk (Lorg/jetbrains/jewel/styling/TextFieldColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; +public final class org/jetbrains/jewel/styling/TextFieldColors$Companion { } -public abstract interface class org/jetbrains/jewel/styling/TextFieldStyle : org/jetbrains/jewel/styling/InputFieldStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/TextFieldColors; +public final class org/jetbrains/jewel/styling/TextFieldMetrics : org/jetbrains/jewel/styling/InputFieldMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/TextFieldMetrics$Companion; + public synthetic fun (FLandroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/shape/CornerSize;JLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public fun getBorderWidth-D9Ej5fM ()F + public fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public fun getMinSize-MYxV2XQ ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/TextFieldMetrics$Companion { +} + +public final class org/jetbrains/jewel/styling/TextFieldStyle : org/jetbrains/jewel/styling/InputFieldStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/TextFieldStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/TextFieldColors;Lorg/jetbrains/jewel/styling/TextFieldMetrics;Landroidx/compose/ui/text/TextStyle;)V + public fun equals (Ljava/lang/Object;)Z + public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/InputFieldColors; + public fun getColors ()Lorg/jetbrains/jewel/styling/TextFieldColors; + public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/InputFieldMetrics; + public fun getMetrics ()Lorg/jetbrains/jewel/styling/TextFieldMetrics; + public fun getTextStyle ()Landroidx/compose/ui/text/TextStyle; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/TextFieldStyle$Companion { } public final class org/jetbrains/jewel/styling/TextFieldStylingKt { - public static final fun getLocalLabelledTextFieldStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; public static final fun getLocalTextFieldStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal; } -public abstract interface class org/jetbrains/jewel/styling/TooltipColors { - public abstract fun getBackground-0d7_KjU ()J - public abstract fun getBorder-0d7_KjU ()J - public abstract fun getContent-0d7_KjU ()J - public abstract fun getShadow-0d7_KjU ()J +public final class org/jetbrains/jewel/styling/TooltipColors { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/TooltipColors$Companion; + public synthetic fun (JJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getBackground-0d7_KjU ()J + public final fun getBorder-0d7_KjU ()J + public final fun getContent-0d7_KjU ()J + public final fun getShadow-0d7_KjU ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/TooltipMetrics { - public abstract fun getBorderWidth-D9Ej5fM ()F - public abstract fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public abstract fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public abstract fun getShadowSize-D9Ej5fM ()F - public abstract fun getShowDelay-UwyO8pc ()J - public abstract fun getTooltipAlignment ()Landroidx/compose/ui/Alignment$Horizontal; - public abstract fun getTooltipOffset-RKDOV3M ()J +public final class org/jetbrains/jewel/styling/TooltipColors$Companion { +} + +public final class org/jetbrains/jewel/styling/TooltipMetrics { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/TooltipMetrics$Companion; + public synthetic fun (Landroidx/compose/foundation/layout/PaddingValues;JLandroidx/compose/foundation/shape/CornerSize;FFJLandroidx/compose/ui/Alignment$Horizontal;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getBorderWidth-D9Ej5fM ()F + public final fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; + public final fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; + public final fun getShadowSize-D9Ej5fM ()F + public final fun getShowDelay-UwyO8pc ()J + public final fun getTooltipAlignment ()Landroidx/compose/ui/Alignment$Horizontal; + public final fun getTooltipOffset-RKDOV3M ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/jetbrains/jewel/styling/TooltipMetrics$Companion { +} + +public final class org/jetbrains/jewel/styling/TooltipStyle { + public static final field $stable I + public static final field Companion Lorg/jetbrains/jewel/styling/TooltipStyle$Companion; + public fun (Lorg/jetbrains/jewel/styling/TooltipColors;Lorg/jetbrains/jewel/styling/TooltipMetrics;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getColors ()Lorg/jetbrains/jewel/styling/TooltipColors; + public final fun getMetrics ()Lorg/jetbrains/jewel/styling/TooltipMetrics; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; } -public abstract interface class org/jetbrains/jewel/styling/TooltipStyle { - public abstract fun getColors ()Lorg/jetbrains/jewel/styling/TooltipColors; - public abstract fun getMetrics ()Lorg/jetbrains/jewel/styling/TooltipMetrics; +public final class org/jetbrains/jewel/styling/TooltipStyle$Companion { } public final class org/jetbrains/jewel/styling/TooltipStylingKt { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/Chip.kt b/core/src/main/kotlin/org/jetbrains/jewel/Chip.kt index 6ebc64ba4..82871deef 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/Chip.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/Chip.kt @@ -148,10 +148,16 @@ private fun ChipImpl( val colors = style.colors val borderColor by colors.borderFor(chipState) + val borderWidth = if (chipState.isSelected) { + style.metrics.borderWidthSelected + } else { + style.metrics.borderWidth + } + Row( modifier = modifier .background(colors.backgroundFor(chipState).value, shape) - .border(Stroke.Alignment.Center, style.metrics.borderWidth, borderColor, shape) + .border(Stroke.Alignment.Center, borderWidth, borderColor, shape) .focusOutline(chipState, shape) .padding(style.metrics.padding), verticalAlignment = Alignment.CenterVertically, diff --git a/core/src/main/kotlin/org/jetbrains/jewel/IntelliJComponentStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/IntelliJComponentStyling.kt index c4b3f5048..ecd26e04f 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/IntelliJComponentStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/IntelliJComponentStyling.kt @@ -20,9 +20,9 @@ import org.jetbrains.jewel.styling.LocalCheckboxStyle import org.jetbrains.jewel.styling.LocalChipStyle import org.jetbrains.jewel.styling.LocalCircularProgressStyle import org.jetbrains.jewel.styling.LocalDefaultButtonStyle +import org.jetbrains.jewel.styling.LocalDefaultDropdownStyle import org.jetbrains.jewel.styling.LocalDefaultTabStyle import org.jetbrains.jewel.styling.LocalDividerStyle -import org.jetbrains.jewel.styling.LocalDropdownStyle import org.jetbrains.jewel.styling.LocalEditorTabStyle import org.jetbrains.jewel.styling.LocalGroupHeaderStyle import org.jetbrains.jewel.styling.LocalHorizontalProgressBarStyle @@ -37,6 +37,7 @@ import org.jetbrains.jewel.styling.LocalScrollbarStyle import org.jetbrains.jewel.styling.LocalTextAreaStyle import org.jetbrains.jewel.styling.LocalTextFieldStyle import org.jetbrains.jewel.styling.LocalTooltipStyle +import org.jetbrains.jewel.styling.LocalUndecoratedDropdownStyle import org.jetbrains.jewel.styling.MenuStyle import org.jetbrains.jewel.styling.RadioButtonStyle import org.jetbrains.jewel.styling.ScrollbarStyle @@ -46,16 +47,19 @@ import org.jetbrains.jewel.styling.TextFieldStyle import org.jetbrains.jewel.styling.TooltipStyle @Stable +@GenerateDataFunctions class IntelliJComponentStyling( val checkboxStyle: CheckboxStyle, val chipStyle: ChipStyle, + val circularProgressStyle: CircularProgressStyle, val defaultButtonStyle: ButtonStyle, + val defaultDropdownStyle: DropdownStyle, val defaultTabStyle: TabStyle, val dividerStyle: DividerStyle, - val dropdownStyle: DropdownStyle, val editorTabStyle: TabStyle, val groupHeaderStyle: GroupHeaderStyle, val horizontalProgressBarStyle: HorizontalProgressBarStyle, + val iconButtonStyle: IconButtonStyle, val labelledTextFieldStyle: LabelledTextFieldStyle, val lazyTreeStyle: LazyTreeStyle, val linkStyle: LinkStyle, @@ -65,21 +69,24 @@ class IntelliJComponentStyling( val scrollbarStyle: ScrollbarStyle, val textAreaStyle: TextAreaStyle, val textFieldStyle: TextFieldStyle, - val circularProgressStyle: CircularProgressStyle, val tooltipStyle: TooltipStyle, - val iconButtonStyle: IconButtonStyle, + val undecoratedDropdownStyle: DropdownStyle, ) { @Composable fun providedStyles(): Array> = arrayOf( LocalCheckboxStyle provides checkboxStyle, LocalChipStyle provides chipStyle, + LocalCircularProgressStyle provides circularProgressStyle, LocalContextMenuRepresentation provides IntelliJContextMenuRepresentation, LocalDefaultButtonStyle provides defaultButtonStyle, + LocalDefaultDropdownStyle provides defaultDropdownStyle, + LocalDefaultTabStyle provides defaultTabStyle, LocalDividerStyle provides dividerStyle, - LocalDropdownStyle provides dropdownStyle, + LocalEditorTabStyle provides editorTabStyle, LocalGroupHeaderStyle provides groupHeaderStyle, LocalHorizontalProgressBarStyle provides horizontalProgressBarStyle, + LocalIconButtonStyle provides iconButtonStyle, LocalLabelledTextFieldStyle provides labelledTextFieldStyle, LocalLazyTreeStyle provides lazyTreeStyle, LocalLinkStyle provides linkStyle, @@ -89,76 +96,7 @@ class IntelliJComponentStyling( LocalScrollbarStyle provides scrollbarStyle, LocalTextAreaStyle provides textAreaStyle, LocalTextFieldStyle provides textFieldStyle, - LocalDefaultTabStyle provides defaultTabStyle, - LocalEditorTabStyle provides editorTabStyle, - LocalCircularProgressStyle provides circularProgressStyle, LocalTooltipStyle provides tooltipStyle, - LocalIconButtonStyle provides iconButtonStyle, + LocalUndecoratedDropdownStyle provides undecoratedDropdownStyle, ) - - override fun equals(other: Any?): Boolean { - if (this === other) return true - if (javaClass != other?.javaClass) return false - - other as IntelliJComponentStyling - - if (checkboxStyle != other.checkboxStyle) return false - if (chipStyle != other.chipStyle) return false - if (defaultButtonStyle != other.defaultButtonStyle) return false - if (defaultTabStyle != other.defaultTabStyle) return false - if (dividerStyle != other.dividerStyle) return false - if (dropdownStyle != other.dropdownStyle) return false - if (editorTabStyle != other.editorTabStyle) return false - if (groupHeaderStyle != other.groupHeaderStyle) return false - if (horizontalProgressBarStyle != other.horizontalProgressBarStyle) return false - if (labelledTextFieldStyle != other.labelledTextFieldStyle) return false - if (lazyTreeStyle != other.lazyTreeStyle) return false - if (linkStyle != other.linkStyle) return false - if (menuStyle != other.menuStyle) return false - if (outlinedButtonStyle != other.outlinedButtonStyle) return false - if (radioButtonStyle != other.radioButtonStyle) return false - if (scrollbarStyle != other.scrollbarStyle) return false - if (textAreaStyle != other.textAreaStyle) return false - if (textFieldStyle != other.textFieldStyle) return false - if (circularProgressStyle != other.circularProgressStyle) return false - if (tooltipStyle != other.tooltipStyle) return false - if (iconButtonStyle != other.iconButtonStyle) return false - - return true - } - - override fun hashCode(): Int { - var result = checkboxStyle.hashCode() - result = 31 * result + chipStyle.hashCode() - result = 31 * result + defaultButtonStyle.hashCode() - result = 31 * result + defaultTabStyle.hashCode() - result = 31 * result + dividerStyle.hashCode() - result = 31 * result + dropdownStyle.hashCode() - result = 31 * result + editorTabStyle.hashCode() - result = 31 * result + groupHeaderStyle.hashCode() - result = 31 * result + horizontalProgressBarStyle.hashCode() - result = 31 * result + labelledTextFieldStyle.hashCode() - result = 31 * result + lazyTreeStyle.hashCode() - result = 31 * result + linkStyle.hashCode() - result = 31 * result + menuStyle.hashCode() - result = 31 * result + outlinedButtonStyle.hashCode() - result = 31 * result + radioButtonStyle.hashCode() - result = 31 * result + scrollbarStyle.hashCode() - result = 31 * result + textAreaStyle.hashCode() - result = 31 * result + textFieldStyle.hashCode() - result = 31 * result + circularProgressStyle.hashCode() - result = 31 * result + tooltipStyle.hashCode() - result = 31 * result + iconButtonStyle.hashCode() - return result - } - - override fun toString() = - "IntelliJComponentStyling(checkboxStyle=$checkboxStyle, chipStyle=$chipStyle, " + - "defaultButtonStyle=$defaultButtonStyle, defaultTabStyle=$defaultTabStyle, " + - "dividerStyle=$dividerStyle, dropdownStyle=$dropdownStyle, editorTabStyle=$editorTabStyle, " + - "groupHeaderStyle=$groupHeaderStyle, horizontalProgressBarStyle=$horizontalProgressBarStyle, " + - "labelledTextFieldStyle=$labelledTextFieldStyle, lazyTreeStyle=$lazyTreeStyle, linkStyle=$linkStyle, " + - "menuStyle=$menuStyle, outlinedButtonStyle=$outlinedButtonStyle, radioButtonStyle=$radioButtonStyle, " + - "scrollbarStyle=$scrollbarStyle, textAreaStyle=$textAreaStyle, textFieldStyle=$textFieldStyle, " + - "circularProgressStyle=$circularProgressStyle, tooltipStyle=$tooltipStyle, iconButtonStyle=$iconButtonStyle)" } diff --git a/core/src/main/kotlin/org/jetbrains/jewel/IntelliJTheme.kt b/core/src/main/kotlin/org/jetbrains/jewel/IntelliJTheme.kt index af206b823..0eb10a832 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/IntelliJTheme.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/IntelliJTheme.kt @@ -22,9 +22,9 @@ import org.jetbrains.jewel.styling.LocalCheckboxStyle import org.jetbrains.jewel.styling.LocalChipStyle import org.jetbrains.jewel.styling.LocalCircularProgressStyle import org.jetbrains.jewel.styling.LocalDefaultButtonStyle +import org.jetbrains.jewel.styling.LocalDefaultDropdownStyle import org.jetbrains.jewel.styling.LocalDefaultTabStyle import org.jetbrains.jewel.styling.LocalDividerStyle -import org.jetbrains.jewel.styling.LocalDropdownStyle import org.jetbrains.jewel.styling.LocalEditorTabStyle import org.jetbrains.jewel.styling.LocalGroupHeaderStyle import org.jetbrains.jewel.styling.LocalHorizontalProgressBarStyle @@ -127,7 +127,7 @@ interface IntelliJTheme { val dropdownStyle: DropdownStyle @Composable @ReadOnlyComposable - get() = LocalDropdownStyle.current + get() = LocalDefaultDropdownStyle.current val groupHeaderStyle: GroupHeaderStyle @Composable diff --git a/core/src/main/kotlin/org/jetbrains/jewel/LabelledTextField.kt b/core/src/main/kotlin/org/jetbrains/jewel/LabelledTextField.kt index af2f8fd17..db2f36d55 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/LabelledTextField.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/LabelledTextField.kt @@ -134,7 +134,7 @@ fun LabelledTextField( keyboardOptions = keyboardOptions, keyboardActions = keyboardActions, onTextLayout = onTextLayout, - style = style, + style = style.asTextFieldStyle(), textStyle = textStyle, interactionSource = interactionSource, ) diff --git a/core/src/main/kotlin/org/jetbrains/jewel/painter/PainterHintsProvider.kt b/core/src/main/kotlin/org/jetbrains/jewel/painter/PainterHintsProvider.kt index a97fff26c..fb6b363ee 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/painter/PainterHintsProvider.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/painter/PainterHintsProvider.kt @@ -18,6 +18,15 @@ import org.jetbrains.jewel.painter.hints.HiDpi @Immutable interface PainterHintsProvider { + /** + * These hints will be consumed before the hints which are passed as a parameter to [PainterProvider.getPainter]. + */ + @Composable + fun priorityHints(path: String): List = emptyList() + + /** + * These hints will be consumed after the hints which are passed as a parameter to [PainterProvider.getPainter]. + */ @Composable fun hints(path: String): List } diff --git a/core/src/main/kotlin/org/jetbrains/jewel/painter/ResourcePainterProvider.kt b/core/src/main/kotlin/org/jetbrains/jewel/painter/ResourcePainterProvider.kt index aeee86d2c..857ba34fb 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/painter/ResourcePainterProvider.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/painter/ResourcePainterProvider.kt @@ -60,8 +60,10 @@ class ResourcePainterProvider( @Composable override fun getPainter(vararg hints: PainterHint): State { - val resolvedHints = (hints.toList() + LocalPainterHintsProvider.current.hints(basePath)) - .filter { it.canApplyTo(basePath) } + val currentHintsProvider = LocalPainterHintsProvider.current + val providedHints = + currentHintsProvider.priorityHints(basePath) + hints.toList() + currentHintsProvider.hints(basePath) + val resolvedHints = providedHints.filter { it.canApplyTo(basePath) } val cacheKey = resolvedHints.hashCode() @@ -81,22 +83,22 @@ class ResourcePainterProvider( @Composable private fun loadPainter(hints: List): Painter { - val pathStack = buildSet { - var path = basePath - - add(path) - - for (hint in hints) { - path = when (hint) { - is PainterResourcePathHint -> hint.patch(path, contextClassLoaders) - is PainterPathHint -> hint.patch(path) - else -> continue + var paths = setOf(basePath) + + for (hint in hints) { + if (hint !is PainterResourcePathHint && hint !is PainterPathHint) continue + paths = paths.flatMap { + val patched = when (hint) { + is PainterResourcePathHint -> hint.patch(it, contextClassLoaders) + is PainterPathHint -> hint.patch(it) + else -> return@flatMap listOf(it) } - add(path) - } - }.reversed() - val url = pathStack.firstNotNullOfOrNull { resolveResource(it) } + setOf(patched, it) + }.toSet() + } + + val url = paths.firstNotNullOfOrNull { resolveResource(it) } @Suppress("UrlHashCode") // It's ok when comparing a URL to null if (url == null) { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/ButtonStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/ButtonStyling.kt index c1270ac3d..87453a896 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/ButtonStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/ButtonStyling.kt @@ -12,22 +12,37 @@ import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpSize import org.jetbrains.jewel.ButtonState +import org.jetbrains.jewel.GenerateDataFunctions @Stable -interface ButtonStyle { +@GenerateDataFunctions +class ButtonStyle( + val colors: ButtonColors, + val metrics: ButtonMetrics, +) { - val colors: ButtonColors - val metrics: ButtonMetrics + companion object } @Immutable -interface ButtonColors { - - val background: Brush - val backgroundDisabled: Brush - val backgroundFocused: Brush - val backgroundPressed: Brush - val backgroundHovered: Brush +@GenerateDataFunctions +class ButtonColors( + val background: Brush, + val backgroundDisabled: Brush, + val backgroundFocused: Brush, + val backgroundPressed: Brush, + val backgroundHovered: Brush, + val content: Color, + val contentDisabled: Color, + val contentFocused: Color, + val contentPressed: Color, + val contentHovered: Color, + val border: Brush, + val borderDisabled: Brush, + val borderFocused: Brush, + val borderPressed: Brush, + val borderHovered: Brush, +) { @Composable fun backgroundFor(state: ButtonState) = rememberUpdatedState( @@ -41,12 +56,6 @@ interface ButtonColors { ), ) - val content: Color - val contentDisabled: Color - val contentFocused: Color - val contentPressed: Color - val contentHovered: Color - @Composable fun contentFor(state: ButtonState) = rememberUpdatedState( state.chooseValue( @@ -59,12 +68,6 @@ interface ButtonColors { ), ) - val border: Brush - val borderDisabled: Brush - val borderFocused: Brush - val borderPressed: Brush - val borderHovered: Brush - @Composable fun borderFor(state: ButtonState) = rememberUpdatedState( state.chooseValue( @@ -76,15 +79,20 @@ interface ButtonColors { active = border, ), ) + + companion object } @Stable -interface ButtonMetrics { +@GenerateDataFunctions +class ButtonMetrics( + val cornerSize: CornerSize, + val padding: PaddingValues, + val minSize: DpSize, + val borderWidth: Dp, +) { - val cornerSize: CornerSize - val padding: PaddingValues - val minSize: DpSize - val borderWidth: Dp + companion object } val LocalDefaultButtonStyle = staticCompositionLocalOf { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/CheckboxStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/CheckboxStyling.kt index 744d82c9b..6323b2363 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/CheckboxStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/CheckboxStyling.kt @@ -11,36 +11,27 @@ import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpOffset import androidx.compose.ui.unit.DpSize import org.jetbrains.jewel.CheckboxState +import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.painter.PainterProvider @Immutable -interface CheckboxStyle { +@GenerateDataFunctions +class CheckboxStyle( + val colors: CheckboxColors, + val metrics: CheckboxMetrics, + val icons: CheckboxIcons, +) { - val colors: CheckboxColors - val metrics: CheckboxMetrics - val icons: CheckboxIcons + companion object } -// TODO these should be used to tint the SVGs @Immutable -interface CheckboxColors { - - val checkboxBackground: Color - val checkboxBackgroundDisabled: Color - val checkboxBackgroundSelected: Color - - @Composable - fun backgroundFor(state: CheckboxState) = rememberUpdatedState( - when { - !state.isEnabled -> checkboxBackgroundDisabled - state.toggleableState == ToggleableState.On -> checkboxBackgroundSelected - else -> checkboxBackground - }, - ) - - val content: Color - val contentDisabled: Color - val contentSelected: Color +@GenerateDataFunctions +class CheckboxColors( + val content: Color, + val contentDisabled: Color, + val contentSelected: Color, +) { @Composable fun contentFor(state: CheckboxState) = rememberUpdatedState( @@ -50,22 +41,28 @@ interface CheckboxColors { else -> content }, ) + + companion object } @Immutable -interface CheckboxMetrics { +@GenerateDataFunctions +class CheckboxMetrics( + val checkboxSize: DpSize, + val checkboxCornerSize: CornerSize, + val outlineSize: DpSize, + val outlineOffset: DpOffset, + val iconContentGap: Dp, +) { - val checkboxSize: DpSize - val checkboxCornerSize: CornerSize - val outlineSize: DpSize - val outlineOffset: DpOffset - val iconContentGap: Dp + companion object } @Immutable -interface CheckboxIcons { +@GenerateDataFunctions +class CheckboxIcons(val checkbox: PainterProvider) { - val checkbox: PainterProvider + companion object } val LocalCheckboxStyle = staticCompositionLocalOf { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/ChipStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/ChipStyling.kt index 7297998e2..5706cf8f1 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/ChipStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/ChipStyling.kt @@ -11,28 +11,53 @@ import androidx.compose.ui.graphics.Brush import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import org.jetbrains.jewel.ChipState +import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.IntelliJTheme @Stable -interface ChipStyle { +@GenerateDataFunctions +class ChipStyle( + val colors: ChipColors, + val metrics: ChipMetrics, +) { - val colors: ChipColors - val metrics: ChipMetrics + companion object } @Immutable -interface ChipColors { - - val background: Brush - val backgroundDisabled: Brush - val backgroundFocused: Brush - val backgroundPressed: Brush - val backgroundHovered: Brush - val backgroundSelected: Brush - val backgroundSelectedDisabled: Brush - val backgroundSelectedPressed: Brush - val backgroundSelectedFocused: Brush - val backgroundSelectedHovered: Brush +@GenerateDataFunctions +class ChipColors( + val background: Brush, + val backgroundDisabled: Brush, + val backgroundFocused: Brush, + val backgroundPressed: Brush, + val backgroundHovered: Brush, + val backgroundSelected: Brush, + val backgroundSelectedDisabled: Brush, + val backgroundSelectedPressed: Brush, + val backgroundSelectedFocused: Brush, + val backgroundSelectedHovered: Brush, + val content: Color, + val contentDisabled: Color, + val contentFocused: Color, + val contentPressed: Color, + val contentHovered: Color, + val contentSelected: Color, + val contentSelectedDisabled: Color, + val contentSelectedPressed: Color, + val contentSelectedFocused: Color, + val contentSelectedHovered: Color, + val border: Color, + val borderDisabled: Color, + val borderFocused: Color, + val borderPressed: Color, + val borderHovered: Color, + val borderSelected: Color, + val borderSelectedDisabled: Color, + val borderSelectedPressed: Color, + val borderSelectedFocused: Color, + val borderSelectedHovered: Color, +) { @Composable fun backgroundFor(state: ChipState) = rememberUpdatedState( @@ -55,17 +80,6 @@ interface ChipColors { }, ) - val content: Color - val contentDisabled: Color - val contentFocused: Color - val contentPressed: Color - val contentHovered: Color - val contentSelected: Color - val contentSelectedDisabled: Color - val contentSelectedPressed: Color - val contentSelectedFocused: Color - val contentSelectedHovered: Color - @Composable fun contentFor(state: ChipState) = rememberUpdatedState( if (state.isSelected) { @@ -87,17 +101,6 @@ interface ChipColors { }, ) - val border: Color - val borderDisabled: Color - val borderFocused: Color - val borderPressed: Color - val borderHovered: Color - val borderSelected: Color - val borderSelectedDisabled: Color - val borderSelectedPressed: Color - val borderSelectedFocused: Color - val borderSelectedHovered: Color - @Composable fun borderFor(state: ChipState) = rememberUpdatedState( if (state.isSelected) { @@ -118,15 +121,20 @@ interface ChipColors { } }, ) + + companion object } @Stable -interface ChipMetrics { +@GenerateDataFunctions +class ChipMetrics( + val cornerSize: CornerSize, + val padding: PaddingValues, + val borderWidth: Dp, + val borderWidthSelected: Dp, +) { - val cornerSize: CornerSize - val padding: PaddingValues - val borderWidth: Dp - val borderWidthSelected: Dp + companion object } val LocalChipStyle = staticCompositionLocalOf { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/CircularProgressStyle.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/CircularProgressStyle.kt index ae3d34d42..90d574c84 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/CircularProgressStyle.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/CircularProgressStyle.kt @@ -1,15 +1,19 @@ package org.jetbrains.jewel.styling +import androidx.compose.runtime.Immutable import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.ui.graphics.Color import kotlin.time.Duration -interface CircularProgressStyle { +@Immutable +class CircularProgressStyle( + val frameTime: Duration, + val color: Color, +) { - val frameTime: Duration - val color: Color + companion object } val LocalCircularProgressStyle = staticCompositionLocalOf { - error("No CircularProgressIndicatorStyle provided") + error("No CircularProgressStyle provided") } diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/DividerStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/DividerStyling.kt index 67fcda051..a56455f21 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/DividerStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/DividerStyling.kt @@ -4,19 +4,26 @@ import androidx.compose.runtime.Immutable import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp +import org.jetbrains.jewel.GenerateDataFunctions @Immutable -interface DividerStyle { +@GenerateDataFunctions +class DividerStyle( + val color: Color, + val metrics: DividerMetrics, +) { - val color: Color - val metrics: DividerMetrics + companion object } @Immutable -interface DividerMetrics { +@GenerateDataFunctions +class DividerMetrics( + val thickness: Dp, + val startIndent: Dp, +) { - val thickness: Dp - val startIndent: Dp + companion object } val LocalDividerStyle = staticCompositionLocalOf { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/DropdownStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/DropdownStyling.kt index 04a548866..50156c003 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/DropdownStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/DropdownStyling.kt @@ -12,26 +12,46 @@ import androidx.compose.ui.text.TextStyle import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpSize import org.jetbrains.jewel.DropdownState +import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.painter.PainterProvider @Stable -interface DropdownStyle { - - val colors: DropdownColors - val metrics: DropdownMetrics - val icons: DropdownIcons - val textStyle: TextStyle - val menuStyle: MenuStyle +@GenerateDataFunctions +class DropdownStyle( + val colors: DropdownColors, + val metrics: DropdownMetrics, + val icons: DropdownIcons, + val textStyle: TextStyle, + val menuStyle: MenuStyle, +) { + + companion object } @Immutable -interface DropdownColors { - - val background: Color - val backgroundDisabled: Color - val backgroundFocused: Color - val backgroundPressed: Color - val backgroundHovered: Color +@GenerateDataFunctions +class DropdownColors( + val background: Color, + val backgroundDisabled: Color, + val backgroundFocused: Color, + val backgroundPressed: Color, + val backgroundHovered: Color, + val content: Color, + val contentDisabled: Color, + val contentFocused: Color, + val contentPressed: Color, + val contentHovered: Color, + val border: Color, + val borderDisabled: Color, + val borderFocused: Color, + val borderPressed: Color, + val borderHovered: Color, + val iconTint: Color, + val iconTintDisabled: Color, + val iconTintFocused: Color, + val iconTintPressed: Color, + val iconTintHovered: Color, +) { @Composable fun backgroundFor(state: DropdownState) = rememberUpdatedState( @@ -45,12 +65,6 @@ interface DropdownColors { }, ) - val content: Color - val contentDisabled: Color - val contentFocused: Color - val contentPressed: Color - val contentHovered: Color - @Composable fun contentFor(state: DropdownState) = rememberUpdatedState( state.chooseValue( @@ -63,12 +77,6 @@ interface DropdownColors { ), ) - val border: Color - val borderDisabled: Color - val borderFocused: Color - val borderPressed: Color - val borderHovered: Color - @Composable fun borderFor(state: DropdownState) = rememberUpdatedState( state.chooseValue( @@ -81,12 +89,6 @@ interface DropdownColors { ), ) - val iconTint: Color - val iconTintDisabled: Color - val iconTintFocused: Color - val iconTintPressed: Color - val iconTintHovered: Color - @Composable fun iconTintFor(state: DropdownState) = rememberUpdatedState( state.chooseValue( @@ -98,24 +100,34 @@ interface DropdownColors { active = iconTint, ), ) + + companion object } @Stable -interface DropdownMetrics { - - val arrowMinSize: DpSize - val minSize: DpSize - val cornerSize: CornerSize - val contentPadding: PaddingValues - val borderWidth: Dp +@GenerateDataFunctions +class DropdownMetrics( + val arrowMinSize: DpSize, + val minSize: DpSize, + val cornerSize: CornerSize, + val contentPadding: PaddingValues, + val borderWidth: Dp, +) { + + companion object } @Immutable -interface DropdownIcons { +@GenerateDataFunctions +class DropdownIcons(val chevronDown: PainterProvider) { + + companion object +} - val chevronDown: PainterProvider +val LocalDefaultDropdownStyle = staticCompositionLocalOf { + error("No DefaultDropdownStyle provided") } -val LocalDropdownStyle = staticCompositionLocalOf { - error("No DropdownStyle provided") +val LocalUndecoratedDropdownStyle = staticCompositionLocalOf { + error("No UndecoratedDropdownStyle provided") } diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/GroupHeaderStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/GroupHeaderStyling.kt index 849327367..f8cd5183d 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/GroupHeaderStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/GroupHeaderStyling.kt @@ -4,25 +4,33 @@ import androidx.compose.runtime.Immutable import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp +import org.jetbrains.jewel.GenerateDataFunctions @Immutable -interface GroupHeaderStyle { +@GenerateDataFunctions +class GroupHeaderStyle( + val colors: GroupHeaderColors, + val metrics: GroupHeaderMetrics, +) { - val colors: GroupHeaderColors - val metrics: GroupHeaderMetrics + companion object } @Immutable -interface GroupHeaderColors { +@GenerateDataFunctions +class GroupHeaderColors(val divider: Color) { - val divider: Color + companion object } @Immutable -interface GroupHeaderMetrics { +@GenerateDataFunctions +class GroupHeaderMetrics( + val dividerThickness: Dp, + val indent: Dp, +) { - val dividerThickness: Dp - val indent: Dp + companion object } val LocalGroupHeaderStyle = staticCompositionLocalOf { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/HorizontalProgressBarStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/HorizontalProgressBarStyling.kt index 0d210f234..1338a1c3f 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/HorizontalProgressBarStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/HorizontalProgressBarStyling.kt @@ -5,31 +5,41 @@ import androidx.compose.runtime.Immutable import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp +import org.jetbrains.jewel.GenerateDataFunctions import kotlin.time.Duration @Immutable -interface HorizontalProgressBarStyle { - - val colors: HorizontalProgressBarColors - val metrics: HorizontalProgressBarMetrics - val indeterminateCycleDuration: Duration +@GenerateDataFunctions +class HorizontalProgressBarStyle( + val colors: HorizontalProgressBarColors, + val metrics: HorizontalProgressBarMetrics, + val indeterminateCycleDuration: Duration, +) { + + companion object } @Immutable -interface HorizontalProgressBarColors { - - val track: Color - val progress: Color - val indeterminateBase: Color - val indeterminateHighlight: Color +@GenerateDataFunctions +class HorizontalProgressBarColors( + val track: Color, + val progress: Color, + val indeterminateBase: Color, + val indeterminateHighlight: Color, +) { + + companion object } @Immutable -interface HorizontalProgressBarMetrics { - - val cornerSize: CornerSize - val minHeight: Dp - val indeterminateHighlightWidth: Dp +@GenerateDataFunctions +class HorizontalProgressBarMetrics( + val cornerSize: CornerSize, + val minHeight: Dp, + val indeterminateHighlightWidth: Dp, +) { + + companion object } val LocalHorizontalProgressBarStyle = staticCompositionLocalOf { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/IconButtonMetrics.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/IconButtonMetrics.kt index c34923395..c4c5b2371 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/IconButtonMetrics.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/IconButtonMetrics.kt @@ -11,28 +11,32 @@ import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpSize import org.jetbrains.jewel.ButtonState +import org.jetbrains.jewel.GenerateDataFunctions @Stable -interface IconButtonStyle { +@GenerateDataFunctions +class IconButtonStyle( + val colors: IconButtonColors, + val metrics: IconButtonMetrics, +) { - val colors: IconButtonColors - val metrics: IconButtonMetrics + companion object } @Immutable -interface IconButtonColors { - - val background: Color - val backgroundDisabled: Color - val backgroundFocused: Color - val backgroundPressed: Color - val backgroundHovered: Color - - val border: Color - val borderDisabled: Color - val borderFocused: Color - val borderPressed: Color - val borderHovered: Color +@GenerateDataFunctions +class IconButtonColors( + val background: Color, + val backgroundDisabled: Color, + val backgroundFocused: Color, + val backgroundPressed: Color, + val backgroundHovered: Color, + val border: Color, + val borderDisabled: Color, + val borderFocused: Color, + val borderPressed: Color, + val borderHovered: Color, +) { @Composable fun backgroundFor(state: ButtonState) = rememberUpdatedState( @@ -55,15 +59,20 @@ interface IconButtonColors { else -> border }, ) + + companion object } @Stable -interface IconButtonMetrics { +@GenerateDataFunctions +class IconButtonMetrics( + val cornerSize: CornerSize, + val borderWidth: Dp, + val padding: PaddingValues, + val minSize: DpSize, +) { - val cornerSize: CornerSize - val borderWidth: Dp - val padding: PaddingValues - val minSize: DpSize + companion object } val LocalIconButtonStyle = staticCompositionLocalOf { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/LabelledTextFieldStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/LabelledTextFieldStyling.kt new file mode 100644 index 000000000..9d714440b --- /dev/null +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/LabelledTextFieldStyling.kt @@ -0,0 +1,118 @@ +package org.jetbrains.jewel.styling + +import androidx.compose.foundation.layout.PaddingValues +import androidx.compose.foundation.shape.CornerSize +import androidx.compose.runtime.Immutable +import androidx.compose.runtime.Stable +import androidx.compose.runtime.staticCompositionLocalOf +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.text.TextStyle +import androidx.compose.ui.unit.Dp +import androidx.compose.ui.unit.DpSize +import org.jetbrains.jewel.GenerateDataFunctions + +@Stable +@GenerateDataFunctions +class LabelledTextFieldStyle( + override val colors: LabelledTextFieldColors, + override val metrics: LabelledTextFieldMetrics, + override val textStyle: TextStyle, + val textStyles: LabelledTextFieldTextStyles, +) : InputFieldStyle { + + fun asTextFieldStyle(): TextFieldStyle = + TextFieldStyle( + colors = colors.asTextFieldColors(), + metrics = metrics.asTextFieldMetrics(), + textStyle = textStyle, + ) + + companion object +} + +@Immutable +@GenerateDataFunctions +class LabelledTextFieldColors( + override val background: Color, + override val backgroundDisabled: Color, + override val backgroundFocused: Color, + override val backgroundPressed: Color, + override val backgroundHovered: Color, + override val content: Color, + override val contentDisabled: Color, + override val contentFocused: Color, + override val contentPressed: Color, + override val contentHovered: Color, + override val border: Color, + override val borderDisabled: Color, + override val borderFocused: Color, + override val borderPressed: Color, + override val borderHovered: Color, + override val caret: Color, + override val caretDisabled: Color, + override val caretFocused: Color, + override val caretPressed: Color, + override val caretHovered: Color, + val placeholder: Color, + val label: Color, + val hint: Color, +) : InputFieldColors { + + fun asTextFieldColors() = + TextFieldColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + caret, + caretDisabled, + caretFocused, + caretPressed, + caretHovered, + placeholder, + ) + + companion object +} + +@Stable +@GenerateDataFunctions +class LabelledTextFieldMetrics( + override val borderWidth: Dp, + override val contentPadding: PaddingValues, + override val cornerSize: CornerSize, + override val minSize: DpSize, + val labelSpacing: Dp, + val hintSpacing: Dp, +) : InputFieldMetrics { + + fun asTextFieldMetrics() = + TextFieldMetrics(borderWidth, contentPadding, cornerSize, minSize) + + companion object +} + +@Immutable +@GenerateDataFunctions +class LabelledTextFieldTextStyles( + val label: TextStyle, + val hint: TextStyle, +) { + + companion object +} + +val LocalLabelledTextFieldStyle = staticCompositionLocalOf { + error("No LabelledTextFieldStyle provided") +} diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/LazyTreeStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/LazyTreeStyling.kt index 334bc2950..76b56b119 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/LazyTreeStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/LazyTreeStyling.kt @@ -9,28 +9,32 @@ import androidx.compose.runtime.rememberUpdatedState import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp +import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.foundation.tree.TreeElementState import org.jetbrains.jewel.painter.PainterProvider @Stable -interface LazyTreeStyle { +@GenerateDataFunctions +class LazyTreeStyle( + val colors: LazyTreeColors, + val metrics: LazyTreeMetrics, + val icons: LazyTreeIcons, +) { - val colors: LazyTreeColors - val metrics: LazyTreeMetrics - val icons: LazyTreeIcons + companion object } @Immutable -interface LazyTreeColors { - - val elementBackgroundFocused: Color - val elementBackgroundSelected: Color - val elementBackgroundSelectedFocused: Color - - val content: Color - val contentFocused: Color - val contentSelected: Color - val contentSelectedFocused: Color +@GenerateDataFunctions +class LazyTreeColors( + val elementBackgroundFocused: Color, + val elementBackgroundSelected: Color, + val elementBackgroundSelectedFocused: Color, + val content: Color, + val contentFocused: Color, + val contentSelected: Color, + val contentSelectedFocused: Color, +) { @Composable fun contentFor(state: TreeElementState) = rememberUpdatedState( @@ -41,26 +45,32 @@ interface LazyTreeColors { else -> content }, ) + + companion object } @Stable -interface LazyTreeMetrics { +@GenerateDataFunctions +class LazyTreeMetrics( + val indentSize: Dp, + val elementBackgroundCornerSize: CornerSize, + val elementPadding: PaddingValues, + val elementContentPadding: PaddingValues, + val elementMinHeight: Dp, + val chevronContentGap: Dp, +) { - val indentSize: Dp - val elementBackgroundCornerSize: CornerSize - val elementPadding: PaddingValues - val elementContentPadding: PaddingValues - val elementMinHeight: Dp - val chevronContentGap: Dp + companion object } @Immutable -interface LazyTreeIcons { - - val chevronCollapsed: PainterProvider - val chevronExpanded: PainterProvider - val chevronSelectedCollapsed: PainterProvider - val chevronSelectedExpanded: PainterProvider +@GenerateDataFunctions +class LazyTreeIcons( + val chevronCollapsed: PainterProvider, + val chevronExpanded: PainterProvider, + val chevronSelectedCollapsed: PainterProvider, + val chevronSelectedExpanded: PainterProvider, +) { @Composable fun chevron(isExpanded: Boolean, isSelected: Boolean) = @@ -70,6 +80,8 @@ interface LazyTreeIcons { !isSelected && isExpanded -> chevronExpanded else -> chevronCollapsed } + + companion object } val LocalLazyTreeStyle = staticCompositionLocalOf { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/LinkStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/LinkStyling.kt index 88916c96c..1fe2e8120 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/LinkStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/LinkStyling.kt @@ -9,27 +9,32 @@ import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.TextStyle import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpSize +import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.LinkState import org.jetbrains.jewel.painter.PainterProvider @Immutable -interface LinkStyle { +@GenerateDataFunctions +class LinkStyle( + val colors: LinkColors, + val metrics: LinkMetrics, + val icons: LinkIcons, + val textStyles: LinkTextStyles, +) { - val colors: LinkColors - val metrics: LinkMetrics - val icons: LinkIcons - val textStyles: LinkTextStyles + companion object } @Immutable -interface LinkColors { - - val content: Color - val contentDisabled: Color - val contentFocused: Color - val contentPressed: Color - val contentHovered: Color - val contentVisited: Color +@GenerateDataFunctions +class LinkColors( + val content: Color, + val contentDisabled: Color, + val contentFocused: Color, + val contentPressed: Color, + val contentHovered: Color, + val contentVisited: Color, +) { @Composable fun contentFor(state: LinkState) = rememberUpdatedState( @@ -43,32 +48,41 @@ interface LinkColors { active = content, ), ) + + companion object } @Immutable -interface LinkMetrics { +@GenerateDataFunctions +class LinkMetrics( + val focusHaloCornerSize: CornerSize, + val textIconGap: Dp, + val iconSize: DpSize, +) { - val focusHaloCornerSize: CornerSize - val textIconGap: Dp - val iconSize: DpSize + companion object } @Immutable -interface LinkIcons { +@GenerateDataFunctions +class LinkIcons( + val dropdownChevron: PainterProvider, + val externalLink: PainterProvider, +) { - val dropdownChevron: PainterProvider - val externalLink: PainterProvider + companion object } @Immutable -interface LinkTextStyles { - - val normal: TextStyle - val disabled: TextStyle - val focused: TextStyle - val pressed: TextStyle - val hovered: TextStyle - val visited: TextStyle +@GenerateDataFunctions +class LinkTextStyles( + val normal: TextStyle, + val disabled: TextStyle, + val focused: TextStyle, + val pressed: TextStyle, + val hovered: TextStyle, + val visited: TextStyle, +) { @Composable fun styleFor(state: LinkState) = rememberUpdatedState( @@ -82,6 +96,8 @@ interface LinkTextStyles { active = normal, ), ) + + companion object } val LocalLinkStyle = staticCompositionLocalOf { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/MenuStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/MenuStyling.kt index 88637ea43..16d8fe5c1 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/MenuStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/MenuStyling.kt @@ -10,63 +10,53 @@ import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpOffset +import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.MenuItemState import org.jetbrains.jewel.painter.PainterProvider @Stable -interface MenuStyle { - - val colors: MenuColors - val metrics: MenuMetrics - val icons: MenuIcons +@GenerateDataFunctions +class MenuStyle( + val colors: MenuColors, + val metrics: MenuMetrics, + val icons: MenuIcons, +) { + + companion object } @Immutable -interface MenuColors { - - val background: Color - val border: Color - val shadow: Color - val itemColors: MenuItemColors -} - -@Stable -interface MenuMetrics { - - val cornerSize: CornerSize - val menuMargin: PaddingValues - val contentPadding: PaddingValues - val offset: DpOffset - val shadowSize: Dp - val borderWidth: Dp - val itemMetrics: MenuItemMetrics - val submenuMetrics: SubmenuMetrics -} - -@Stable -interface MenuItemMetrics { - - val selectionCornerSize: CornerSize - val outerPadding: PaddingValues - val contentPadding: PaddingValues - val separatorPadding: PaddingValues - val separatorThickness: Dp -} - -@Stable -interface SubmenuMetrics { - - val offset: DpOffset +@GenerateDataFunctions +class MenuColors( + val background: Color, + val border: Color, + val shadow: Color, + val itemColors: MenuItemColors, +) { + + companion object } @Immutable -interface MenuItemColors { - - val background: Color - val backgroundDisabled: Color - val backgroundFocused: Color - val backgroundPressed: Color - val backgroundHovered: Color +@GenerateDataFunctions +class MenuItemColors( + val background: Color, + val backgroundDisabled: Color, + val backgroundFocused: Color, + val backgroundPressed: Color, + val backgroundHovered: Color, + val content: Color, + val contentDisabled: Color, + val contentFocused: Color, + val contentPressed: Color, + val contentHovered: Color, + val iconTint: Color, + val iconTintDisabled: Color, + val iconTintFocused: Color, + val iconTintPressed: Color, + val iconTintHovered: Color, + val separator: Color, +) { @Composable fun backgroundFor(state: MenuItemState) = rememberUpdatedState( @@ -80,12 +70,6 @@ interface MenuItemColors { ), ) - val content: Color - val contentDisabled: Color - val contentFocused: Color - val contentPressed: Color - val contentHovered: Color - @Composable fun contentFor(state: MenuItemState) = rememberUpdatedState( state.chooseValue( @@ -98,12 +82,6 @@ interface MenuItemColors { ), ) - val iconTint: Color - val iconTintDisabled: Color - val iconTintFocused: Color - val iconTintPressed: Color - val iconTintHovered: Color - @Composable fun iconTintFor(state: MenuItemState) = rememberUpdatedState( state.chooseValue( @@ -116,13 +94,50 @@ interface MenuItemColors { ), ) - val separator: Color + companion object +} + +@Stable +@GenerateDataFunctions +class MenuMetrics( + val cornerSize: CornerSize, + val menuMargin: PaddingValues, + val contentPadding: PaddingValues, + val offset: DpOffset, + val shadowSize: Dp, + val borderWidth: Dp, + val itemMetrics: MenuItemMetrics, + val submenuMetrics: SubmenuMetrics, +) { + + companion object +} + +@Stable +@GenerateDataFunctions +class MenuItemMetrics( + val selectionCornerSize: CornerSize, + val outerPadding: PaddingValues, + val contentPadding: PaddingValues, + val separatorPadding: PaddingValues, + val separatorThickness: Dp, +) { + + companion object +} + +@Stable +@GenerateDataFunctions +class SubmenuMetrics(val offset: DpOffset) { + + companion object } @Immutable -interface MenuIcons { +@GenerateDataFunctions +class MenuIcons(val submenuChevron: PainterProvider) { - val submenuChevron: PainterProvider + companion object } val LocalMenuStyle = staticCompositionLocalOf { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/RadioButtonStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/RadioButtonStyling.kt index 03012a417..feb5d6c5d 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/RadioButtonStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/RadioButtonStyling.kt @@ -7,26 +7,31 @@ import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpSize +import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.RadioButtonState import org.jetbrains.jewel.painter.PainterProvider @Immutable -interface RadioButtonStyle { +@GenerateDataFunctions +class RadioButtonStyle( + val colors: RadioButtonColors, + val metrics: RadioButtonMetrics, + val icons: RadioButtonIcons, +) { - val colors: RadioButtonColors - val metrics: RadioButtonMetrics - val icons: RadioButtonIcons + companion object } @Immutable -interface RadioButtonColors { - - val content: Color - val contentHovered: Color - val contentDisabled: Color - val contentSelected: Color - val contentSelectedHovered: Color - val contentSelectedDisabled: Color +@GenerateDataFunctions +class RadioButtonColors( + val content: Color, + val contentHovered: Color, + val contentDisabled: Color, + val contentSelected: Color, + val contentSelectedHovered: Color, + val contentSelectedDisabled: Color, +) { @Composable fun contentFor(state: RadioButtonState) = rememberUpdatedState( @@ -39,19 +44,25 @@ interface RadioButtonColors { else -> content }, ) + + companion object } @Immutable -interface RadioButtonMetrics { +@GenerateDataFunctions +class RadioButtonMetrics( + val radioButtonSize: DpSize, + val iconContentGap: Dp, +) { - val radioButtonSize: DpSize - val iconContentGap: Dp + companion object } @Immutable -interface RadioButtonIcons { +@GenerateDataFunctions +class RadioButtonIcons(val radioButton: PainterProvider) { - val radioButton: PainterProvider + companion object } val LocalRadioButtonStyle = staticCompositionLocalOf { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/ScrollbarStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/ScrollbarStyling.kt index 7911e6a6e..a8d9a9b93 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/ScrollbarStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/ScrollbarStyling.kt @@ -7,30 +7,40 @@ import androidx.compose.runtime.Stable import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp +import org.jetbrains.jewel.GenerateDataFunctions import kotlin.time.Duration @Stable -interface ScrollbarStyle { - - val colors: ScrollbarColors - val metrics: ScrollbarMetrics - val hoverDuration: Duration +@GenerateDataFunctions +class ScrollbarStyle( + val colors: ScrollbarColors, + val metrics: ScrollbarMetrics, + val hoverDuration: Duration, +) { + + companion object } @Immutable -interface ScrollbarColors { +@GenerateDataFunctions +class ScrollbarColors( + val thumbBackground: Color, + val thumbBackgroundHovered: Color, +) { - val thumbBackground: Color - val thumbBackgroundHovered: Color + companion object } @Stable -interface ScrollbarMetrics { - - val thumbCornerSize: CornerSize - val thumbThickness: Dp - val minThumbLength: Dp - val trackPadding: PaddingValues +@GenerateDataFunctions +class ScrollbarMetrics( + val thumbCornerSize: CornerSize, + val thumbThickness: Dp, + val minThumbLength: Dp, + val trackPadding: PaddingValues, +) { + + companion object } val LocalScrollbarStyle = staticCompositionLocalOf { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/TabStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/TabStyling.kt index 142505fe7..af6082085 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/TabStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/TabStyling.kt @@ -8,56 +8,63 @@ import androidx.compose.runtime.rememberUpdatedState import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp +import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.TabState import org.jetbrains.jewel.painter.PainterProvider @Stable -interface TabStyle { - - val colors: TabColors - val metrics: TabMetrics - val icons: TabIcons - val contentAlpha: TabContentAlpha +@GenerateDataFunctions +class TabStyle( + val colors: TabColors, + val metrics: TabMetrics, + val icons: TabIcons, + val contentAlpha: TabContentAlpha, +) { + + companion object } -@Immutable -interface TabIcons { - - val close: PainterProvider +@Stable +@GenerateDataFunctions +class TabMetrics( + val underlineThickness: Dp, + val tabPadding: PaddingValues, + val tabHeight: Dp, + val closeContentGap: Dp, +) { + + companion object } -@Stable -interface TabMetrics { +@Immutable +@GenerateDataFunctions +class TabIcons(val close: PainterProvider) { - val underlineThickness: Dp - val tabPadding: PaddingValues - val tabHeight: Dp - val closeContentGap: Dp + companion object } @Immutable -interface TabColors { - - val background: Color - val backgroundDisabled: Color - val backgroundFocused: Color - val backgroundPressed: Color - val backgroundHovered: Color - val backgroundSelected: Color - - val content: Color - val contentDisabled: Color - val contentFocused: Color - val contentPressed: Color - val contentHovered: Color - val contentSelected: Color - - val underline: Color - val underlineDisabled: Color - val underlineFocused: Color - val underlinePressed: Color - val underlineHovered: Color - val underlineSelected: Color +@GenerateDataFunctions +class TabColors( + val background: Color, + val backgroundDisabled: Color, + val backgroundFocused: Color, + val backgroundPressed: Color, + val backgroundHovered: Color, + val backgroundSelected: Color, + val content: Color, + val contentDisabled: Color, + val contentFocused: Color, + val contentPressed: Color, + val contentHovered: Color, + val contentSelected: Color, + val underline: Color, + val underlineDisabled: Color, + val underlineFocused: Color, + val underlinePressed: Color, + val underlineHovered: Color, + val underlineSelected: Color, +) { @Composable fun contentFor(state: TabState) = rememberUpdatedState( @@ -101,17 +108,26 @@ interface TabColors { ) }, ) + + companion object } @Immutable -interface TabContentAlpha { - - val iconNormal: Float - val iconDisabled: Float - val iconFocused: Float - val iconPressed: Float - val iconHovered: Float - val iconSelected: Float +@GenerateDataFunctions +class TabContentAlpha( + val iconNormal: Float, + val iconDisabled: Float, + val iconFocused: Float, + val iconPressed: Float, + val iconHovered: Float, + val iconSelected: Float, + val labelNormal: Float, + val labelDisabled: Float, + val labelFocused: Float, + val labelPressed: Float, + val labelHovered: Float, + val labelSelected: Float, +) { @Composable fun iconFor(state: TabState) = rememberUpdatedState( @@ -128,13 +144,6 @@ interface TabContentAlpha { }, ) - val labelNormal: Float - val labelDisabled: Float - val labelFocused: Float - val labelPressed: Float - val labelHovered: Float - val labelSelected: Float - @Composable fun labelFor(state: TabState) = rememberUpdatedState( when { @@ -149,6 +158,8 @@ interface TabContentAlpha { ) }, ) + + companion object } // Tabs are the only components that handle hover states diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/TextAreaStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/TextAreaStyling.kt index e0287b0bc..f618ac65b 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/TextAreaStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/TextAreaStyling.kt @@ -1,21 +1,66 @@ package org.jetbrains.jewel.styling +import androidx.compose.foundation.layout.PaddingValues +import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Immutable import androidx.compose.runtime.Stable import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.ui.graphics.Color +import androidx.compose.ui.text.TextStyle +import androidx.compose.ui.unit.Dp +import androidx.compose.ui.unit.DpSize +import org.jetbrains.jewel.GenerateDataFunctions @Stable -interface TextAreaStyle : InputFieldStyle { +@GenerateDataFunctions +class TextAreaStyle( + override val colors: TextAreaColors, + override val metrics: TextAreaMetrics, + override val textStyle: TextStyle, +) : InputFieldStyle { - override val colors: TextAreaColors - override val metrics: InputFieldMetrics + companion object } @Immutable -interface TextAreaColors : InputFieldColors { +@GenerateDataFunctions +class TextAreaColors( + override val background: Color, + override val backgroundDisabled: Color, + override val backgroundFocused: Color, + override val backgroundPressed: Color, + override val backgroundHovered: Color, + override val content: Color, + override val contentDisabled: Color, + override val contentFocused: Color, + override val contentPressed: Color, + override val contentHovered: Color, + override val border: Color, + override val borderDisabled: Color, + override val borderFocused: Color, + override val borderPressed: Color, + override val borderHovered: Color, + override val caret: Color, + override val caretDisabled: Color, + override val caretFocused: Color, + override val caretPressed: Color, + override val caretHovered: Color, + val placeholder: Color, +) : InputFieldColors { - val placeholder: Color + companion object +} + +@Stable +@GenerateDataFunctions +class TextAreaMetrics( + override val borderWidth: Dp, + override val contentPadding: PaddingValues, + override val cornerSize: CornerSize, + override val minSize: DpSize, +) : InputFieldMetrics { + + companion object } val LocalTextAreaStyle = staticCompositionLocalOf { diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/TextFieldStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/TextFieldStyling.kt index 63f3f33aa..3758ed981 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/TextFieldStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/TextFieldStyling.kt @@ -1,57 +1,68 @@ package org.jetbrains.jewel.styling +import androidx.compose.foundation.layout.PaddingValues +import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Immutable import androidx.compose.runtime.Stable import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.TextStyle import androidx.compose.ui.unit.Dp +import androidx.compose.ui.unit.DpSize +import org.jetbrains.jewel.GenerateDataFunctions @Stable -interface TextFieldStyle : InputFieldStyle { +@GenerateDataFunctions +class TextFieldStyle( + override val colors: TextFieldColors, + override val metrics: TextFieldMetrics, + override val textStyle: TextStyle, +) : InputFieldStyle { - override val colors: TextFieldColors + companion object } @Immutable -interface TextFieldColors : InputFieldColors { +@GenerateDataFunctions +class TextFieldColors( + override val background: Color, + override val backgroundDisabled: Color, + override val backgroundFocused: Color, + override val backgroundPressed: Color, + override val backgroundHovered: Color, + override val content: Color, + override val contentDisabled: Color, + override val contentFocused: Color, + override val contentPressed: Color, + override val contentHovered: Color, + override val border: Color, + override val borderDisabled: Color, + override val borderFocused: Color, + override val borderPressed: Color, + override val borderHovered: Color, + override val caret: Color, + override val caretDisabled: Color, + override val caretFocused: Color, + override val caretPressed: Color, + override val caretHovered: Color, + val placeholder: Color, +) : InputFieldColors { - val placeholder: Color -} - -val LocalTextFieldStyle = staticCompositionLocalOf { - error("No TextFieldStyle provided") -} - -@Stable -interface LabelledTextFieldStyle : TextFieldStyle { - - override val colors: LabelledTextFieldColors - override val metrics: LabelledTextFieldMetrics - val textStyles: LabelledTextFieldTextStyles -} - -@Immutable -interface LabelledTextFieldColors : TextFieldColors { - - val label: Color - val hint: Color + companion object } @Stable -interface LabelledTextFieldMetrics : InputFieldMetrics { +@GenerateDataFunctions +class TextFieldMetrics( + override val borderWidth: Dp, + override val contentPadding: PaddingValues, + override val cornerSize: CornerSize, + override val minSize: DpSize, +) : InputFieldMetrics { - val labelSpacing: Dp - val hintSpacing: Dp + companion object } -@Immutable -interface LabelledTextFieldTextStyles { - - val label: TextStyle - val hint: TextStyle -} - -val LocalLabelledTextFieldStyle = staticCompositionLocalOf { - error("No LabelledTextFieldStyle provided") +val LocalTextFieldStyle = staticCompositionLocalOf { + error("No TextFieldStyle provided") } diff --git a/core/src/main/kotlin/org/jetbrains/jewel/styling/TooltipStyling.kt b/core/src/main/kotlin/org/jetbrains/jewel/styling/TooltipStyling.kt index e4c2efebe..3d3ed3c64 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/styling/TooltipStyling.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/styling/TooltipStyling.kt @@ -8,35 +8,44 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpOffset +import org.jetbrains.jewel.GenerateDataFunctions import kotlin.time.Duration @Stable -interface TooltipStyle { +@GenerateDataFunctions +class TooltipStyle( + val colors: TooltipColors, + val metrics: TooltipMetrics, +) { - val colors: TooltipColors - val metrics: TooltipMetrics + companion object } @Stable -interface TooltipColors { - - val background: Color - val content: Color - val border: Color - val shadow: Color +@GenerateDataFunctions +class TooltipColors( + val background: Color, + val content: Color, + val border: Color, + val shadow: Color, +) { + + companion object } @Stable -interface TooltipMetrics { - - val contentPadding: PaddingValues - val showDelay: Duration - val cornerSize: CornerSize - val borderWidth: Dp - val shadowSize: Dp - - val tooltipOffset: DpOffset - val tooltipAlignment: Alignment.Horizontal +@GenerateDataFunctions +class TooltipMetrics( + val contentPadding: PaddingValues, + val showDelay: Duration, + val cornerSize: CornerSize, + val borderWidth: Dp, + val shadowSize: Dp, + val tooltipOffset: DpOffset, + val tooltipAlignment: Alignment.Horizontal, +) { + + companion object } val LocalTooltipStyle = staticCompositionLocalOf { diff --git a/decorated-window/api/decorated-window.api b/decorated-window/api/decorated-window.api index 974a8d53f..5b77a7da3 100644 --- a/decorated-window/api/decorated-window.api +++ b/decorated-window/api/decorated-window.api @@ -137,16 +137,16 @@ public abstract interface class org/jetbrains/jewel/window/styling/TitleBarColor public abstract fun getBackground-0d7_KjU ()J public abstract fun getBorder-0d7_KjU ()J public abstract fun getContent-0d7_KjU ()J - public abstract fun getDropdownHoverBackground-0d7_KjU ()J - public abstract fun getDropdownPressBackground-0d7_KjU ()J + public abstract fun getDropdownHoveredBackground-0d7_KjU ()J + public abstract fun getDropdownPressedBackground-0d7_KjU ()J public abstract fun getFullscreenControlButtonsBackground-0d7_KjU ()J - public abstract fun getIconButtonHoverBackground-0d7_KjU ()J - public abstract fun getIconButtonPressBackground-0d7_KjU ()J + public abstract fun getIconButtonHoveredBackground-0d7_KjU ()J + public abstract fun getIconButtonPressedBackground-0d7_KjU ()J public abstract fun getInactiveBackground-0d7_KjU ()J - public abstract fun getTitlePaneButtonHoverBackground-0d7_KjU ()J - public abstract fun getTitlePaneButtonPressBackground-0d7_KjU ()J - public abstract fun getTitlePaneCloseButtonHoverBackground-0d7_KjU ()J - public abstract fun getTitlePaneCloseButtonPressBackground-0d7_KjU ()J + public abstract fun getTitlePaneButtonHoveredBackground-0d7_KjU ()J + public abstract fun getTitlePaneButtonPressedBackground-0d7_KjU ()J + public abstract fun getTitlePaneCloseButtonHoveredBackground-0d7_KjU ()J + public abstract fun getTitlePaneCloseButtonPressedBackground-0d7_KjU ()J } public final class org/jetbrains/jewel/window/styling/TitleBarColors$DefaultImpls { diff --git a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.kt b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.kt index a14960580..104ee03a7 100644 --- a/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.kt +++ b/decorated-window/src/main/kotlin/org/jetbrains/jewel/window/TitleBar.kt @@ -41,7 +41,7 @@ import androidx.compose.ui.unit.offset import org.jetbrains.jewel.IntelliJTheme import org.jetbrains.jewel.LocalContentColor import org.jetbrains.jewel.OverrideDarkMode -import org.jetbrains.jewel.styling.LocalDropdownStyle +import org.jetbrains.jewel.styling.LocalDefaultDropdownStyle import org.jetbrains.jewel.styling.LocalIconButtonStyle import org.jetbrains.jewel.util.isDark import org.jetbrains.jewel.window.styling.TitleBarStyle @@ -104,7 +104,7 @@ internal const val TITLE_BAR_BORDER_LAYOUT_ID = "__TITLE_BAR_BORDER__" CompositionLocalProvider( LocalContentColor provides style.colors.content, LocalIconButtonStyle provides style.iconButtonStyle, - LocalDropdownStyle provides style.dropdownStyle, + LocalDefaultDropdownStyle provides style.dropdownStyle, ) { OverrideDarkMode(background.isDark()) { val scope = TitleBarScopeImpl(titleBarInfo.title, titleBarInfo.icon) 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 ef2712480..3fd5550cf 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 @@ -38,20 +38,20 @@ interface TitleBarColors { val fullscreenControlButtonsBackground: Color // The hover and press background color for window control buttons(minimize, maximize) in Linux - val titlePaneButtonHoverBackground: Color - val titlePaneButtonPressBackground: Color + val titlePaneButtonHoveredBackground: Color + val titlePaneButtonPressedBackground: Color // The hover and press background color for window close button in Linux - val titlePaneCloseButtonHoverBackground: Color - val titlePaneCloseButtonPressBackground: Color + val titlePaneCloseButtonHoveredBackground: Color + val titlePaneCloseButtonPressedBackground: Color // The hover and press background color for IconButtons in title bar content - val iconButtonHoverBackground: Color - val iconButtonPressBackground: Color + val iconButtonHoveredBackground: Color + val iconButtonPressedBackground: Color // The hover and press background color for Dropdown in title bar content - val dropdownPressBackground: Color - val dropdownHoverBackground: Color + val dropdownPressedBackground: Color + val dropdownHoveredBackground: Color @Composable fun backgroundFor(state: DecoratedWindowState) = rememberUpdatedState( diff --git a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/IntUiBridge.kt b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/IntUiBridge.kt index e968ed35f..3c633bd66 100644 --- a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/IntUiBridge.kt +++ b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/IntUiBridge.kt @@ -23,74 +23,75 @@ import com.intellij.util.ui.NamedColorUtil import com.intellij.util.ui.StatusText import org.jetbrains.jewel.IntelliJComponentStyling import org.jetbrains.jewel.intui.core.IntUiThemeDefinition -import org.jetbrains.jewel.intui.standalone.styling.IntUiButtonColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiButtonMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiButtonStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiCheckboxColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiCheckboxIcons -import org.jetbrains.jewel.intui.standalone.styling.IntUiCheckboxMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiCheckboxStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiChipColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiChipMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiChipStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiCircularProgressStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiDividerMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiDividerStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiDropdownColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiDropdownIcons -import org.jetbrains.jewel.intui.standalone.styling.IntUiDropdownMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiDropdownStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiGroupHeaderColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiGroupHeaderMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiGroupHeaderStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiHorizontalProgressBarColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiHorizontalProgressBarMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiHorizontalProgressBarStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiIconButtonColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiIconButtonMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiIconButtonStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiLabelledTextFieldColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiLabelledTextFieldMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiLabelledTextFieldStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiLabelledTextFieldTextStyles -import org.jetbrains.jewel.intui.standalone.styling.IntUiLazyTreeColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiLazyTreeIcons -import org.jetbrains.jewel.intui.standalone.styling.IntUiLazyTreeMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiLazyTreeStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiLinkColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiLinkIcons -import org.jetbrains.jewel.intui.standalone.styling.IntUiLinkMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiLinkStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiLinkTextStyles -import org.jetbrains.jewel.intui.standalone.styling.IntUiMenuColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiMenuIcons -import org.jetbrains.jewel.intui.standalone.styling.IntUiMenuItemColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiMenuItemMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiMenuMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiMenuStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiRadioButtonColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiRadioButtonIcons -import org.jetbrains.jewel.intui.standalone.styling.IntUiRadioButtonMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiRadioButtonStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiScrollbarColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiScrollbarMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiScrollbarStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiSubmenuMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiTabColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiTabContentAlpha -import org.jetbrains.jewel.intui.standalone.styling.IntUiTabIcons -import org.jetbrains.jewel.intui.standalone.styling.IntUiTabMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiTabStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiTextAreaColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiTextAreaMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiTextAreaStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiTextFieldColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiTextFieldMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiTextFieldStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiTooltipColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiTooltipMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiTooltipStyle +import org.jetbrains.jewel.intui.core.styling.defaults +import org.jetbrains.jewel.styling.ButtonColors +import org.jetbrains.jewel.styling.ButtonMetrics +import org.jetbrains.jewel.styling.ButtonStyle +import org.jetbrains.jewel.styling.CheckboxColors +import org.jetbrains.jewel.styling.CheckboxIcons +import org.jetbrains.jewel.styling.CheckboxMetrics +import org.jetbrains.jewel.styling.CheckboxStyle +import org.jetbrains.jewel.styling.ChipColors +import org.jetbrains.jewel.styling.ChipMetrics +import org.jetbrains.jewel.styling.ChipStyle +import org.jetbrains.jewel.styling.CircularProgressStyle +import org.jetbrains.jewel.styling.DividerMetrics +import org.jetbrains.jewel.styling.DividerStyle +import org.jetbrains.jewel.styling.DropdownColors +import org.jetbrains.jewel.styling.DropdownIcons +import org.jetbrains.jewel.styling.DropdownMetrics +import org.jetbrains.jewel.styling.DropdownStyle +import org.jetbrains.jewel.styling.GroupHeaderColors +import org.jetbrains.jewel.styling.GroupHeaderMetrics +import org.jetbrains.jewel.styling.GroupHeaderStyle +import org.jetbrains.jewel.styling.HorizontalProgressBarColors +import org.jetbrains.jewel.styling.HorizontalProgressBarMetrics +import org.jetbrains.jewel.styling.HorizontalProgressBarStyle +import org.jetbrains.jewel.styling.IconButtonColors +import org.jetbrains.jewel.styling.IconButtonMetrics +import org.jetbrains.jewel.styling.IconButtonStyle import org.jetbrains.jewel.styling.InputFieldStyle +import org.jetbrains.jewel.styling.LabelledTextFieldColors +import org.jetbrains.jewel.styling.LabelledTextFieldMetrics +import org.jetbrains.jewel.styling.LabelledTextFieldStyle +import org.jetbrains.jewel.styling.LabelledTextFieldTextStyles +import org.jetbrains.jewel.styling.LazyTreeColors +import org.jetbrains.jewel.styling.LazyTreeIcons +import org.jetbrains.jewel.styling.LazyTreeMetrics +import org.jetbrains.jewel.styling.LazyTreeStyle +import org.jetbrains.jewel.styling.LinkColors +import org.jetbrains.jewel.styling.LinkIcons +import org.jetbrains.jewel.styling.LinkMetrics +import org.jetbrains.jewel.styling.LinkStyle +import org.jetbrains.jewel.styling.LinkTextStyles +import org.jetbrains.jewel.styling.MenuColors +import org.jetbrains.jewel.styling.MenuIcons +import org.jetbrains.jewel.styling.MenuItemColors +import org.jetbrains.jewel.styling.MenuItemMetrics +import org.jetbrains.jewel.styling.MenuMetrics +import org.jetbrains.jewel.styling.MenuStyle +import org.jetbrains.jewel.styling.RadioButtonColors +import org.jetbrains.jewel.styling.RadioButtonIcons +import org.jetbrains.jewel.styling.RadioButtonMetrics +import org.jetbrains.jewel.styling.RadioButtonStyle +import org.jetbrains.jewel.styling.ScrollbarColors +import org.jetbrains.jewel.styling.ScrollbarMetrics +import org.jetbrains.jewel.styling.ScrollbarStyle +import org.jetbrains.jewel.styling.SubmenuMetrics +import org.jetbrains.jewel.styling.TabColors +import org.jetbrains.jewel.styling.TabContentAlpha +import org.jetbrains.jewel.styling.TabIcons +import org.jetbrains.jewel.styling.TabMetrics +import org.jetbrains.jewel.styling.TabStyle +import org.jetbrains.jewel.styling.TextAreaColors +import org.jetbrains.jewel.styling.TextAreaMetrics +import org.jetbrains.jewel.styling.TextAreaStyle +import org.jetbrains.jewel.styling.TextFieldColors +import org.jetbrains.jewel.styling.TextFieldMetrics +import org.jetbrains.jewel.styling.TextFieldStyle +import org.jetbrains.jewel.styling.TooltipColors +import org.jetbrains.jewel.styling.TooltipMetrics +import org.jetbrains.jewel.styling.TooltipStyle import org.jetbrains.skiko.DependsOnJBR import javax.swing.UIManager import kotlin.time.Duration.Companion.milliseconds @@ -100,6 +101,9 @@ private val logger = Logger.getInstance("JewelIntUiBridge") internal val uiDefaults get() = UIManager.getDefaults() +private val iconsBasePath + get() = DirProvider().dir() + @OptIn(DependsOnJBR::class) internal suspend fun createBridgeIntUiDefinition(): IntUiThemeDefinition { val textStyle = retrieveTextStyle("Label.font", "Label.foreground") @@ -150,13 +154,15 @@ internal fun createSwingIntUiComponentStyling( return IntelliJComponentStyling( checkboxStyle = readCheckboxStyle(), chipStyle = readChipStyle(), + circularProgressStyle = readCircularProgressStyle(theme.isDark), defaultButtonStyle = readDefaultButtonStyle(), + defaultDropdownStyle = readDefaultDropdownStyle(menuStyle, dropdownTextStyle), defaultTabStyle = readDefaultTabStyle(), dividerStyle = readDividerStyle(), - dropdownStyle = readDropdownStyle(menuStyle, dropdownTextStyle), editorTabStyle = readEditorTabStyle(), groupHeaderStyle = readGroupHeaderStyle(), horizontalProgressBarStyle = readHorizontalProgressBarStyle(), + iconButtonStyle = readIconButtonStyle(), labelledTextFieldStyle = readLabelledTextFieldStyle(textFieldStyle, labelTextStyle), lazyTreeStyle = readLazyTreeStyle(), linkStyle = readLinkStyle(linkTextStyle), @@ -165,14 +171,13 @@ internal fun createSwingIntUiComponentStyling( radioButtonStyle = readRadioButtonStyle(), scrollbarStyle = readScrollbarStyle(theme.isDark), textAreaStyle = readTextAreaStyle(textAreaTextStyle, textFieldStyle.metrics), - circularProgressStyle = readCircularProgressStyle(theme.isDark), - tooltipStyle = readTooltipStyle(), textFieldStyle = textFieldStyle, - iconButtonStyle = readIconButtonStyle(), + tooltipStyle = readTooltipStyle(), + undecoratedDropdownStyle = readUndecoratedDropdownStyle(menuStyle, dropdownTextStyle), ) } -private fun readDefaultButtonStyle(): IntUiButtonStyle { +private fun readDefaultButtonStyle(): ButtonStyle { val normalBackground = retrieveColorsOrUnspecified( "Button.default.startBackground", @@ -183,7 +188,7 @@ private fun readDefaultButtonStyle(): IntUiButtonStyle { retrieveColorsOrUnspecified("Button.default.startBorderColor", "Button.default.endBorderColor") .createVerticalBrush() - val colors = IntUiButtonColors( + val colors = ButtonColors( background = normalBackground, backgroundDisabled = SolidColor(Color.Transparent), backgroundFocused = normalBackground, @@ -201,9 +206,9 @@ private fun readDefaultButtonStyle(): IntUiButtonStyle { borderHovered = normalBorder, ) - return IntUiButtonStyle( + return ButtonStyle( colors = colors, - metrics = IntUiButtonMetrics( + metrics = ButtonMetrics( cornerSize = retrieveArcAsCornerSizeWithFallbacks("Button.default.arc", "Button.arc"), padding = PaddingValues(horizontal = 14.dp), // see DarculaButtonUI.HORIZONTAL_PADDING minSize = DpSize(DarculaUIUtil.MINIMUM_WIDTH.dp, DarculaUIUtil.MINIMUM_HEIGHT.dp), @@ -212,7 +217,7 @@ private fun readDefaultButtonStyle(): IntUiButtonStyle { ) } -private fun readOutlinedButtonStyle(): IntUiButtonStyle { +private fun readOutlinedButtonStyle(): ButtonStyle { val normalBackground = retrieveColorsOrUnspecified("Button.startBackground", "Button.endBackground") .createVerticalBrush() @@ -221,7 +226,7 @@ private fun readOutlinedButtonStyle(): IntUiButtonStyle { retrieveColorsOrUnspecified("Button.startBorderColor", "Button.endBorderColor") .createVerticalBrush() - val colors = IntUiButtonColors( + val colors = ButtonColors( background = normalBackground, backgroundDisabled = SolidColor(Color.Transparent), backgroundFocused = normalBackground, @@ -239,9 +244,9 @@ private fun readOutlinedButtonStyle(): IntUiButtonStyle { borderHovered = normalBorder, ) - return IntUiButtonStyle( + return ButtonStyle( colors = colors, - metrics = IntUiButtonMetrics( + metrics = ButtonMetrics( cornerSize = CornerSize(DarculaUIUtil.BUTTON_ARC.dp / 2), padding = PaddingValues(horizontal = 14.dp), // see DarculaButtonUI.HORIZONTAL_PADDING minSize = DpSize(DarculaUIUtil.MINIMUM_WIDTH.dp, DarculaUIUtil.MINIMUM_HEIGHT.dp), @@ -250,31 +255,24 @@ private fun readOutlinedButtonStyle(): IntUiButtonStyle { ) } -private val iconsBasePath - get() = DirProvider().dir() - -private fun readCheckboxStyle(): IntUiCheckboxStyle { - val background = retrieveColorOrUnspecified("CheckBox.background") +private fun readCheckboxStyle(): CheckboxStyle { val textColor = retrieveColorOrUnspecified("CheckBox.foreground") - val colors = IntUiCheckboxColors( - checkboxBackground = background, - checkboxBackgroundDisabled = background, - checkboxBackgroundSelected = background, + val colors = CheckboxColors( content = textColor, contentDisabled = retrieveColorOrUnspecified("CheckBox.disabledText"), contentSelected = textColor, ) - return IntUiCheckboxStyle( + return CheckboxStyle( colors = colors, - metrics = IntUiCheckboxMetrics( + metrics = CheckboxMetrics( checkboxSize = DarculaCheckBoxUI().defaultIcon.let { DpSize(it.iconWidth.dp, it.iconHeight.dp) }, checkboxCornerSize = CornerSize(3.dp), // See DarculaCheckBoxUI#drawCheckIcon outlineSize = DpSize(15.dp, 15.dp), // Extrapolated from SVG outlineOffset = DpOffset(2.5.dp, 1.5.dp), // Extrapolated from SVG iconContentGap = 5.dp, // See DarculaCheckBoxUI#textIconGap ), - icons = IntUiCheckboxIcons( + icons = CheckboxIcons( checkbox = bridgePainterProvider("${iconsBasePath}checkBox.svg"), ), ) @@ -286,7 +284,7 @@ private fun readCheckboxStyle(): IntUiCheckboxStyle { // 1. There is no real disabled state, we're making it sort of up // 2. Chips can be used as buttons (see run configs) or as radio buttons (see MeetNewUi) // 3. We also have a toggleable version because why not -private fun readChipStyle(): IntUiChipStyle { +private fun readChipStyle(): ChipStyle { val normalBackground = retrieveColorsOrUnspecified("Button.startBackground", "Button.endBackground") .createVerticalBrush() @@ -295,7 +293,7 @@ private fun readChipStyle(): IntUiChipStyle { val disabledBorder = retrieveColorOrUnspecified("Button.disabledBorderColor") val selectedBorder = retrieveColorOrUnspecified("Component.focusColor") - val colors = IntUiChipColors( + val colors = ChipColors( background = normalBackground, backgroundDisabled = normalBackground, backgroundFocused = normalBackground, @@ -327,9 +325,9 @@ private fun readChipStyle(): IntUiChipStyle { borderSelectedFocused = selectedBorder, borderSelectedHovered = selectedBorder, ) - return IntUiChipStyle( + return ChipStyle( colors = colors, - metrics = IntUiChipMetrics( + metrics = ChipMetrics( cornerSize = CornerSize(6.dp), padding = PaddingValues(horizontal = 12.dp, vertical = 8.dp), borderWidth = 1.dp, @@ -339,21 +337,21 @@ private fun readChipStyle(): IntUiChipStyle { } private fun readDividerStyle() = - IntUiDividerStyle( + DividerStyle( color = retrieveColorOrUnspecified("Borders.color"), - metrics = IntUiDividerMetrics(), + metrics = DividerMetrics.defaults(), ) -private fun readDropdownStyle( - menuStyle: IntUiMenuStyle, +private fun readDefaultDropdownStyle( + menuStyle: MenuStyle, dropdownTextStyle: TextStyle, -): IntUiDropdownStyle { +): DropdownStyle { val normalBackground = retrieveColorOrUnspecified("ComboBox.nonEditableBackground") val normalContent = retrieveColorOrUnspecified("ComboBox.foreground") val normalBorder = retrieveColorOrUnspecified("Component.borderColor") val focusedBorder = retrieveColorOrUnspecified("Component.focusedBorderColor") - val colors = IntUiDropdownColors( + val colors = DropdownColors( background = normalBackground, backgroundDisabled = retrieveColorOrUnspecified("ComboBox.disabledBackground"), backgroundFocused = normalBackground, @@ -377,9 +375,9 @@ private fun readDropdownStyle( ) val arrowWidth = DarculaUIUtil.ARROW_BUTTON_WIDTH.dp - return IntUiDropdownStyle( + return DropdownStyle( colors = colors, - metrics = IntUiDropdownMetrics( + metrics = DropdownMetrics( arrowMinSize = DpSize(arrowWidth, DarculaUIUtil.MINIMUM_HEIGHT.dp), minSize = DpSize( DarculaUIUtil.MINIMUM_WIDTH.dp + arrowWidth, @@ -389,32 +387,85 @@ private fun readDropdownStyle( contentPadding = retrieveInsetsAsPaddingValues("ComboBox.padding"), borderWidth = DarculaUIUtil.BW.dp, ), - icons = IntUiDropdownIcons( - chevronDown = bridgePainterProvider("${iconsBasePath}general/chevron-down.svg"), + icons = DropdownIcons( + chevronDown = bridgePainterProvider("general/chevron-down.svg"), ), textStyle = dropdownTextStyle, menuStyle = menuStyle, ) } -private fun readGroupHeaderStyle() = IntUiGroupHeaderStyle( - colors = IntUiGroupHeaderColors( - divider = retrieveColorOrUnspecified("Separator.separatorColor"), - ), - metrics = IntUiGroupHeaderMetrics( - dividerThickness = 1.dp, // see DarculaSeparatorUI - indent = 1.dp, // see DarculaSeparatorUI - ), -) +private fun readUndecoratedDropdownStyle( + menuStyle: MenuStyle, + dropdownTextStyle: TextStyle, +): DropdownStyle { + val normalBackground = retrieveColorOrUnspecified("ComboBox.nonEditableBackground") + val hoverBackground = retrieveColorOrUnspecified("MainToolbar.Dropdown.transparentHoverBackground") + val normalContent = retrieveColorOrUnspecified("ComboBox.foreground") + + val colors = DropdownColors( + background = normalBackground, + backgroundDisabled = retrieveColorOrUnspecified("ComboBox.disabledBackground"), + backgroundFocused = normalBackground, + backgroundPressed = normalBackground, + backgroundHovered = hoverBackground, + content = normalContent, + contentDisabled = retrieveColorOrUnspecified("ComboBox.disabledForeground"), + contentFocused = normalContent, + contentPressed = normalContent, + contentHovered = normalContent, + border = Color.Transparent, + borderDisabled = Color.Transparent, + borderFocused = Color.Transparent, + borderPressed = Color.Transparent, + borderHovered = Color.Transparent, + iconTint = Color.Unspecified, + iconTintDisabled = Color.Unspecified, + iconTintFocused = Color.Unspecified, + iconTintPressed = Color.Unspecified, + iconTintHovered = Color.Unspecified, + ) -private fun readHorizontalProgressBarStyle() = IntUiHorizontalProgressBarStyle( - colors = IntUiHorizontalProgressBarColors( + val arrowWidth = DarculaUIUtil.ARROW_BUTTON_WIDTH.dp + return DropdownStyle( + colors = colors, + metrics = DropdownMetrics( + arrowMinSize = DpSize(arrowWidth, DarculaUIUtil.MINIMUM_HEIGHT.dp), + minSize = DpSize( + DarculaUIUtil.MINIMUM_WIDTH.dp + arrowWidth, + DarculaUIUtil.MINIMUM_HEIGHT.dp, + ), + cornerSize = CornerSize(JBUI.CurrentTheme.MainToolbar.Dropdown.hoverArc().dp), + contentPadding = JBUI.CurrentTheme.MainToolbar.Dropdown.borderInsets().toPaddingValues(), + borderWidth = 0.dp, + ), + icons = DropdownIcons( + chevronDown = bridgePainterProvider("general/chevron-down.svg"), + ), + textStyle = dropdownTextStyle, + menuStyle = menuStyle, + ) +} + +private fun readGroupHeaderStyle() = + GroupHeaderStyle( + colors = GroupHeaderColors( + divider = retrieveColorOrUnspecified("Separator.separatorColor"), + ), + metrics = GroupHeaderMetrics( + dividerThickness = 1.dp, // see DarculaSeparatorUI + indent = 1.dp, // see DarculaSeparatorUI + ), + ) + +private fun readHorizontalProgressBarStyle() = HorizontalProgressBarStyle( + colors = HorizontalProgressBarColors( track = retrieveColorOrUnspecified("ProgressBar.trackColor"), progress = retrieveColorOrUnspecified("ProgressBar.progressColor"), indeterminateBase = retrieveColorOrUnspecified("ProgressBar.indeterminateStartColor"), indeterminateHighlight = retrieveColorOrUnspecified("ProgressBar.indeterminateEndColor"), ), - metrics = IntUiHorizontalProgressBarMetrics( + metrics = HorizontalProgressBarMetrics( cornerSize = CornerSize(100), minHeight = 4.dp, // See DarculaProgressBarUI.DEFAULT_WIDTH // See DarculaProgressBarUI.CYCLE_TIME_DEFAULT, DarculaProgressBarUI.REPAINT_INTERVAL_DEFAULT, @@ -427,8 +478,8 @@ private fun readHorizontalProgressBarStyle() = IntUiHorizontalProgressBarStyle( private fun readLabelledTextFieldStyle( inputFieldStyle: InputFieldStyle, labelTextStyle: TextStyle, -): IntUiLabelledTextFieldStyle { - val colors = IntUiLabelledTextFieldColors( +): LabelledTextFieldStyle { + val colors = LabelledTextFieldColors( background = inputFieldStyle.colors.background, backgroundDisabled = inputFieldStyle.colors.backgroundDisabled, backgroundFocused = inputFieldStyle.colors.backgroundFocused, @@ -454,9 +505,9 @@ private fun readLabelledTextFieldStyle( hint = StatusText.DEFAULT_ATTRIBUTES.fgColor.toComposeColor(), ) - return IntUiLabelledTextFieldStyle( + return LabelledTextFieldStyle( colors = colors, - metrics = IntUiLabelledTextFieldMetrics( + metrics = LabelledTextFieldMetrics( cornerSize = inputFieldStyle.metrics.cornerSize, contentPadding = inputFieldStyle.metrics.contentPadding, minSize = inputFieldStyle.metrics.minSize, @@ -465,7 +516,7 @@ private fun readLabelledTextFieldStyle( hintSpacing = 6.dp, ), textStyle = inputFieldStyle.textStyle, - textStyles = IntUiLabelledTextFieldTextStyles( + textStyles = LabelledTextFieldTextStyles( label = labelTextStyle, hint = labelTextStyle.copy(fontSize = labelTextStyle.fontSize - 1f), ), @@ -474,11 +525,11 @@ private fun readLabelledTextFieldStyle( private fun readLinkStyle( linkTextStyle: TextStyle, -): IntUiLinkStyle { +): LinkStyle { val normalContent = retrieveColorOrUnspecified("Link.activeForeground").takeOrElse { retrieveColorOrUnspecified("Link.activeForeground") } - val colors = IntUiLinkColors( + val colors = LinkColors( content = normalContent, contentDisabled = retrieveColorOrUnspecified("Link.disabledForeground").takeOrElse { retrieveColorOrUnspecified( @@ -491,18 +542,18 @@ private fun readLinkStyle( contentVisited = retrieveColorOrUnspecified("Link.visitedForeground").takeOrElse { retrieveColorOrUnspecified("link.visited.foreground") }, ) - return IntUiLinkStyle( + return LinkStyle( colors = colors, - metrics = IntUiLinkMetrics( + metrics = LinkMetrics( focusHaloCornerSize = CornerSize(Registry.intValue("ide.link.button.focus.round.arc", 4).dp), textIconGap = 4.dp, - iconSize = DpSize.Unspecified, + iconSize = DpSize(16.dp, 16.dp), ), - icons = IntUiLinkIcons( - dropdownChevron = bridgePainterProvider("${iconsBasePath}general/chevron-down.svg"), - externalLink = bridgePainterProvider("${iconsBasePath}ide/external_link_arrow.svg"), + icons = LinkIcons( + dropdownChevron = bridgePainterProvider("general/chevron-down.svg"), + externalLink = bridgePainterProvider("ide/external_link_arrow.svg"), ), - textStyles = IntUiLinkTextStyles( + textStyles = LinkTextStyles( normal = linkTextStyle, disabled = linkTextStyle, focused = linkTextStyle, @@ -513,15 +564,15 @@ private fun readLinkStyle( ) } -private fun readMenuStyle(): IntUiMenuStyle { +private fun readMenuStyle(): MenuStyle { val backgroundSelected = retrieveColorOrUnspecified("MenuItem.selectionBackground") val foregroundSelected = retrieveColorOrUnspecified("MenuItem.selectionForeground") - val colors = IntUiMenuColors( + val colors = MenuColors( background = retrieveColorOrUnspecified("PopupMenu.background"), border = retrieveColorOrUnspecified("Popup.borderColor").takeOrElse { retrieveColorOrUnspecified("Popup.Border.color") }, shadow = Color.Black.copy(alpha = .6f), - itemColors = IntUiMenuItemColors( + itemColors = MenuItemColors( background = retrieveColorOrUnspecified("MenuItem.background"), backgroundDisabled = retrieveColorOrUnspecified("MenuItem.disabledBackground"), backgroundFocused = backgroundSelected, @@ -541,39 +592,39 @@ private fun readMenuStyle(): IntUiMenuStyle { ), ) - return IntUiMenuStyle( + return MenuStyle( colors = colors, - metrics = IntUiMenuMetrics( + metrics = MenuMetrics( cornerSize = CornerSize(IdeaPopupMenuUI.CORNER_RADIUS.dp), menuMargin = PaddingValues(0.dp), contentPadding = PaddingValues(horizontal = 8.dp, vertical = 12.dp), offset = DpOffset(0.dp, 2.dp), shadowSize = 12.dp, borderWidth = retrieveIntAsDpOrUnspecified("Popup.borderWidth").takeOrElse { 1.dp }, - itemMetrics = IntUiMenuItemMetrics( + itemMetrics = MenuItemMetrics( selectionCornerSize = CornerSize(JBUI.CurrentTheme.PopupMenu.Selection.ARC.dp), outerPadding = PaddingValues(horizontal = 6.dp), - contentPadding = PaddingValues(horizontal = 10.dp, vertical = 1.dp), + contentPadding = PaddingValues(horizontal = 10.dp, vertical = 4.dp), separatorPadding = PaddingValues( horizontal = retrieveIntAsDpOrUnspecified("PopupMenuSeparator.withToEdge").takeOrElse { 0.dp }, vertical = retrieveIntAsDpOrUnspecified("PopupMenuSeparator.stripeIndent").takeOrElse { 0.dp }, ), separatorThickness = retrieveIntAsDpOrUnspecified("PopupMenuSeparator.stripeWidth").takeOrElse { 0.dp }, ), - submenuMetrics = IntUiSubmenuMetrics( + submenuMetrics = SubmenuMetrics( offset = DpOffset(0.dp, (-8).dp), ), ), - icons = IntUiMenuIcons( - submenuChevron = bridgePainterProvider("${iconsBasePath}general/chevron-down.svg"), + icons = MenuIcons( + submenuChevron = bridgePainterProvider("general/chevron-right.svg"), ), ) } -private fun readRadioButtonStyle(): IntUiRadioButtonStyle { +private fun readRadioButtonStyle(): RadioButtonStyle { val normalContent = retrieveColorOrUnspecified("RadioButton.foreground") val disabledContent = retrieveColorOrUnspecified("RadioButton.disabledText") - val colors = IntUiRadioButtonColors( + val colors = RadioButtonColors( content = normalContent, contentHovered = normalContent, contentDisabled = disabledContent, @@ -582,44 +633,45 @@ private fun readRadioButtonStyle(): IntUiRadioButtonStyle { contentSelectedDisabled = disabledContent, ) - return IntUiRadioButtonStyle( + return RadioButtonStyle( colors = colors, - metrics = IntUiRadioButtonMetrics( + metrics = RadioButtonMetrics( radioButtonSize = DpSize(19.dp, 19.dp), iconContentGap = retrieveIntAsDpOrUnspecified("RadioButton.textIconGap").takeOrElse { 4.dp }, ), - icons = IntUiRadioButtonIcons( + icons = RadioButtonIcons( radioButton = bridgePainterProvider("${iconsBasePath}radio.svg"), ), ) } -private fun readScrollbarStyle(isDark: Boolean) = IntUiScrollbarStyle( - colors = IntUiScrollbarColors( - // See ScrollBarPainter.THUMB_OPAQUE_BACKGROUND - thumbBackground = retrieveColorOrUnspecified("ScrollBar.Mac.Transparent.thumbColor") - .takeOrElse { if (isDark) Color(0x59808080) else Color(0x33000000) }, - // See ScrollBarPainter.THUMB_OPAQUE_HOVERED_BACKGROUND - thumbBackgroundHovered = retrieveColorOrUnspecified("ScrollBar.Mac.Transparent.hoverThumbColor") - .takeOrElse { if (isDark) Color(0x8C808080) else Color(0x80000000) }, - ), - metrics = IntUiScrollbarMetrics( - thumbCornerSize = CornerSize(100), - thumbThickness = 8.dp, - minThumbLength = 16.dp, - trackPadding = PaddingValues(start = 7.dp, end = 3.dp), - ), - hoverDuration = 300.milliseconds, -) +private fun readScrollbarStyle(isDark: Boolean) = + ScrollbarStyle( + colors = ScrollbarColors( + // See ScrollBarPainter.THUMB_OPAQUE_BACKGROUND + thumbBackground = retrieveColorOrUnspecified("ScrollBar.Mac.Transparent.thumbColor") + .takeOrElse { if (isDark) Color(0x59808080) else Color(0x33000000) }, + // See ScrollBarPainter.THUMB_OPAQUE_HOVERED_BACKGROUND + thumbBackgroundHovered = retrieveColorOrUnspecified("ScrollBar.Mac.Transparent.hoverThumbColor") + .takeOrElse { if (isDark) Color(0x8C808080) else Color(0x80000000) }, + ), + metrics = ScrollbarMetrics( + thumbCornerSize = CornerSize(100), + thumbThickness = 8.dp, + minThumbLength = 16.dp, + trackPadding = PaddingValues(start = 7.dp, end = 3.dp), + ), + hoverDuration = 300.milliseconds, + ) -private fun readTextAreaStyle(textStyle: TextStyle, metrics: IntUiTextFieldMetrics): IntUiTextAreaStyle { +private fun readTextAreaStyle(textStyle: TextStyle, metrics: TextFieldMetrics): TextAreaStyle { val normalBackground = retrieveColorOrUnspecified("TextArea.background") val normalContent = retrieveColorOrUnspecified("TextArea.foreground") val normalBorder = DarculaUIUtil.getOutlineColor(true, false).toComposeColor() val focusedBorder = DarculaUIUtil.getOutlineColor(true, true).toComposeColor() val normalCaret = retrieveColorOrUnspecified("TextArea.caretForeground") - val colors = IntUiTextAreaColors( + val colors = TextAreaColors( background = normalBackground, backgroundDisabled = retrieveColorOrUnspecified("TextArea.disabledBackground"), backgroundFocused = normalBackground, @@ -643,9 +695,9 @@ private fun readTextAreaStyle(textStyle: TextStyle, metrics: IntUiTextFieldMetri placeholder = NamedColorUtil.getInactiveTextColor().toComposeColor(), ) - return IntUiTextAreaStyle( + return TextAreaStyle( colors = colors, - metrics = IntUiTextAreaMetrics( + metrics = TextAreaMetrics( cornerSize = metrics.cornerSize, contentPadding = metrics.contentPadding, minSize = metrics.minSize, @@ -655,14 +707,14 @@ private fun readTextAreaStyle(textStyle: TextStyle, metrics: IntUiTextFieldMetri ) } -private fun readTextFieldStyle(textFieldStyle: TextStyle): IntUiTextFieldStyle { +private fun readTextFieldStyle(textFieldStyle: TextStyle): TextFieldStyle { val normalBackground = retrieveColorOrUnspecified("TextField.background") val normalContent = retrieveColorOrUnspecified("TextField.foreground") val normalBorder = DarculaUIUtil.getOutlineColor(true, false).toComposeColor() val focusedBorder = DarculaUIUtil.getOutlineColor(true, true).toComposeColor() val normalCaret = retrieveColorOrUnspecified("TextField.caretForeground") - val colors = IntUiTextFieldColors( + val colors = TextFieldColors( background = normalBackground, backgroundDisabled = retrieveColorOrUnspecified("TextField.disabledBackground"), backgroundFocused = normalBackground, @@ -686,9 +738,9 @@ private fun readTextFieldStyle(textFieldStyle: TextStyle): IntUiTextFieldStyle { placeholder = NamedColorUtil.getInactiveTextColor().toComposeColor(), ) - return IntUiTextFieldStyle( + return TextFieldStyle( colors = colors, - metrics = IntUiTextFieldMetrics( + metrics = TextFieldMetrics( cornerSize = CornerSize(DarculaUIUtil.COMPONENT_ARC.dp), contentPadding = PaddingValues(horizontal = 9.dp, vertical = 2.dp), minSize = DpSize(DarculaUIUtil.MINIMUM_WIDTH.dp, DarculaUIUtil.MINIMUM_HEIGHT.dp), @@ -698,13 +750,13 @@ private fun readTextFieldStyle(textFieldStyle: TextStyle): IntUiTextFieldStyle { ) } -private fun readLazyTreeStyle(): IntUiLazyTreeStyle { +private fun readLazyTreeStyle(): LazyTreeStyle { val normalContent = retrieveColorOrUnspecified("Tree.foreground") val selectedContent = retrieveColorOrUnspecified("Tree.selectionForeground") val selectedElementBackground = retrieveColorOrUnspecified("Tree.selectionBackground") val inactiveSelectedElementBackground = retrieveColorOrUnspecified("Tree.selectionInactiveBackground") - val colors = IntUiLazyTreeColors( + val colors = LazyTreeColors( content = normalContent, contentFocused = normalContent, contentSelected = selectedContent, @@ -714,12 +766,12 @@ private fun readLazyTreeStyle(): IntUiLazyTreeStyle { elementBackgroundSelectedFocused = selectedElementBackground, ) - val chevronCollapsed = bridgePainterProvider("${iconsBasePath}general/chevron-right.svg") - val chevronExpanded = bridgePainterProvider("${iconsBasePath}general/chevron-down.svg") + val chevronCollapsed = bridgePainterProvider("general/chevron-right.svg") + val chevronExpanded = bridgePainterProvider("general/chevron-down.svg") - return IntUiLazyTreeStyle( + return LazyTreeStyle( colors = colors, - metrics = IntUiLazyTreeMetrics( + metrics = LazyTreeMetrics( indentSize = retrieveIntAsDpOrUnspecified("Tree.leftChildIndent").takeOrElse { 7.dp } + retrieveIntAsDpOrUnspecified("Tree.rightChildIndent").takeOrElse { 11.dp }, elementBackgroundCornerSize = CornerSize(JBUI.CurrentTheme.Tree.ARC.dp / 2), @@ -728,7 +780,7 @@ private fun readLazyTreeStyle(): IntUiLazyTreeStyle { elementMinHeight = retrieveIntAsDpOrUnspecified("Tree.rowHeight").takeOrElse { 24.dp }, chevronContentGap = 2.dp, // See com.intellij.ui.tree.ui.ClassicPainter.GAP ), - icons = IntUiLazyTreeIcons( + icons = LazyTreeIcons( chevronCollapsed = chevronCollapsed, chevronExpanded = chevronExpanded, chevronSelectedCollapsed = chevronCollapsed, @@ -738,13 +790,13 @@ private fun readLazyTreeStyle(): IntUiLazyTreeStyle { } // See com.intellij.ui.tabs.impl.themes.DefaultTabTheme -private fun readDefaultTabStyle(): IntUiTabStyle { +private fun readDefaultTabStyle(): TabStyle { val normalBackground = JBUI.CurrentTheme.DefaultTabs.background().toComposeColor() val selectedBackground = JBUI.CurrentTheme.DefaultTabs.underlinedTabBackground().toComposeColorOrUnspecified() val normalContent = retrieveColorOrUnspecified("TabbedPane.foreground") val selectedUnderline = retrieveColorOrUnspecified("TabbedPane.underlineColor") - val colors = IntUiTabColors( + val colors = TabColors( background = normalBackground, backgroundDisabled = normalBackground, backgroundFocused = normalBackground, @@ -765,18 +817,18 @@ private fun readDefaultTabStyle(): IntUiTabStyle { underlineSelected = selectedUnderline, ) - return IntUiTabStyle( + return TabStyle( colors = colors, - metrics = IntUiTabMetrics( + metrics = TabMetrics( underlineThickness = retrieveIntAsDpOrUnspecified("TabbedPane.tabSelectionHeight").takeOrElse { 2.dp }, tabPadding = retrieveInsetsAsPaddingValues("TabbedPane.tabInsets"), closeContentGap = 4.dp, tabHeight = retrieveIntAsDpOrUnspecified("TabbedPane.tabHeight").takeOrElse { 24.dp }, ), - icons = IntUiTabIcons( - close = bridgePainterProvider("${iconsBasePath}expui/general/closeSmall.svg"), + icons = TabIcons( + close = bridgePainterProvider("expui/general/closeSmall.svg"), ), - contentAlpha = IntUiTabContentAlpha( + contentAlpha = TabContentAlpha( iconNormal = 1f, iconDisabled = 1f, iconFocused = 1f, @@ -793,13 +845,13 @@ private fun readDefaultTabStyle(): IntUiTabStyle { ) } -private fun readEditorTabStyle(): IntUiTabStyle { +private fun readEditorTabStyle(): TabStyle { val normalBackground = JBUI.CurrentTheme.EditorTabs.background().toComposeColor() val selectedBackground = JBUI.CurrentTheme.EditorTabs.underlinedTabBackground().toComposeColorOrUnspecified() val normalContent = retrieveColorOrUnspecified("TabbedPane.foreground") val selectedUnderline = retrieveColorOrUnspecified("TabbedPane.underlineColor") - val colors = IntUiTabColors( + val colors = TabColors( background = normalBackground, backgroundDisabled = normalBackground, backgroundFocused = normalBackground, @@ -820,18 +872,18 @@ private fun readEditorTabStyle(): IntUiTabStyle { underlineSelected = selectedUnderline, ) - return IntUiTabStyle( + return TabStyle( colors = colors, - metrics = IntUiTabMetrics( + metrics = TabMetrics( underlineThickness = retrieveIntAsDpOrUnspecified("TabbedPane.tabSelectionHeight").takeOrElse { 2.dp }, tabPadding = retrieveInsetsAsPaddingValues("TabbedPane.tabInsets"), closeContentGap = 4.dp, tabHeight = retrieveIntAsDpOrUnspecified("TabbedPane.tabHeight").takeOrElse { 24.dp }, ), - icons = IntUiTabIcons( - close = bridgePainterProvider("${iconsBasePath}expui/general/closeSmall.svg"), + icons = TabIcons( + close = bridgePainterProvider("expui/general/closeSmall.svg"), ), - contentAlpha = IntUiTabContentAlpha( + contentAlpha = TabContentAlpha( iconNormal = .7f, iconDisabled = .7f, iconFocused = .7f, @@ -850,38 +902,43 @@ private fun readEditorTabStyle(): IntUiTabStyle { private fun readCircularProgressStyle( isDark: Boolean, -): IntUiCircularProgressStyle = - IntUiCircularProgressStyle( +) = + CircularProgressStyle( frameTime = 125.milliseconds, color = retrieveColorOrUnspecified("ProgressIcon.color") .takeIf { it.isSpecified } ?: if (isDark) Color(0xFF6F737A) else Color(0xFFA8ADBD), ) -private fun readTooltipStyle(): IntUiTooltipStyle { - return IntUiTooltipStyle( - metrics = IntUiTooltipMetrics(), - colors = IntUiTooltipColors( +private fun readTooltipStyle() = + TooltipStyle( + metrics = TooltipMetrics.defaults(), + colors = TooltipColors( content = retrieveColorOrUnspecified("ToolTip.foreground"), background = retrieveColorOrUnspecified("ToolTip.background"), border = retrieveColorOrUnspecified("ToolTip.borderColor"), shadow = retrieveColorOrUnspecified("Notification.Shadow.bottom1Color"), ), ) -} -private fun readIconButtonStyle(): IntUiIconButtonStyle = IntUiIconButtonStyle( - metrics = IntUiIconButtonMetrics(CornerSize(DarculaUIUtil.BUTTON_ARC.dp / 2)), - colors = IntUiIconButtonColors( - background = Color.Unspecified, - backgroundDisabled = Color.Unspecified, - backgroundFocused = Color.Unspecified, - backgroundPressed = retrieveColorOrUnspecified("ActionButton.pressedBackground"), - backgroundHovered = retrieveColorOrUnspecified("ActionButton.hoverBackground"), - border = Color.Unspecified, - borderDisabled = Color.Unspecified, - borderFocused = retrieveColorOrUnspecified("ActionButton.focusedBorderColor"), - borderPressed = retrieveColorOrUnspecified("ActionButton.pressedBorderColor"), - borderHovered = retrieveColorOrUnspecified("ActionButton.hoverBorderColor"), - ), -) +private fun readIconButtonStyle(): IconButtonStyle = + IconButtonStyle( + metrics = IconButtonMetrics( + cornerSize = CornerSize(DarculaUIUtil.BUTTON_ARC.dp / 2), + borderWidth = 1.dp, + padding = PaddingValues(0.dp), + minSize = DpSize(16.dp, 16.dp), + ), + colors = IconButtonColors( + background = Color.Unspecified, + backgroundDisabled = Color.Unspecified, + backgroundFocused = Color.Unspecified, + backgroundPressed = retrieveColorOrUnspecified("ActionButton.pressedBackground"), + backgroundHovered = retrieveColorOrUnspecified("ActionButton.hoverBackground"), + border = Color.Unspecified, + borderDisabled = Color.Unspecified, + borderFocused = retrieveColorOrUnspecified("ActionButton.focusedBorderColor"), + borderPressed = retrieveColorOrUnspecified("ActionButton.pressedBorderColor"), + borderHovered = retrieveColorOrUnspecified("ActionButton.hoverBorderColor"), + ), + ) diff --git a/int-ui/int-ui-core/api/int-ui-core.api b/int-ui/int-ui-core/api/int-ui-core.api index bab021b3a..745aa713a 100644 --- a/int-ui/int-ui-core/api/int-ui-core.api +++ b/int-ui/int-ui-core/api/int-ui-core.api @@ -67,6 +67,7 @@ public abstract class org/jetbrains/jewel/intui/core/IntUiPainterHintsProvider : public static final field $stable I public fun (ZLjava/util/Map;Ljava/util/Map;Ljava/util/Map;)V protected final fun getPaletteHint (Ljava/lang/String;)Lorg/jetbrains/jewel/painter/PainterHint; + public fun priorityHints (Ljava/lang/String;Landroidx/compose/runtime/Composer;I)Ljava/util/List; } public abstract interface class org/jetbrains/jewel/intui/core/IntUiThemeColorPalette : org/jetbrains/jewel/IntelliJThemeColorPalette { @@ -109,6 +110,13 @@ public final class org/jetbrains/jewel/intui/core/IntUiThemeDefinition : org/jet public fun toString ()Ljava/lang/String; } +public final class org/jetbrains/jewel/intui/core/styling/CommonMetricsKt { + public static final fun defaults-VpY3zN4 (Lorg/jetbrains/jewel/styling/DividerMetrics$Companion;FF)Lorg/jetbrains/jewel/styling/DividerMetrics; + public static synthetic fun defaults-VpY3zN4$default (Lorg/jetbrains/jewel/styling/DividerMetrics$Companion;FFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/DividerMetrics; + public static final fun defaults-_3NXNO4 (Lorg/jetbrains/jewel/styling/TooltipMetrics$Companion;Landroidx/compose/foundation/layout/PaddingValues;JLandroidx/compose/foundation/shape/CornerSize;FFJLandroidx/compose/ui/Alignment$Horizontal;)Lorg/jetbrains/jewel/styling/TooltipMetrics; + public static synthetic fun defaults-_3NXNO4$default (Lorg/jetbrains/jewel/styling/TooltipMetrics$Companion;Landroidx/compose/foundation/layout/PaddingValues;JLandroidx/compose/foundation/shape/CornerSize;FFJLandroidx/compose/ui/Alignment$Horizontal;ILjava/lang/Object;)Lorg/jetbrains/jewel/styling/TooltipMetrics; +} + public final class org/jetbrains/jewel/intui/core/theme/IntUiDarkTheme : org/jetbrains/jewel/IntelliJThemeDescriptor { public static final field $stable I public static final field INSTANCE Lorg/jetbrains/jewel/intui/core/theme/IntUiDarkTheme; diff --git a/int-ui/int-ui-core/src/main/kotlin/org/jetbrains/jewel/intui/core/styling/CommonMetrics.kt b/int-ui/int-ui-core/src/main/kotlin/org/jetbrains/jewel/intui/core/styling/CommonMetrics.kt new file mode 100644 index 000000000..d0604b351 --- /dev/null +++ b/int-ui/int-ui-core/src/main/kotlin/org/jetbrains/jewel/intui/core/styling/CommonMetrics.kt @@ -0,0 +1,27 @@ +package org.jetbrains.jewel.intui.core.styling + +import androidx.compose.foundation.layout.PaddingValues +import androidx.compose.foundation.shape.CornerSize +import androidx.compose.ui.Alignment +import androidx.compose.ui.unit.Dp +import androidx.compose.ui.unit.DpOffset +import androidx.compose.ui.unit.dp +import org.jetbrains.jewel.styling.DividerMetrics +import org.jetbrains.jewel.styling.TooltipMetrics +import kotlin.time.Duration +import kotlin.time.Duration.Companion.milliseconds + +fun TooltipMetrics.Companion.defaults( + contentPadding: PaddingValues = PaddingValues(vertical = 9.dp, horizontal = 12.dp), + showDelay: Duration = 0.milliseconds, + cornerSize: CornerSize = CornerSize(5.dp), + borderWidth: Dp = 1.dp, + shadowSize: Dp = 12.dp, + tooltipOffset: DpOffset = DpOffset(0.dp, 20.dp), + tooltipAlignment: Alignment.Horizontal = Alignment.Start, +) = TooltipMetrics(contentPadding, showDelay, cornerSize, borderWidth, shadowSize, tooltipOffset, tooltipAlignment) + +fun DividerMetrics.Companion.defaults( + thickness: Dp = 1.dp, + startIndent: Dp = 0.dp, +) = DividerMetrics(thickness, startIndent) diff --git a/int-ui/int-ui-decorated-window/api/int-ui-decorated-window.api b/int-ui/int-ui-decorated-window/api/int-ui-decorated-window.api index e7d4077d6..6b828a169 100644 --- a/int-ui/int-ui-decorated-window/api/int-ui-decorated-window.api +++ b/int-ui/int-ui-decorated-window/api/int-ui-decorated-window.api @@ -60,16 +60,16 @@ public final class org/jetbrains/jewel/intui/window/styling/IntUiTitleBarColors public fun getBackground-0d7_KjU ()J public fun getBorder-0d7_KjU ()J public fun getContent-0d7_KjU ()J - public fun getDropdownHoverBackground-0d7_KjU ()J - public fun getDropdownPressBackground-0d7_KjU ()J + public fun getDropdownHoveredBackground-0d7_KjU ()J + public fun getDropdownPressedBackground-0d7_KjU ()J public fun getFullscreenControlButtonsBackground-0d7_KjU ()J - public fun getIconButtonHoverBackground-0d7_KjU ()J - public fun getIconButtonPressBackground-0d7_KjU ()J + public fun getIconButtonHoveredBackground-0d7_KjU ()J + public fun getIconButtonPressedBackground-0d7_KjU ()J public fun getInactiveBackground-0d7_KjU ()J - public fun getTitlePaneButtonHoverBackground-0d7_KjU ()J - public fun getTitlePaneButtonPressBackground-0d7_KjU ()J - public fun getTitlePaneCloseButtonHoverBackground-0d7_KjU ()J - public fun getTitlePaneCloseButtonPressBackground-0d7_KjU ()J + public fun getTitlePaneButtonHoveredBackground-0d7_KjU ()J + public fun getTitlePaneButtonPressedBackground-0d7_KjU ()J + public fun getTitlePaneCloseButtonHoveredBackground-0d7_KjU ()J + public fun getTitlePaneCloseButtonPressedBackground-0d7_KjU ()J public fun hashCode ()I public fun toString ()Ljava/lang/String; } diff --git a/int-ui/int-ui-decorated-window/src/main/kotlin/org/jetbrains/jewel/intui/window/styling/IntUiTitleBarStyling.kt b/int-ui/int-ui-decorated-window/src/main/kotlin/org/jetbrains/jewel/intui/window/styling/IntUiTitleBarStyling.kt index 9b3470f06..dbba9c97c 100644 --- a/int-ui/int-ui-decorated-window/src/main/kotlin/org/jetbrains/jewel/intui/window/styling/IntUiTitleBarStyling.kt +++ b/int-ui/int-ui-decorated-window/src/main/kotlin/org/jetbrains/jewel/intui/window/styling/IntUiTitleBarStyling.kt @@ -1,26 +1,25 @@ package org.jetbrains.jewel.intui.window.styling -import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable import androidx.compose.runtime.Immutable -import androidx.compose.runtime.Stable import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpSize import androidx.compose.ui.unit.dp +import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme -import org.jetbrains.jewel.intui.standalone.styling.IntUiDropdownColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiDropdownMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiDropdownStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiIconButtonColors -import org.jetbrains.jewel.intui.standalone.styling.IntUiIconButtonMetrics -import org.jetbrains.jewel.intui.standalone.styling.IntUiIconButtonStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiMenuStyle +import org.jetbrains.jewel.intui.standalone.styling.Undecorated +import org.jetbrains.jewel.intui.standalone.styling.dark +import org.jetbrains.jewel.intui.standalone.styling.defaults +import org.jetbrains.jewel.intui.standalone.styling.light import org.jetbrains.jewel.intui.window.decoratedWindowPainterProvider import org.jetbrains.jewel.painter.PainterProvider +import org.jetbrains.jewel.styling.DropdownColors import org.jetbrains.jewel.styling.DropdownStyle +import org.jetbrains.jewel.styling.IconButtonColors +import org.jetbrains.jewel.styling.IconButtonMetrics import org.jetbrains.jewel.styling.IconButtonStyle import org.jetbrains.jewel.styling.MenuStyle import org.jetbrains.jewel.window.styling.TitleBarColors @@ -28,8 +27,8 @@ import org.jetbrains.jewel.window.styling.TitleBarIcons import org.jetbrains.jewel.window.styling.TitleBarMetrics import org.jetbrains.jewel.window.styling.TitleBarStyle -@Stable @Immutable +@GenerateDataFunctions class IntUiTitleBarStyle( override val colors: IntUiTitleBarColors, override val metrics: IntUiTitleBarMetrics, @@ -40,75 +39,20 @@ class IntUiTitleBarStyle( override val paneCloseButtonStyle: IconButtonStyle, ) : TitleBarStyle { - override fun hashCode(): Int { - var result = colors.hashCode() - result = 31 * result + metrics.hashCode() - result = 31 * result + icons.hashCode() - result = 31 * result + dropdownStyle.hashCode() - result = 31 * result + iconButtonStyle.hashCode() - result = 31 * result + paneButtonStyle.hashCode() - result = 31 * result + paneCloseButtonStyle.hashCode() - return result - } - - override fun equals(other: Any?): Boolean { - if (this === other) return true - if (other !is IntUiTitleBarStyle) return false - - if (colors != other.colors) return false - if (metrics != other.metrics) return false - if (icons != other.icons) return false - if (dropdownStyle != other.dropdownStyle) return false - if (iconButtonStyle != other.iconButtonStyle) return false - - return true - } - - override fun toString(): String = "IntUiTitleBarStyle(colors=$colors, " + - "metrics=$metrics, " + - "icons=$icons, " + - "dropdownStyle=$dropdownStyle, " + - "iconButtonStyle=$iconButtonStyle, " + - "paneButtonStyle=$paneButtonStyle, " + - "paneCloseButtonStyle=$paneCloseButtonStyle)" - companion object { - @Composable - private fun titleBarDropdownStyle( - content: Color, - hoverBackground: Color, - pressBackground: Color, - menuStyle: MenuStyle, - ) = IntUiDropdownStyle.undecorated( - IntUiDropdownColors.undecorated( - backgroundHovered = hoverBackground, - backgroundPressed = pressBackground, - content = content, - iconTint = Color.Unspecified, - ), - metrics = IntUiDropdownMetrics( - arrowMinSize = DpSize(30.dp, 30.dp), - cornerSize = CornerSize(6.dp), - minSize = DpSize((23 + 6).dp, 30.dp), - contentPadding = PaddingValues(top = 3.dp, bottom = 3.dp, start = 6.dp, end = 0.dp), - borderWidth = 0.dp, - ), - menuStyle = menuStyle, - ) - @Composable private fun titleBarIconButtonStyle( - hoverBackground: Color, - pressBackground: Color, - metrics: IntUiIconButtonMetrics, - ) = IntUiIconButtonStyle( - IntUiIconButtonColors( + hoveredBackground: Color, + pressedBackground: Color, + metrics: IconButtonMetrics, + ) = IconButtonStyle( + IconButtonColors( background = Color.Transparent, backgroundDisabled = Color.Transparent, backgroundFocused = Color.Transparent, - backgroundPressed = hoverBackground, - backgroundHovered = pressBackground, + backgroundPressed = hoveredBackground, + backgroundHovered = pressedBackground, border = Color.Transparent, borderDisabled = Color.Transparent, borderFocused = Color.Transparent, @@ -127,26 +71,32 @@ class IntUiTitleBarStyle( colors = colors, metrics = metrics, icons = icons, - dropdownStyle = titleBarDropdownStyle( - colors.content, - colors.dropdownHoverBackground, - colors.dropdownPressBackground, - IntUiMenuStyle.light(), + dropdownStyle = DropdownStyle.Undecorated.light( + colors = DropdownColors.Undecorated.light( + content = colors.content, + contentFocused = colors.content, + contentHovered = colors.content, + contentPressed = colors.content, + contentDisabled = colors.content, + backgroundHovered = colors.dropdownHoveredBackground, + backgroundPressed = colors.dropdownPressedBackground, + ), + menuStyle = MenuStyle.light(), ), iconButtonStyle = titleBarIconButtonStyle( - colors.iconButtonHoverBackground, - colors.iconButtonPressBackground, - IntUiIconButtonMetrics(borderWidth = 0.dp), + colors.iconButtonHoveredBackground, + colors.iconButtonPressedBackground, + IconButtonMetrics.defaults(borderWidth = 0.dp), ), paneButtonStyle = titleBarIconButtonStyle( - colors.titlePaneButtonHoverBackground, - colors.titlePaneButtonPressBackground, - IntUiIconButtonMetrics(CornerSize(0.dp), borderWidth = 0.dp), + colors.titlePaneButtonHoveredBackground, + colors.titlePaneButtonPressedBackground, + IconButtonMetrics.defaults(cornerSize = CornerSize(0.dp), borderWidth = 0.dp), ), paneCloseButtonStyle = titleBarIconButtonStyle( - colors.titlePaneCloseButtonHoverBackground, - colors.titlePaneCloseButtonPressBackground, - IntUiIconButtonMetrics(CornerSize(0.dp), borderWidth = 0.dp), + colors.titlePaneCloseButtonHoveredBackground, + colors.titlePaneCloseButtonPressedBackground, + IconButtonMetrics.defaults(cornerSize = CornerSize(0.dp), borderWidth = 0.dp), ), ) @@ -159,26 +109,32 @@ class IntUiTitleBarStyle( colors = colors, metrics = metrics, icons = icons, - dropdownStyle = titleBarDropdownStyle( - colors.content, - colors.dropdownHoverBackground, - colors.dropdownPressBackground, - IntUiMenuStyle.light(), + dropdownStyle = DropdownStyle.Undecorated.light( + colors = DropdownColors.Undecorated.light( + content = colors.content, + contentFocused = colors.content, + contentHovered = colors.content, + contentPressed = colors.content, + contentDisabled = colors.content, + backgroundHovered = colors.dropdownHoveredBackground, + backgroundPressed = colors.dropdownPressedBackground, + ), + menuStyle = MenuStyle.light(), ), iconButtonStyle = titleBarIconButtonStyle( - colors.iconButtonHoverBackground, - colors.iconButtonPressBackground, - IntUiIconButtonMetrics(borderWidth = 0.dp), + colors.iconButtonHoveredBackground, + colors.iconButtonPressedBackground, + IconButtonMetrics.defaults(borderWidth = 0.dp), ), paneButtonStyle = titleBarIconButtonStyle( - colors.titlePaneButtonHoverBackground, - colors.titlePaneButtonPressBackground, - IntUiIconButtonMetrics(CornerSize(0.dp), borderWidth = 0.dp), + colors.titlePaneButtonHoveredBackground, + colors.titlePaneButtonPressedBackground, + IconButtonMetrics.defaults(cornerSize = CornerSize(0.dp), borderWidth = 0.dp), ), paneCloseButtonStyle = titleBarIconButtonStyle( - colors.titlePaneCloseButtonHoverBackground, - colors.titlePaneCloseButtonPressBackground, - IntUiIconButtonMetrics(CornerSize(0.dp), borderWidth = 0.dp), + colors.titlePaneCloseButtonHoveredBackground, + colors.titlePaneCloseButtonPressedBackground, + IconButtonMetrics.defaults(cornerSize = CornerSize(0.dp), borderWidth = 0.dp), ), ) @@ -191,103 +147,55 @@ class IntUiTitleBarStyle( colors = colors, metrics = metrics, icons = icons, - dropdownStyle = titleBarDropdownStyle( - colors.content, - colors.dropdownHoverBackground, - colors.dropdownPressBackground, - IntUiMenuStyle.dark(), + dropdownStyle = DropdownStyle.Undecorated.dark( + colors = DropdownColors.Undecorated.dark( + content = colors.content, + contentFocused = colors.content, + contentHovered = colors.content, + contentPressed = colors.content, + contentDisabled = colors.content, + backgroundHovered = colors.dropdownHoveredBackground, + backgroundPressed = colors.dropdownPressedBackground, + ), + menuStyle = MenuStyle.dark(), ), iconButtonStyle = titleBarIconButtonStyle( - colors.iconButtonHoverBackground, - colors.iconButtonPressBackground, - IntUiIconButtonMetrics(borderWidth = 0.dp), + colors.iconButtonHoveredBackground, + colors.iconButtonPressedBackground, + IconButtonMetrics.defaults(borderWidth = 0.dp), ), paneButtonStyle = titleBarIconButtonStyle( - colors.titlePaneButtonHoverBackground, - colors.titlePaneButtonPressBackground, - IntUiIconButtonMetrics(CornerSize(0.dp), borderWidth = 0.dp), + colors.titlePaneButtonHoveredBackground, + colors.titlePaneButtonPressedBackground, + IconButtonMetrics.defaults(cornerSize = CornerSize(0.dp), borderWidth = 0.dp), ), paneCloseButtonStyle = titleBarIconButtonStyle( - colors.titlePaneCloseButtonHoverBackground, - colors.titlePaneCloseButtonPressBackground, - IntUiIconButtonMetrics(CornerSize(0.dp), borderWidth = 0.dp), + colors.titlePaneCloseButtonHoveredBackground, + colors.titlePaneCloseButtonPressedBackground, + IconButtonMetrics.defaults(cornerSize = CornerSize(0.dp), borderWidth = 0.dp), ), ) } } -@Stable @Immutable +@GenerateDataFunctions class IntUiTitleBarColors( override val background: Color, override val inactiveBackground: Color, override val content: Color, override val border: Color, override val fullscreenControlButtonsBackground: Color, - override val titlePaneButtonHoverBackground: Color, - override val titlePaneButtonPressBackground: Color, - override val titlePaneCloseButtonHoverBackground: Color, - override val titlePaneCloseButtonPressBackground: Color, - override val iconButtonHoverBackground: Color, - override val iconButtonPressBackground: Color, - override val dropdownHoverBackground: Color, - override val dropdownPressBackground: Color, + override val titlePaneButtonHoveredBackground: Color, + override val titlePaneButtonPressedBackground: Color, + override val titlePaneCloseButtonHoveredBackground: Color, + override val titlePaneCloseButtonPressedBackground: Color, + override val iconButtonHoveredBackground: Color, + override val iconButtonPressedBackground: Color, + override val dropdownHoveredBackground: Color, + override val dropdownPressedBackground: Color, ) : TitleBarColors { - override fun hashCode(): Int { - var result = background.hashCode() - result = 31 * result + inactiveBackground.hashCode() - result = 31 * result + content.hashCode() - result = 31 * result + border.hashCode() - result = 31 * result + fullscreenControlButtonsBackground.hashCode() - result = 31 * result + titlePaneButtonHoverBackground.hashCode() - result = 31 * result + titlePaneButtonPressBackground.hashCode() - result = 31 * result + titlePaneCloseButtonHoverBackground.hashCode() - result = 31 * result + titlePaneCloseButtonPressBackground.hashCode() - result = 31 * result + iconButtonHoverBackground.hashCode() - result = 31 * result + iconButtonPressBackground.hashCode() - result = 31 * result + dropdownHoverBackground.hashCode() - result = 31 * result + dropdownPressBackground.hashCode() - return result - } - - override fun toString(): String { - return "IntUiTitleBarColors(background=$background, " + - "inactiveBackground=$inactiveBackground, " + - "content=$content, " + - "border=$border, " + - "fullscreenControlButtonsBackground=$fullscreenControlButtonsBackground, " + - "titlePaneButtonHoverBackground=$titlePaneButtonHoverBackground, " + - "titlePaneButtonPressBackground=$titlePaneButtonPressBackground, " + - "titlePaneCloseButtonHoverBackground=$titlePaneCloseButtonHoverBackground, " + - "titlePaneCloseButtonPressBackground=$titlePaneCloseButtonPressBackground, " + - "iconButtonHoverBackground=$iconButtonHoverBackground, " + - "iconButtonPressBackground=$iconButtonPressBackground, " + - "dropdownHoverBackground=$dropdownHoverBackground, " + - "dropdownPressBackground=$dropdownPressBackground)" - } - - override fun equals(other: Any?): Boolean { - if (this === other) return true - if (other !is IntUiTitleBarColors) return false - - if (background != other.background) return false - if (inactiveBackground != other.inactiveBackground) return false - if (content != other.content) return false - if (border != other.border) return false - if (fullscreenControlButtonsBackground != other.fullscreenControlButtonsBackground) return false - if (titlePaneButtonHoverBackground != other.titlePaneButtonHoverBackground) return false - if (titlePaneButtonPressBackground != other.titlePaneButtonPressBackground) return false - if (titlePaneCloseButtonHoverBackground != other.titlePaneCloseButtonHoverBackground) return false - if (titlePaneCloseButtonPressBackground != other.titlePaneCloseButtonPressBackground) return false - if (iconButtonHoverBackground != other.iconButtonHoverBackground) return false - if (iconButtonPressBackground != other.iconButtonPressBackground) return false - if (dropdownHoverBackground != other.dropdownHoverBackground) return false - if (dropdownPressBackground != other.dropdownPressBackground) return false - - return true - } - companion object { @Composable @@ -298,41 +206,41 @@ class IntUiTitleBarColors( borderColor: Color = IntUiLightTheme.colors.grey(4), fullscreenControlButtonsBackground: Color = Color(0xFF7A7B80), // Color hex from - // com.intellij.util.ui.JBUI.CurrentTheme.CustomFrameDecorations.titlePaneButtonHoverBackground - titlePaneButtonHoverBackground: Color = Color(0x1AFFFFFF), + // com.intellij.util.ui.JBUI.CurrentTheme.CustomFrameDecorations.titlePaneButtonHoveredBackground + titlePaneButtonHoveredBackground: Color = Color(0x1AFFFFFF), // Same as - // com.intellij.util.ui.JBUI.CurrentTheme.CustomFrameDecorations.titlePaneButtonPressBackground - titlePaneButtonPressBackground: Color = titlePaneButtonHoverBackground, + // com.intellij.util.ui.JBUI.CurrentTheme.CustomFrameDecorations.titlePaneButtonPressedBackground + titlePaneButtonPressedBackground: Color = titlePaneButtonHoveredBackground, // Color hex from // com.intellij.openapi.wm.impl.customFrameDecorations.CustomFrameTitleButtons.closeStyleBuilder - titlePaneCloseButtonHoverBackground: Color = Color(0xFFE81123), - titlePaneCloseButtonPressBackground: Color = Color(0xFFF1707A), + titlePaneCloseButtonHoveredBackground: Color = Color(0xFFE81123), + titlePaneCloseButtonPressedBackground: Color = Color(0xFFF1707A), - iconButtonHoverBackground: Color = IntUiLightTheme.colors.grey(3), - iconButtonPressBackground: Color = IntUiLightTheme.colors.grey(3), + iconButtonHoveredBackground: Color = IntUiLightTheme.colors.grey(3), + iconButtonPressedBackground: Color = IntUiLightTheme.colors.grey(3), - // There are two fields in theme.json: transparentHoverBackground and hoverBackground, + // There are two fields in theme.json: transparentHoveredBackground and hoveredBackground, // but in com.intellij.ide.ui.laf.darcula.ui.ToolbarComboWidgetUI#paintBackground, - // transparentHoverBackground is used first, which is guessed to be due to the gradient background + // transparentHoveredBackground is used first, which is guessed to be due to the gradient background // caused by the project color of the titlebar, which makes the pure color background look strange - // in the area. In order to simplify the use in Jewel, here directly use transparentHoverBackground - // as hoverBackground. - dropdownHoverBackground: Color = Color(0x1AFFFFFF), - dropdownPressBackground: Color = dropdownHoverBackground, + // in the area. In order to simplify the use in Jewel, here directly use transparentHoveredBackground + // as hoveredBackground. + dropdownHoveredBackground: Color = Color(0x1AFFFFFF), + dropdownPressedBackground: Color = dropdownHoveredBackground, ) = IntUiTitleBarColors( background = backgroundColor, inactiveBackground = inactiveBackground, content = contentColor, border = borderColor, fullscreenControlButtonsBackground = fullscreenControlButtonsBackground, - titlePaneButtonHoverBackground = titlePaneButtonHoverBackground, - titlePaneButtonPressBackground = titlePaneButtonPressBackground, - titlePaneCloseButtonHoverBackground = titlePaneCloseButtonHoverBackground, - titlePaneCloseButtonPressBackground = titlePaneCloseButtonPressBackground, - iconButtonHoverBackground = iconButtonHoverBackground, - iconButtonPressBackground = iconButtonPressBackground, - dropdownHoverBackground = dropdownHoverBackground, - dropdownPressBackground = dropdownPressBackground, + titlePaneButtonHoveredBackground = titlePaneButtonHoveredBackground, + titlePaneButtonPressedBackground = titlePaneButtonPressedBackground, + titlePaneCloseButtonHoveredBackground = titlePaneCloseButtonHoveredBackground, + titlePaneCloseButtonPressedBackground = titlePaneCloseButtonPressedBackground, + iconButtonHoveredBackground = iconButtonHoveredBackground, + iconButtonPressedBackground = iconButtonPressedBackground, + dropdownHoveredBackground = dropdownHoveredBackground, + dropdownPressedBackground = dropdownPressedBackground, ) @Composable @@ -342,28 +250,28 @@ class IntUiTitleBarColors( fullscreenControlButtonsBackground: Color = Color(0xFF7A7B80), contentColor: Color = IntUiLightTheme.colors.grey(1), borderColor: Color = IntUiLightTheme.colors.grey(11), - titlePaneButtonHoverBackground: Color = Color(0x1A000000), - titlePaneButtonPressBackground: Color = titlePaneButtonHoverBackground, - titlePaneCloseButtonHoverBackground: Color = Color(0xFFE81123), - titlePaneCloseButtonPressBackground: Color = Color(0xFFF1707A), - iconButtonHoverBackground: Color = IntUiLightTheme.colors.grey(12), - iconButtonPressBackground: Color = IntUiLightTheme.colors.grey(11), - dropdownHoverBackground: Color = Color(0x0D000000), - dropdownPressBackground: Color = dropdownHoverBackground, + titlePaneButtonHoveredBackground: Color = Color(0x1A000000), + titlePaneButtonPressedBackground: Color = titlePaneButtonHoveredBackground, + titlePaneCloseButtonHoveredBackground: Color = Color(0xFFE81123), + titlePaneCloseButtonPressedBackground: Color = Color(0xFFF1707A), + iconButtonHoveredBackground: Color = IntUiLightTheme.colors.grey(12), + iconButtonPressedBackground: Color = IntUiLightTheme.colors.grey(11), + dropdownHoveredBackground: Color = Color(0x0D000000), + dropdownPressedBackground: Color = dropdownHoveredBackground, ) = IntUiTitleBarColors( background = backgroundColor, inactiveBackground = inactiveBackground, content = contentColor, border = borderColor, fullscreenControlButtonsBackground = fullscreenControlButtonsBackground, - titlePaneButtonHoverBackground = titlePaneButtonHoverBackground, - titlePaneButtonPressBackground = titlePaneButtonPressBackground, - titlePaneCloseButtonHoverBackground = titlePaneCloseButtonHoverBackground, - titlePaneCloseButtonPressBackground = titlePaneCloseButtonPressBackground, - iconButtonHoverBackground = iconButtonHoverBackground, - iconButtonPressBackground = iconButtonPressBackground, - dropdownHoverBackground = dropdownHoverBackground, - dropdownPressBackground = dropdownPressBackground, + titlePaneButtonHoveredBackground = titlePaneButtonHoveredBackground, + titlePaneButtonPressedBackground = titlePaneButtonPressedBackground, + titlePaneCloseButtonHoveredBackground = titlePaneCloseButtonHoveredBackground, + titlePaneCloseButtonPressedBackground = titlePaneCloseButtonPressedBackground, + iconButtonHoveredBackground = iconButtonHoveredBackground, + iconButtonPressedBackground = iconButtonPressedBackground, + dropdownHoveredBackground = dropdownHoveredBackground, + dropdownPressedBackground = dropdownPressedBackground, ) @Composable @@ -373,67 +281,43 @@ class IntUiTitleBarColors( fullscreenControlButtonsBackground: Color = Color(0xFF575A5C), contentColor: Color = IntUiDarkTheme.colors.grey(12), borderColor: Color = IntUiDarkTheme.colors.grey(4), - titlePaneButtonHoverBackground: Color = Color(0x1AFFFFFF), - titlePaneButtonPressBackground: Color = titlePaneButtonHoverBackground, - titlePaneCloseButtonHoverBackground: Color = Color(0xFFE81123), - titlePaneCloseButtonPressBackground: Color = Color(0xFFF1707A), - iconButtonHoverBackground: Color = IntUiLightTheme.colors.grey(3), - iconButtonPressBackground: Color = IntUiLightTheme.colors.grey(3), - dropdownHoverBackground: Color = Color(0x1AFFFFFF), - dropdownPressBackground: Color = dropdownHoverBackground, + titlePaneButtonHoveredBackground: Color = Color(0x1AFFFFFF), + titlePaneButtonPressedBackground: Color = titlePaneButtonHoveredBackground, + titlePaneCloseButtonHoveredBackground: Color = Color(0xFFE81123), + titlePaneCloseButtonPressedBackground: Color = Color(0xFFF1707A), + iconButtonHoveredBackground: Color = IntUiLightTheme.colors.grey(3), + iconButtonPressedBackground: Color = IntUiLightTheme.colors.grey(3), + dropdownHoveredBackground: Color = Color(0x1AFFFFFF), + dropdownPressedBackground: Color = dropdownHoveredBackground, ) = IntUiTitleBarColors( background = backgroundColor, inactiveBackground = inactiveBackground, content = contentColor, border = borderColor, fullscreenControlButtonsBackground = fullscreenControlButtonsBackground, - titlePaneButtonHoverBackground = titlePaneButtonHoverBackground, - titlePaneButtonPressBackground = titlePaneButtonPressBackground, - titlePaneCloseButtonHoverBackground = titlePaneCloseButtonHoverBackground, - titlePaneCloseButtonPressBackground = titlePaneCloseButtonPressBackground, - iconButtonHoverBackground = iconButtonHoverBackground, - iconButtonPressBackground = iconButtonPressBackground, - dropdownHoverBackground = dropdownHoverBackground, - dropdownPressBackground = dropdownPressBackground, + titlePaneButtonHoveredBackground = titlePaneButtonHoveredBackground, + titlePaneButtonPressedBackground = titlePaneButtonPressedBackground, + titlePaneCloseButtonHoveredBackground = titlePaneCloseButtonHoveredBackground, + titlePaneCloseButtonPressedBackground = titlePaneCloseButtonPressedBackground, + iconButtonHoveredBackground = iconButtonHoveredBackground, + iconButtonPressedBackground = iconButtonPressedBackground, + dropdownHoveredBackground = dropdownHoveredBackground, + dropdownPressedBackground = dropdownPressedBackground, ) } } -@Stable @Immutable +@GenerateDataFunctions class IntUiTitleBarMetrics( override val height: Dp = 40.dp, override val gradientStartX: Dp = (-100).dp, override val gradientEndX: Dp = 400.dp, override val titlePaneButtonSize: DpSize = DpSize(40.dp, 40.dp), -) : TitleBarMetrics { - - override fun hashCode(): Int { - var result = height.hashCode() - result = 31 * result + gradientStartX.hashCode() - result = 31 * result + gradientEndX.hashCode() - result = 31 * result + titlePaneButtonSize.hashCode() - return result - } - - override fun equals(other: Any?): Boolean { - if (this === other) return true - if (other !is IntUiTitleBarMetrics) return false - - if (height != other.height) return false - if (gradientStartX != other.gradientStartX) return false - if (gradientEndX != other.gradientEndX) return false - if (titlePaneButtonSize != other.titlePaneButtonSize) return false - - return true - } - - override fun toString(): String = "IntUiTitleBarMetrics(height=$height, " + - "gradientStartX=$gradientStartX, " + - "gradientEndX=$gradientEndX, " + - "titlePaneButtonSize=$titlePaneButtonSize)" -} +) : TitleBarMetrics +@Immutable +@GenerateDataFunctions class IntUiTitleBarIcons( override val minimizeButton: PainterProvider, override val maximizeButton: PainterProvider, @@ -441,31 +325,6 @@ class IntUiTitleBarIcons( override val closeButton: PainterProvider, ) : TitleBarIcons { - override fun hashCode(): Int { - var result = minimizeButton.hashCode() - result = 31 * result + maximizeButton.hashCode() - result = 31 * result + restoreButton.hashCode() - result = 31 * result + closeButton.hashCode() - return result - } - - override fun toString(): String = "IntUiTitleBarIcons(minimizeButton=$minimizeButton, " + - "maximizeButton=$maximizeButton, " + - "restoreButton=$restoreButton, " + - "closeButton=$closeButton)" - - override fun equals(other: Any?): Boolean { - if (this === other) return true - if (other !is IntUiTitleBarIcons) return false - - if (minimizeButton != other.minimizeButton) return false - if (maximizeButton != other.maximizeButton) return false - if (restoreButton != other.restoreButton) return false - if (closeButton != other.closeButton) return false - - return true - } - companion object { @Composable 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 ee2e2efeb..65ed058ba 100644 --- a/int-ui/int-ui-standalone/api/int-ui-standalone.api +++ b/int-ui/int-ui-standalone/api/int-ui-standalone.api @@ -66,7 +66,7 @@ public final class org/jetbrains/jewel/intui/standalone/IntUiOutlineColors$Compa public final class org/jetbrains/jewel/intui/standalone/IntUiTheme : org/jetbrains/jewel/intui/core/BaseIntUiTheme { public static final field $stable I public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/IntUiTheme; - public final fun darkComponentStyling (Lorg/jetbrains/jewel/styling/ButtonStyle;Lorg/jetbrains/jewel/styling/ButtonStyle;Lorg/jetbrains/jewel/styling/CheckboxStyle;Lorg/jetbrains/jewel/styling/ChipStyle;Lorg/jetbrains/jewel/styling/DividerStyle;Lorg/jetbrains/jewel/styling/DropdownStyle;Lorg/jetbrains/jewel/styling/GroupHeaderStyle;Lorg/jetbrains/jewel/styling/LabelledTextFieldStyle;Lorg/jetbrains/jewel/styling/LinkStyle;Lorg/jetbrains/jewel/styling/MenuStyle;Lorg/jetbrains/jewel/styling/HorizontalProgressBarStyle;Lorg/jetbrains/jewel/styling/RadioButtonStyle;Lorg/jetbrains/jewel/styling/ScrollbarStyle;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaStyle;Lorg/jetbrains/jewel/styling/TextFieldStyle;Lorg/jetbrains/jewel/styling/LazyTreeStyle;Lorg/jetbrains/jewel/styling/TabStyle;Lorg/jetbrains/jewel/styling/TabStyle;Lorg/jetbrains/jewel/styling/CircularProgressStyle;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipStyle;Lorg/jetbrains/jewel/styling/IconButtonStyle;Landroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/IntelliJComponentStyling; + public final fun darkComponentStyling (Lorg/jetbrains/jewel/styling/CheckboxStyle;Lorg/jetbrains/jewel/styling/ChipStyle;Lorg/jetbrains/jewel/styling/CircularProgressStyle;Lorg/jetbrains/jewel/styling/ButtonStyle;Lorg/jetbrains/jewel/styling/TabStyle;Lorg/jetbrains/jewel/styling/DividerStyle;Lorg/jetbrains/jewel/styling/DropdownStyle;Lorg/jetbrains/jewel/styling/TabStyle;Lorg/jetbrains/jewel/styling/GroupHeaderStyle;Lorg/jetbrains/jewel/styling/HorizontalProgressBarStyle;Lorg/jetbrains/jewel/styling/IconButtonStyle;Lorg/jetbrains/jewel/styling/LabelledTextFieldStyle;Lorg/jetbrains/jewel/styling/LazyTreeStyle;Lorg/jetbrains/jewel/styling/LinkStyle;Lorg/jetbrains/jewel/styling/MenuStyle;Lorg/jetbrains/jewel/styling/ButtonStyle;Lorg/jetbrains/jewel/styling/RadioButtonStyle;Lorg/jetbrains/jewel/styling/ScrollbarStyle;Lorg/jetbrains/jewel/styling/TextAreaStyle;Lorg/jetbrains/jewel/styling/TextFieldStyle;Lorg/jetbrains/jewel/styling/TooltipStyle;Lorg/jetbrains/jewel/styling/DropdownStyle;Landroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/IntelliJComponentStyling; public final fun darkThemeDefinition-V-9fs2A (Lorg/jetbrains/jewel/GlobalColors;Lorg/jetbrains/jewel/GlobalMetrics;Lorg/jetbrains/jewel/intui/core/IntUiThemeColorPalette;Lorg/jetbrains/jewel/IntelliJThemeIconData;Landroidx/compose/ui/text/TextStyle;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/core/IntUiThemeDefinition; public final fun defaultComponentStyling (Lorg/jetbrains/jewel/intui/core/IntUiThemeDefinition;Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/IntelliJComponentStyling; public fun getCheckboxStyle (Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/styling/CheckboxStyle; @@ -97,7 +97,7 @@ public final class org/jetbrains/jewel/intui/standalone/IntUiTheme : org/jetbrai public fun getTreeStyle (Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/styling/LazyTreeStyle; public fun isDark (Landroidx/compose/runtime/Composer;I)Z public fun isSwingCompatMode (Landroidx/compose/runtime/Composer;I)Z - public final fun lightComponentStyling (Lorg/jetbrains/jewel/styling/ButtonStyle;Lorg/jetbrains/jewel/styling/ButtonStyle;Lorg/jetbrains/jewel/styling/CheckboxStyle;Lorg/jetbrains/jewel/styling/ChipStyle;Lorg/jetbrains/jewel/styling/DividerStyle;Lorg/jetbrains/jewel/styling/DropdownStyle;Lorg/jetbrains/jewel/styling/GroupHeaderStyle;Lorg/jetbrains/jewel/styling/LabelledTextFieldStyle;Lorg/jetbrains/jewel/styling/LinkStyle;Lorg/jetbrains/jewel/styling/MenuStyle;Lorg/jetbrains/jewel/styling/HorizontalProgressBarStyle;Lorg/jetbrains/jewel/styling/RadioButtonStyle;Lorg/jetbrains/jewel/styling/ScrollbarStyle;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaStyle;Lorg/jetbrains/jewel/styling/TextFieldStyle;Lorg/jetbrains/jewel/styling/LazyTreeStyle;Lorg/jetbrains/jewel/styling/TabStyle;Lorg/jetbrains/jewel/styling/TabStyle;Lorg/jetbrains/jewel/styling/CircularProgressStyle;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipStyle;Lorg/jetbrains/jewel/styling/IconButtonStyle;Landroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/IntelliJComponentStyling; + public final fun lightComponentStyling (Lorg/jetbrains/jewel/styling/CheckboxStyle;Lorg/jetbrains/jewel/styling/ChipStyle;Lorg/jetbrains/jewel/styling/CircularProgressStyle;Lorg/jetbrains/jewel/styling/ButtonStyle;Lorg/jetbrains/jewel/styling/TabStyle;Lorg/jetbrains/jewel/styling/DividerStyle;Lorg/jetbrains/jewel/styling/DropdownStyle;Lorg/jetbrains/jewel/styling/TabStyle;Lorg/jetbrains/jewel/styling/GroupHeaderStyle;Lorg/jetbrains/jewel/styling/HorizontalProgressBarStyle;Lorg/jetbrains/jewel/styling/IconButtonStyle;Lorg/jetbrains/jewel/styling/LabelledTextFieldStyle;Lorg/jetbrains/jewel/styling/LazyTreeStyle;Lorg/jetbrains/jewel/styling/LinkStyle;Lorg/jetbrains/jewel/styling/MenuStyle;Lorg/jetbrains/jewel/styling/ButtonStyle;Lorg/jetbrains/jewel/styling/RadioButtonStyle;Lorg/jetbrains/jewel/styling/ScrollbarStyle;Lorg/jetbrains/jewel/styling/TextAreaStyle;Lorg/jetbrains/jewel/styling/TextFieldStyle;Lorg/jetbrains/jewel/styling/TooltipStyle;Lorg/jetbrains/jewel/styling/DropdownStyle;Landroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/IntelliJComponentStyling; public final fun lightThemeDefinition-V-9fs2A (Lorg/jetbrains/jewel/GlobalColors;Lorg/jetbrains/jewel/GlobalMetrics;Lorg/jetbrains/jewel/intui/core/IntUiThemeColorPalette;Lorg/jetbrains/jewel/IntelliJThemeIconData;Landroidx/compose/ui/text/TextStyle;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/core/IntUiThemeDefinition; } @@ -123,1383 +123,290 @@ public final class org/jetbrains/jewel/intui/standalone/StandalonePainterHintsPr public final class org/jetbrains/jewel/intui/standalone/StandalonePainterHintsProvider$Companion { } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors : org/jetbrains/jewel/styling/ButtonColors { - public static final field $stable I - public synthetic fun (Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Lkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun backgroundFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun borderFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun contentFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun equals (Ljava/lang/Object;)Z - public fun getBackground ()Landroidx/compose/ui/graphics/Brush; - public fun getBackgroundDisabled ()Landroidx/compose/ui/graphics/Brush; - public fun getBackgroundFocused ()Landroidx/compose/ui/graphics/Brush; - public fun getBackgroundHovered ()Landroidx/compose/ui/graphics/Brush; - public fun getBackgroundPressed ()Landroidx/compose/ui/graphics/Brush; - public fun getBorder ()Landroidx/compose/ui/graphics/Brush; - public fun getBorderDisabled ()Landroidx/compose/ui/graphics/Brush; - public fun getBorderFocused ()Landroidx/compose/ui/graphics/Brush; - public fun getBorderHovered ()Landroidx/compose/ui/graphics/Brush; - public fun getBorderPressed ()Landroidx/compose/ui/graphics/Brush; - public fun getContent-0d7_KjU ()J - public fun getContentDisabled-0d7_KjU ()J - public fun getContentFocused-0d7_KjU ()J - public fun getContentHovered-0d7_KjU ()J - public fun getContentPressed-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiButtonStylingKt { + public static final fun default-H1KY9o8 (Lorg/jetbrains/jewel/styling/ButtonMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JF)Lorg/jetbrains/jewel/styling/ButtonMetrics; + public static synthetic fun default-H1KY9o8$default (Lorg/jetbrains/jewel/styling/ButtonMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/ButtonMetrics; + public static final fun getDefault (Lorg/jetbrains/jewel/styling/ButtonColors$Companion;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDefaultButtonColorFactory; + public static final fun getDefault (Lorg/jetbrains/jewel/styling/ButtonStyle$Companion;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDefaultButtonStyleFactory; + public static final fun getOutlined (Lorg/jetbrains/jewel/styling/ButtonColors$Companion;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiOutlinedButtonColorFactory; + public static final fun getOutlined (Lorg/jetbrains/jewel/styling/ButtonStyle$Companion;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiOutlinedButtonStyleFactory; + public static final fun outlined-H1KY9o8 (Lorg/jetbrains/jewel/styling/ButtonMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JF)Lorg/jetbrains/jewel/styling/ButtonMetrics; + public static synthetic fun outlined-H1KY9o8$default (Lorg/jetbrains/jewel/styling/ButtonMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/ButtonMetrics; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors$Default { - public static final field $stable I - public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors$Default; - public final fun dark-AckW74Y (Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors; - public final fun light-AckW74Y (Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors; +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxStylingKt { + public static final fun dark (Lorg/jetbrains/jewel/styling/CheckboxIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/CheckboxIcons; + public static final fun dark (Lorg/jetbrains/jewel/styling/CheckboxStyle$Companion;Lorg/jetbrains/jewel/styling/CheckboxColors;Lorg/jetbrains/jewel/styling/CheckboxMetrics;Lorg/jetbrains/jewel/styling/CheckboxIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/CheckboxStyle; + public static final fun dark-GyCwops (Lorg/jetbrains/jewel/styling/CheckboxColors$Companion;JJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/CheckboxColors; + public static final fun defaults-RRvNTYw (Lorg/jetbrains/jewel/styling/CheckboxMetrics$Companion;JLandroidx/compose/foundation/shape/CornerSize;JJF)Lorg/jetbrains/jewel/styling/CheckboxMetrics; + public static synthetic fun defaults-RRvNTYw$default (Lorg/jetbrains/jewel/styling/CheckboxMetrics$Companion;JLandroidx/compose/foundation/shape/CornerSize;JJFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/CheckboxMetrics; + public static final fun light (Lorg/jetbrains/jewel/styling/CheckboxIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/CheckboxIcons; + public static final fun light (Lorg/jetbrains/jewel/styling/CheckboxStyle$Companion;Lorg/jetbrains/jewel/styling/CheckboxColors;Lorg/jetbrains/jewel/styling/CheckboxMetrics;Lorg/jetbrains/jewel/styling/CheckboxIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/CheckboxStyle; + public static final fun light-GyCwops (Lorg/jetbrains/jewel/styling/CheckboxColors$Companion;JJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/CheckboxColors; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors$Outlined { - public static final field $stable I - public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors$Outlined; - public final fun dark-AckW74Y (Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors; - public final fun light-AckW74Y (Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors; +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiChipStylingKt { + public static final fun dark (Lorg/jetbrains/jewel/styling/ChipStyle$Companion;Lorg/jetbrains/jewel/styling/ChipColors;Lorg/jetbrains/jewel/styling/ChipMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/ChipStyle; + public static final fun dark-Sy8uPd4 (Lorg/jetbrains/jewel/styling/ChipColors$Companion;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIIII)Lorg/jetbrains/jewel/styling/ChipColors; + public static final fun defaults-oZzcvok (Lorg/jetbrains/jewel/styling/ChipMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;FF)Lorg/jetbrains/jewel/styling/ChipMetrics; + public static synthetic fun defaults-oZzcvok$default (Lorg/jetbrains/jewel/styling/ChipMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;FFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/ChipMetrics; + public static final fun light (Lorg/jetbrains/jewel/styling/ChipStyle$Companion;Lorg/jetbrains/jewel/styling/ChipColors;Lorg/jetbrains/jewel/styling/ChipMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/ChipStyle; + public static final fun light-Sy8uPd4 (Lorg/jetbrains/jewel/styling/ChipColors$Companion;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIIII)Lorg/jetbrains/jewel/styling/ChipColors; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics : org/jetbrains/jewel/styling/ButtonMetrics { - public static final field $stable I - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getBorderWidth-D9Ej5fM ()F - public fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getMinSize-MYxV2XQ ()J - public fun getPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiCircularProgressStylingKt { + public static final fun dark-O7O2-qc (Lorg/jetbrains/jewel/styling/CircularProgressStyle$Companion;JJ)Lorg/jetbrains/jewel/styling/CircularProgressStyle; + public static synthetic fun dark-O7O2-qc$default (Lorg/jetbrains/jewel/styling/CircularProgressStyle$Companion;JJILjava/lang/Object;)Lorg/jetbrains/jewel/styling/CircularProgressStyle; + public static final fun light-O7O2-qc (Lorg/jetbrains/jewel/styling/CircularProgressStyle$Companion;JJ)Lorg/jetbrains/jewel/styling/CircularProgressStyle; + public static synthetic fun light-O7O2-qc$default (Lorg/jetbrains/jewel/styling/CircularProgressStyle$Companion;JJILjava/lang/Object;)Lorg/jetbrains/jewel/styling/CircularProgressStyle; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics$Default { +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDefaultButtonColorFactory { public static final field $stable I - public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics$Default; - public final fun create-wlUqFBo (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JF)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics; - public static synthetic fun create-wlUqFBo$default (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics$Default;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFILjava/lang/Object;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics; + public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDefaultButtonColorFactory; + public final fun dark-AckW74Y (Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/styling/ButtonColors; + public final fun light-AckW74Y (Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/styling/ButtonColors; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics$Outlined { +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDefaultButtonStyleFactory { public static final field $stable I - public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics$Outlined; - public final fun create-wlUqFBo (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JF)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics; - public static synthetic fun create-wlUqFBo$default (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics$Outlined;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFILjava/lang/Object;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics; + public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDefaultButtonStyleFactory; + public final fun dark (Lorg/jetbrains/jewel/styling/ButtonColors;Lorg/jetbrains/jewel/styling/ButtonMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/ButtonStyle; + public final fun light (Lorg/jetbrains/jewel/styling/ButtonColors;Lorg/jetbrains/jewel/styling/ButtonMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/ButtonStyle; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiButtonStyle : org/jetbrains/jewel/styling/ButtonStyle { +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDefaultDropdownColorsFactory { public static final field $stable I - public fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/ButtonColors; - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/ButtonMetrics; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; + public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDefaultDropdownColorsFactory; + public final fun dark-Xf8s2Ik (JJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/styling/DropdownColors; + public final fun light-Xf8s2Ik (JJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/styling/DropdownColors; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiButtonStyle$Default { +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDefaultDropdownStyleFactory { public static final field $stable I - public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonStyle$Default; - public final fun dark (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/ButtonStyle; - public final fun light (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/ButtonStyle; + public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDefaultDropdownStyleFactory; + public final fun dark (Lorg/jetbrains/jewel/styling/DropdownColors;Lorg/jetbrains/jewel/styling/DropdownMetrics;Lorg/jetbrains/jewel/styling/DropdownIcons;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/styling/MenuStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/DropdownStyle; + public final fun light (Lorg/jetbrains/jewel/styling/DropdownColors;Lorg/jetbrains/jewel/styling/DropdownMetrics;Lorg/jetbrains/jewel/styling/DropdownIcons;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/styling/MenuStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/DropdownStyle; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiButtonStyle$Outlined { +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDefaultTabColorsFactory { public static final field $stable I - public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonStyle$Outlined; - public final fun dark (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/ButtonStyle; - public final fun light (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiButtonMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/ButtonStyle; + public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDefaultTabColorsFactory; + public final fun dark-58FyvDQ (JJJJJJJJJJJJJJJJJJ)Lorg/jetbrains/jewel/styling/TabColors; + public static synthetic fun dark-58FyvDQ$default (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDefaultTabColorsFactory;JJJJJJJJJJJJJJJJJJILjava/lang/Object;)Lorg/jetbrains/jewel/styling/TabColors; + public final fun light-58FyvDQ (JJJJJJJJJJJJJJJJJJ)Lorg/jetbrains/jewel/styling/TabColors; + public static synthetic fun light-58FyvDQ$default (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDefaultTabColorsFactory;JJJJJJJJJJJJJJJJJJILjava/lang/Object;)Lorg/jetbrains/jewel/styling/TabColors; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxColors : org/jetbrains/jewel/styling/CheckboxColors { +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDefaultTabStyleFactory { public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxColors$Companion; - public synthetic fun (JJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun backgroundFor-An7rHrs (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun contentFor-An7rHrs (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun equals (Ljava/lang/Object;)Z - public fun getCheckboxBackground-0d7_KjU ()J - public fun getCheckboxBackgroundDisabled-0d7_KjU ()J - public fun getCheckboxBackgroundSelected-0d7_KjU ()J - public fun getContent-0d7_KjU ()J - public fun getContentDisabled-0d7_KjU ()J - public fun getContentSelected-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; + public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDefaultTabStyleFactory; + public final fun dark (Lorg/jetbrains/jewel/styling/TabColors;Lorg/jetbrains/jewel/styling/TabMetrics;Lorg/jetbrains/jewel/styling/TabIcons;Lorg/jetbrains/jewel/styling/TabContentAlpha;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/TabStyle; + public final fun light (Lorg/jetbrains/jewel/styling/TabColors;Lorg/jetbrains/jewel/styling/TabMetrics;Lorg/jetbrains/jewel/styling/TabIcons;Lorg/jetbrains/jewel/styling/TabContentAlpha;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/TabStyle; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxColors$Companion { - public final fun dark-5tl4gsc (JJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxColors; - public final fun light-5tl4gsc (JJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxIcons : org/jetbrains/jewel/styling/CheckboxIcons { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxIcons$Companion; - public fun (Lorg/jetbrains/jewel/painter/PainterProvider;)V - public fun equals (Ljava/lang/Object;)Z - public fun getCheckbox ()Lorg/jetbrains/jewel/painter/PainterProvider; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxIcons$Companion { - public final fun checkbox (Ljava/lang/String;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/painter/PainterProvider; - public final fun dark (Lorg/jetbrains/jewel/painter/PainterProvider;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxIcons; - public final fun light (Lorg/jetbrains/jewel/painter/PainterProvider;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxIcons; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxMetrics : org/jetbrains/jewel/styling/CheckboxMetrics { - public static final field $stable I - public synthetic fun (JLandroidx/compose/foundation/shape/CornerSize;JJFILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (JLandroidx/compose/foundation/shape/CornerSize;JJFLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getCheckboxCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getCheckboxSize-MYxV2XQ ()J - public fun getIconContentGap-D9Ej5fM ()F - public fun getOutlineOffset-RKDOV3M ()J - public fun getOutlineSize-MYxV2XQ ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxStyle : org/jetbrains/jewel/styling/CheckboxStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxStyle$Companion; - public fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxIcons;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/CheckboxColors; - public fun getIcons ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxIcons; - public synthetic fun getIcons ()Lorg/jetbrains/jewel/styling/CheckboxIcons; - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/CheckboxMetrics; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxStyle$Companion { - public final fun dark (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxStyle; - public final fun light (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxStyle; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiChipColors : org/jetbrains/jewel/styling/ChipColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiChipColors$Companion; - public synthetic fun (Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJJJJJJJJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun backgroundFor-z6rh5VY (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun borderFor-z6rh5VY (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun contentFor-z6rh5VY (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun equals (Ljava/lang/Object;)Z - public fun getBackground ()Landroidx/compose/ui/graphics/Brush; - public fun getBackgroundDisabled ()Landroidx/compose/ui/graphics/Brush; - public fun getBackgroundFocused ()Landroidx/compose/ui/graphics/Brush; - public fun getBackgroundHovered ()Landroidx/compose/ui/graphics/Brush; - public fun getBackgroundPressed ()Landroidx/compose/ui/graphics/Brush; - public fun getBackgroundSelected ()Landroidx/compose/ui/graphics/Brush; - public fun getBackgroundSelectedDisabled ()Landroidx/compose/ui/graphics/Brush; - public fun getBackgroundSelectedFocused ()Landroidx/compose/ui/graphics/Brush; - public fun getBackgroundSelectedHovered ()Landroidx/compose/ui/graphics/Brush; - public fun getBackgroundSelectedPressed ()Landroidx/compose/ui/graphics/Brush; - public fun getBorder-0d7_KjU ()J - public fun getBorderDisabled-0d7_KjU ()J - public fun getBorderFocused-0d7_KjU ()J - public fun getBorderHovered-0d7_KjU ()J - public fun getBorderPressed-0d7_KjU ()J - public fun getBorderSelected-0d7_KjU ()J - public fun getBorderSelectedDisabled-0d7_KjU ()J - public fun getBorderSelectedFocused-0d7_KjU ()J - public fun getBorderSelectedHovered-0d7_KjU ()J - public fun getBorderSelectedPressed-0d7_KjU ()J - public fun getContent-0d7_KjU ()J - public fun getContentDisabled-0d7_KjU ()J - public fun getContentFocused-0d7_KjU ()J - public fun getContentHovered-0d7_KjU ()J - public fun getContentPressed-0d7_KjU ()J - public fun getContentSelected-0d7_KjU ()J - public fun getContentSelectedDisabled-0d7_KjU ()J - public fun getContentSelectedFocused-0d7_KjU ()J - public fun getContentSelectedHovered-0d7_KjU ()J - public fun getContentSelectedPressed-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiChipColors$Companion { - public final fun dark-JwitS0g (Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIIII)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiChipColors; - public final fun light-JwitS0g (Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIIII)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiChipColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiChipMetrics : org/jetbrains/jewel/styling/ChipMetrics { - public static final field $stable I - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;FFILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;FFLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getBorderWidth-D9Ej5fM ()F - public fun getBorderWidthSelected-D9Ej5fM ()F - public fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiChipStyle : org/jetbrains/jewel/styling/ChipStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiChipStyle$Companion; - public fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiChipColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiChipMetrics;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiChipColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/ChipColors; - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiChipMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/ChipMetrics; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiChipStyle$Companion { - public final fun dark (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiChipColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiChipMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiChipStyle; - public final fun light (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiChipColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiChipMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiChipStyle; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiCircularProgressStyle : org/jetbrains/jewel/styling/CircularProgressStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCircularProgressStyle$Companion; - public synthetic fun (JJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColor-0d7_KjU ()J - public fun getFrameTime-UwyO8pc ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiCircularProgressStyle$Companion { - public final fun dark-1Vw8gao (JJ)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCircularProgressStyle; - public static synthetic fun dark-1Vw8gao$default (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCircularProgressStyle$Companion;JJILjava/lang/Object;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCircularProgressStyle; - public final fun light-1Vw8gao (JJ)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCircularProgressStyle; - public static synthetic fun light-1Vw8gao$default (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCircularProgressStyle$Companion;JJILjava/lang/Object;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiCircularProgressStyle; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDividerMetrics : org/jetbrains/jewel/styling/DividerMetrics { - public static final field $stable I - public synthetic fun (FFILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (FFLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getStartIndent-D9Ej5fM ()F - public fun getThickness-D9Ej5fM ()F - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDividerStyle : org/jetbrains/jewel/styling/DividerStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDividerStyle$Companion; - public synthetic fun (JLorg/jetbrains/jewel/styling/DividerMetrics;Lkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColor-0d7_KjU ()J - public fun getMetrics ()Lorg/jetbrains/jewel/styling/DividerMetrics; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDividerStyle$Companion { - public final fun dark-3J-VO9M (JLorg/jetbrains/jewel/intui/standalone/styling/IntUiDividerMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDividerStyle; - public final fun light-3J-VO9M (JLorg/jetbrains/jewel/intui/standalone/styling/IntUiDividerMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDividerStyle; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDropdownColors : org/jetbrains/jewel/styling/DropdownColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownColors$Companion; - public synthetic fun (JJJJJJJJJJJJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun backgroundFor-7I1Rs2w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun borderFor-7I1Rs2w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun contentFor-7I1Rs2w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun equals (Ljava/lang/Object;)Z - public fun getBackground-0d7_KjU ()J - public fun getBackgroundDisabled-0d7_KjU ()J - public fun getBackgroundFocused-0d7_KjU ()J - public fun getBackgroundHovered-0d7_KjU ()J - public fun getBackgroundPressed-0d7_KjU ()J - public fun getBorder-0d7_KjU ()J - public fun getBorderDisabled-0d7_KjU ()J - public fun getBorderFocused-0d7_KjU ()J - public fun getBorderHovered-0d7_KjU ()J - public fun getBorderPressed-0d7_KjU ()J - public fun getContent-0d7_KjU ()J - public fun getContentDisabled-0d7_KjU ()J - public fun getContentFocused-0d7_KjU ()J - public fun getContentHovered-0d7_KjU ()J - public fun getContentPressed-0d7_KjU ()J - public fun getIconTint-0d7_KjU ()J - public fun getIconTintDisabled-0d7_KjU ()J - public fun getIconTintFocused-0d7_KjU ()J - public fun getIconTintHovered-0d7_KjU ()J - public fun getIconTintPressed-0d7_KjU ()J - public fun hashCode ()I - public fun iconTintFor-7I1Rs2w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDropdownColors$Companion { - public final fun dark-Xf8s2Ik (JJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownColors; - public final fun light-Xf8s2Ik (JJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownColors; - public final fun undecorated-5tl4gsc (JJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDropdownIcons : org/jetbrains/jewel/styling/DropdownIcons { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownIcons$Companion; - public fun (Lorg/jetbrains/jewel/painter/PainterProvider;)V - public fun equals (Ljava/lang/Object;)Z - public fun getChevronDown ()Lorg/jetbrains/jewel/painter/PainterProvider; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDropdownIcons$Companion { - public final fun chevronDown (Ljava/lang/String;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/painter/PainterProvider; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDropdownMetrics : org/jetbrains/jewel/styling/DropdownMetrics { - public static final field $stable I - public synthetic fun (JJLandroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;FILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (JJLandroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;FLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getArrowMinSize-MYxV2XQ ()J - public fun getBorderWidth-D9Ej5fM ()F - public fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getMinSize-MYxV2XQ ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDropdownStyle : org/jetbrains/jewel/styling/DropdownStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownStyle$Companion; - public fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownIcons;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/styling/MenuStyle;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/DropdownColors; - public fun getIcons ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownIcons; - public synthetic fun getIcons ()Lorg/jetbrains/jewel/styling/DropdownIcons; - public fun getMenuStyle ()Lorg/jetbrains/jewel/styling/MenuStyle; - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/DropdownMetrics; - public fun getTextStyle ()Landroidx/compose/ui/text/TextStyle; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDropdownStyle$Companion { - public final fun dark (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownIcons;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/styling/MenuStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownStyle; - public final fun light (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownIcons;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/styling/MenuStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownStyle; - public final fun undecorated (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownIcons;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/styling/MenuStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownStyle; +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDividerStyleKt { + public static final fun dark-3IgeMak (Lorg/jetbrains/jewel/styling/DividerStyle$Companion;JLorg/jetbrains/jewel/styling/DividerMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/DividerStyle; + public static final fun light-3IgeMak (Lorg/jetbrains/jewel/styling/DividerStyle$Companion;JLorg/jetbrains/jewel/styling/DividerMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/DividerStyle; } public final class org/jetbrains/jewel/intui/standalone/styling/IntUiDropdownStylingKt { - public static final fun intUiDropdownIcons (Lorg/jetbrains/jewel/painter/PainterProvider;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDropdownIcons; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderColors : org/jetbrains/jewel/styling/GroupHeaderColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderColors$Companion; - public synthetic fun (JLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getDivider-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderColors$Companion { - public final fun dark-Iv8Zu3U (JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderColors; - public final fun light-Iv8Zu3U (JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderMetrics : org/jetbrains/jewel/styling/GroupHeaderMetrics { - public static final field $stable I - public synthetic fun (FFILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (FFLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getDividerThickness-D9Ej5fM ()F - public fun getIndent-D9Ej5fM ()F - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderStyle : org/jetbrains/jewel/styling/GroupHeaderStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderStyle$Companion; - public fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderMetrics;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/GroupHeaderColors; - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/GroupHeaderMetrics; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderStyle$Companion { - public final fun dark (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderStyle; - public final fun light (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderStyle; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarColors : org/jetbrains/jewel/styling/HorizontalProgressBarColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarColors$Companion; - public synthetic fun (JJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getIndeterminateBase-0d7_KjU ()J - public fun getIndeterminateHighlight-0d7_KjU ()J - public fun getProgress-0d7_KjU ()J - public fun getTrack-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarColors$Companion { - public final fun dark-ro_MJ88 (JJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarColors; - public final fun light-ro_MJ88 (JJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarMetrics : org/jetbrains/jewel/styling/HorizontalProgressBarMetrics { - public static final field $stable I - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;FFILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;FFLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getIndeterminateHighlightWidth-D9Ej5fM ()F - public fun getMinHeight-D9Ej5fM ()F - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarStyle : org/jetbrains/jewel/styling/HorizontalProgressBarStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarStyle$Companion; - public synthetic fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarMetrics;JLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/HorizontalProgressBarColors; - public fun getIndeterminateCycleDuration-UwyO8pc ()J - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/HorizontalProgressBarMetrics; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarStyle$Companion { - public final fun dark-WPi__2c (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarMetrics;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarStyle; - public final fun light-WPi__2c (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarMetrics;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarStyle; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonColors : org/jetbrains/jewel/styling/IconButtonColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonColors$Companion; - public synthetic fun (JJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun backgroundFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun borderFor-RO59lCw (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun equals (Ljava/lang/Object;)Z - public fun getBackground-0d7_KjU ()J - public fun getBackgroundDisabled-0d7_KjU ()J - public fun getBackgroundFocused-0d7_KjU ()J - public fun getBackgroundHovered-0d7_KjU ()J - public fun getBackgroundPressed-0d7_KjU ()J - public fun getBorder-0d7_KjU ()J - public fun getBorderDisabled-0d7_KjU ()J - public fun getBorderFocused-0d7_KjU ()J - public fun getBorderHovered-0d7_KjU ()J - public fun getBorderPressed-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonColors$Companion { - public final fun dark-q0g_0yA (JJJJJJJJJJLandroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonColors; - public final fun light-q0g_0yA (JJJJJJJJJJLandroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonMetrics : org/jetbrains/jewel/styling/IconButtonMetrics { - public static final field $stable I - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;FLandroidx/compose/foundation/layout/PaddingValues;JILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;FLandroidx/compose/foundation/layout/PaddingValues;JLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getBorderWidth-D9Ej5fM ()F - public fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getMinSize-MYxV2XQ ()J - public fun getPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonStyle : org/jetbrains/jewel/styling/IconButtonStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonStyle$Companion; - public fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonMetrics;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/IconButtonColors; - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/IconButtonMetrics; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonStyle$Companion { - public final fun dark (Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonStyle; - public final fun light (Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonStyle; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldColors : org/jetbrains/jewel/styling/LabelledTextFieldColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldColors$Companion; - public synthetic fun (JJJJJJJJJJJJJJJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun backgroundFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun borderFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun caretFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun contentFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun equals (Ljava/lang/Object;)Z - public fun getBackground-0d7_KjU ()J - public fun getBackgroundDisabled-0d7_KjU ()J - public fun getBackgroundFocused-0d7_KjU ()J - public fun getBackgroundHovered-0d7_KjU ()J - public fun getBackgroundPressed-0d7_KjU ()J - public fun getBorder-0d7_KjU ()J - public fun getBorderDisabled-0d7_KjU ()J - public fun getBorderFocused-0d7_KjU ()J - public fun getBorderHovered-0d7_KjU ()J - public fun getBorderPressed-0d7_KjU ()J - public fun getCaret-0d7_KjU ()J - public fun getCaretDisabled-0d7_KjU ()J - public fun getCaretFocused-0d7_KjU ()J - public fun getCaretHovered-0d7_KjU ()J - public fun getCaretPressed-0d7_KjU ()J - public fun getContent-0d7_KjU ()J - public fun getContentDisabled-0d7_KjU ()J - public fun getContentFocused-0d7_KjU ()J - public fun getContentHovered-0d7_KjU ()J - public fun getContentPressed-0d7_KjU ()J - public fun getHint-0d7_KjU ()J - public fun getLabel-0d7_KjU ()J - public fun getPlaceholder-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldColors$Companion { - public final fun dark-4JUtha0 (JJJJJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldColors; - public final fun light-4JUtha0 (JJJJJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldMetrics : org/jetbrains/jewel/styling/LabelledTextFieldMetrics { - public static final field $stable I - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFFFILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFFFLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getBorderWidth-D9Ej5fM ()F - public fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getHintSpacing-D9Ej5fM ()F - public fun getLabelSpacing-D9Ej5fM ()F - public fun getMinSize-MYxV2XQ ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldStyle : org/jetbrains/jewel/styling/LabelledTextFieldStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldStyle$Companion; - public fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldMetrics;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldTextStyles;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/InputFieldColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/LabelledTextFieldColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/TextFieldColors; - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/InputFieldMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/LabelledTextFieldMetrics; - public fun getTextStyle ()Landroidx/compose/ui/text/TextStyle; - public fun getTextStyles ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldTextStyles; - public synthetic fun getTextStyles ()Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldStyle$Companion { - public final fun dark (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldMetrics;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldTextStyles;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldStyle; - public final fun light (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldMetrics;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldTextStyles;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldStyle; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldTextStyles : org/jetbrains/jewel/styling/LabelledTextFieldTextStyles { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldTextStyles$Companion; - public fun (Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;)V - public fun equals (Ljava/lang/Object;)Z - public fun getHint ()Landroidx/compose/ui/text/TextStyle; - public fun getLabel ()Landroidx/compose/ui/text/TextStyle; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldTextStyles$Companion { - public final fun dark (Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldTextStyles; - public final fun light (Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldTextStyles; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeColors : org/jetbrains/jewel/styling/LazyTreeColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeColors$Companion; - public synthetic fun (JJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun contentFor-iZdlh1w (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun equals (Ljava/lang/Object;)Z - public fun getContent-0d7_KjU ()J - public fun getContentFocused-0d7_KjU ()J - public fun getContentSelected-0d7_KjU ()J - public fun getContentSelectedFocused-0d7_KjU ()J - public fun getElementBackgroundFocused-0d7_KjU ()J - public fun getElementBackgroundSelected-0d7_KjU ()J - public fun getElementBackgroundSelectedFocused-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeColors$Companion { - public final fun dark-69fazGs (JJJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeColors; - public final fun light-69fazGs (JJJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeIcons : org/jetbrains/jewel/styling/LazyTreeIcons { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeIcons$Companion; - public fun (Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;)V - public fun chevron (ZZLandroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/painter/PainterProvider; - public fun equals (Ljava/lang/Object;)Z - public fun getChevronCollapsed ()Lorg/jetbrains/jewel/painter/PainterProvider; - public fun getChevronExpanded ()Lorg/jetbrains/jewel/painter/PainterProvider; - public fun getChevronSelectedCollapsed ()Lorg/jetbrains/jewel/painter/PainterProvider; - public fun getChevronSelectedExpanded ()Lorg/jetbrains/jewel/painter/PainterProvider; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeIcons$Companion { - public final fun chevronCollapsed (Ljava/lang/String;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/painter/PainterProvider; - public final fun chevronExpanded (Ljava/lang/String;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/painter/PainterProvider; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeMetrics : org/jetbrains/jewel/styling/LazyTreeMetrics { - public static final field $stable I - public synthetic fun (FLandroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;FFILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (FLandroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;FFLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getChevronContentGap-D9Ej5fM ()F - public fun getElementBackgroundCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getElementContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun getElementMinHeight-D9Ej5fM ()F - public fun getElementPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun getIndentSize-D9Ej5fM ()F - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeStyle : org/jetbrains/jewel/styling/LazyTreeStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeStyle$Companion; - public fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeIcons;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/LazyTreeColors; - public fun getIcons ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeIcons; - public synthetic fun getIcons ()Lorg/jetbrains/jewel/styling/LazyTreeIcons; - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/LazyTreeMetrics; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeStyle$Companion { - public final fun dark (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeStyle; - public final fun light (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeStyle; + public static final fun default-Sq-BF7M (Lorg/jetbrains/jewel/styling/DropdownMetrics$Companion;JJLandroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;F)Lorg/jetbrains/jewel/styling/DropdownMetrics; + public static synthetic fun default-Sq-BF7M$default (Lorg/jetbrains/jewel/styling/DropdownMetrics$Companion;JJLandroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;FILjava/lang/Object;)Lorg/jetbrains/jewel/styling/DropdownMetrics; + public static final fun defaults (Lorg/jetbrains/jewel/styling/DropdownIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;)Lorg/jetbrains/jewel/styling/DropdownIcons; + public static synthetic fun defaults$default (Lorg/jetbrains/jewel/styling/DropdownIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;ILjava/lang/Object;)Lorg/jetbrains/jewel/styling/DropdownIcons; + public static final fun getDefault (Lorg/jetbrains/jewel/styling/DropdownColors$Companion;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDefaultDropdownColorsFactory; + public static final fun getDefault (Lorg/jetbrains/jewel/styling/DropdownStyle$Companion;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDefaultDropdownStyleFactory; + public static final fun getUndecorated (Lorg/jetbrains/jewel/styling/DropdownColors$Companion;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiUndecoratedDropdownColorsFactory; + public static final fun getUndecorated (Lorg/jetbrains/jewel/styling/DropdownStyle$Companion;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiUndecoratedDropdownStyleFactory; + public static final fun undecorated-Sq-BF7M (Lorg/jetbrains/jewel/styling/DropdownMetrics$Companion;JJLandroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;F)Lorg/jetbrains/jewel/styling/DropdownMetrics; + public static synthetic fun undecorated-Sq-BF7M$default (Lorg/jetbrains/jewel/styling/DropdownMetrics$Companion;JJLandroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;FILjava/lang/Object;)Lorg/jetbrains/jewel/styling/DropdownMetrics; +} + +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiEditorTabColorsFactory { + public static final field $stable I + public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiEditorTabColorsFactory; + public final fun dark-58FyvDQ (JJJJJJJJJJJJJJJJJJ)Lorg/jetbrains/jewel/styling/TabColors; + public static synthetic fun dark-58FyvDQ$default (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiEditorTabColorsFactory;JJJJJJJJJJJJJJJJJJILjava/lang/Object;)Lorg/jetbrains/jewel/styling/TabColors; + public final fun light-58FyvDQ (JJJJJJJJJJJJJJJJJJ)Lorg/jetbrains/jewel/styling/TabColors; + public static synthetic fun light-58FyvDQ$default (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiEditorTabColorsFactory;JJJJJJJJJJJJJJJJJJILjava/lang/Object;)Lorg/jetbrains/jewel/styling/TabColors; +} + +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiEditorTabStyleFactory { + public static final field $stable I + public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiEditorTabStyleFactory; + public final fun dark (Lorg/jetbrains/jewel/styling/TabColors;Lorg/jetbrains/jewel/styling/TabMetrics;Lorg/jetbrains/jewel/styling/TabIcons;Lorg/jetbrains/jewel/styling/TabContentAlpha;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/TabStyle; + public final fun light (Lorg/jetbrains/jewel/styling/TabColors;Lorg/jetbrains/jewel/styling/TabMetrics;Lorg/jetbrains/jewel/styling/TabIcons;Lorg/jetbrains/jewel/styling/TabContentAlpha;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/TabStyle; +} + +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderStylingKt { + public static final fun dark (Lorg/jetbrains/jewel/styling/GroupHeaderStyle$Companion;Lorg/jetbrains/jewel/styling/GroupHeaderColors;Lorg/jetbrains/jewel/styling/GroupHeaderMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/GroupHeaderStyle; + public static final fun dark-iJQMabo (Lorg/jetbrains/jewel/styling/GroupHeaderColors$Companion;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/GroupHeaderColors; + public static final fun defaults-VpY3zN4 (Lorg/jetbrains/jewel/styling/GroupHeaderMetrics$Companion;FF)Lorg/jetbrains/jewel/styling/GroupHeaderMetrics; + public static synthetic fun defaults-VpY3zN4$default (Lorg/jetbrains/jewel/styling/GroupHeaderMetrics$Companion;FFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/GroupHeaderMetrics; + public static final fun light (Lorg/jetbrains/jewel/styling/GroupHeaderStyle$Companion;Lorg/jetbrains/jewel/styling/GroupHeaderColors;Lorg/jetbrains/jewel/styling/GroupHeaderMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/GroupHeaderStyle; + public static final fun light-iJQMabo (Lorg/jetbrains/jewel/styling/GroupHeaderColors$Companion;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/GroupHeaderColors; +} + +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarStylingKt { + public static final fun dark-45ZY6uE (Lorg/jetbrains/jewel/styling/HorizontalProgressBarStyle$Companion;Lorg/jetbrains/jewel/styling/HorizontalProgressBarColors;Lorg/jetbrains/jewel/styling/HorizontalProgressBarMetrics;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/HorizontalProgressBarStyle; + public static final fun dark-zf8z9n0 (Lorg/jetbrains/jewel/styling/HorizontalProgressBarColors$Companion;JJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/HorizontalProgressBarColors; + public static final fun defaults-4j6BHR0 (Lorg/jetbrains/jewel/styling/HorizontalProgressBarMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;FF)Lorg/jetbrains/jewel/styling/HorizontalProgressBarMetrics; + public static synthetic fun defaults-4j6BHR0$default (Lorg/jetbrains/jewel/styling/HorizontalProgressBarMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;FFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/HorizontalProgressBarMetrics; + public static final fun light-45ZY6uE (Lorg/jetbrains/jewel/styling/HorizontalProgressBarStyle$Companion;Lorg/jetbrains/jewel/styling/HorizontalProgressBarColors;Lorg/jetbrains/jewel/styling/HorizontalProgressBarMetrics;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/HorizontalProgressBarStyle; + public static final fun light-zf8z9n0 (Lorg/jetbrains/jewel/styling/HorizontalProgressBarColors$Companion;JJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/HorizontalProgressBarColors; +} + +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiIconButtonStylingKt { + public static final fun dark (Lorg/jetbrains/jewel/styling/IconButtonStyle$Companion;Lorg/jetbrains/jewel/styling/IconButtonColors;Lorg/jetbrains/jewel/styling/IconButtonMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/IconButtonStyle; + public static final fun dark-cAAHkqY (Lorg/jetbrains/jewel/styling/IconButtonColors$Companion;JJJJJJJJJJLandroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/styling/IconButtonColors; + public static final fun defaults-ij7-PLE (Lorg/jetbrains/jewel/styling/IconButtonMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;FLandroidx/compose/foundation/layout/PaddingValues;J)Lorg/jetbrains/jewel/styling/IconButtonMetrics; + public static synthetic fun defaults-ij7-PLE$default (Lorg/jetbrains/jewel/styling/IconButtonMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;FLandroidx/compose/foundation/layout/PaddingValues;JILjava/lang/Object;)Lorg/jetbrains/jewel/styling/IconButtonMetrics; + public static final fun light (Lorg/jetbrains/jewel/styling/IconButtonStyle$Companion;Lorg/jetbrains/jewel/styling/IconButtonColors;Lorg/jetbrains/jewel/styling/IconButtonMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/IconButtonStyle; + public static final fun light-cAAHkqY (Lorg/jetbrains/jewel/styling/IconButtonColors$Companion;JJJJJJJJJJLandroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/styling/IconButtonColors; +} + +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldStylingKt { + public static final fun dark (Lorg/jetbrains/jewel/styling/LabelledTextFieldStyle$Companion;Lorg/jetbrains/jewel/styling/LabelledTextFieldColors;Lorg/jetbrains/jewel/styling/LabelledTextFieldMetrics;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/LabelledTextFieldStyle; + public static final fun dark (Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;)Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles; + public static synthetic fun dark$default (Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;ILjava/lang/Object;)Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles; + public static final fun dark-uKsWAxw (Lorg/jetbrains/jewel/styling/LabelledTextFieldColors$Companion;JJJJJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/styling/LabelledTextFieldColors; + public static final fun defaults-KJzYnEk (Lorg/jetbrains/jewel/styling/LabelledTextFieldMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFFF)Lorg/jetbrains/jewel/styling/LabelledTextFieldMetrics; + public static synthetic fun defaults-KJzYnEk$default (Lorg/jetbrains/jewel/styling/LabelledTextFieldMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFFFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/LabelledTextFieldMetrics; + public static final fun light (Lorg/jetbrains/jewel/styling/LabelledTextFieldStyle$Companion;Lorg/jetbrains/jewel/styling/LabelledTextFieldColors;Lorg/jetbrains/jewel/styling/LabelledTextFieldMetrics;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/LabelledTextFieldStyle; + public static final fun light (Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;)Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles; + public static synthetic fun light$default (Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;ILjava/lang/Object;)Lorg/jetbrains/jewel/styling/LabelledTextFieldTextStyles; + public static final fun light-uKsWAxw (Lorg/jetbrains/jewel/styling/LabelledTextFieldColors$Companion;JJJJJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/styling/LabelledTextFieldColors; } public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeStylingKt { - public static final fun intUiLazyTreeIcons (Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeIcons; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLinkColors : org/jetbrains/jewel/styling/LinkColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkColors$Companion; - public synthetic fun (JJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun contentFor-4qImzQQ (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun equals (Ljava/lang/Object;)Z - public fun getContent-0d7_KjU ()J - public fun getContentDisabled-0d7_KjU ()J - public fun getContentFocused-0d7_KjU ()J - public fun getContentHovered-0d7_KjU ()J - public fun getContentPressed-0d7_KjU ()J - public fun getContentVisited-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLinkColors$Companion { - public final fun dark-5tl4gsc (JJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkColors; - public final fun light-5tl4gsc (JJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLinkIcons : org/jetbrains/jewel/styling/LinkIcons { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkIcons$Companion; - public fun (Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;)V - public fun equals (Ljava/lang/Object;)Z - public fun getDropdownChevron ()Lorg/jetbrains/jewel/painter/PainterProvider; - public fun getExternalLink ()Lorg/jetbrains/jewel/painter/PainterProvider; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLinkIcons$Companion { - public final fun dropdownChevron (Ljava/lang/String;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/painter/PainterProvider; - public final fun externalLink (Ljava/lang/String;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/painter/PainterProvider; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLinkMetrics : org/jetbrains/jewel/styling/LinkMetrics { - public static final field $stable I - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;FJILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;FJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getFocusHaloCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getIconSize-MYxV2XQ ()J - public fun getTextIconGap-D9Ej5fM ()F - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLinkStyle : org/jetbrains/jewel/styling/LinkStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkStyle$Companion; - public fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkIcons;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkTextStyles;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/LinkColors; - public fun getIcons ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkIcons; - public synthetic fun getIcons ()Lorg/jetbrains/jewel/styling/LinkIcons; - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/LinkMetrics; - public fun getTextStyles ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkTextStyles; - public synthetic fun getTextStyles ()Lorg/jetbrains/jewel/styling/LinkTextStyles; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLinkStyle$Companion { - public final fun dark (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkIcons;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkTextStyles;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkStyle; - public final fun light (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkIcons;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkTextStyles;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkStyle; + public static final fun dark (Lorg/jetbrains/jewel/styling/LazyTreeStyle$Companion;Lorg/jetbrains/jewel/styling/LazyTreeColors;Lorg/jetbrains/jewel/styling/LazyTreeMetrics;Lorg/jetbrains/jewel/styling/LazyTreeIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/LazyTreeStyle; + public static final fun dark-v1fvUNM (Lorg/jetbrains/jewel/styling/LazyTreeColors$Companion;JJJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/LazyTreeColors; + public static final fun defaults (Lorg/jetbrains/jewel/styling/LazyTreeIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;)Lorg/jetbrains/jewel/styling/LazyTreeIcons; + public static synthetic fun defaults$default (Lorg/jetbrains/jewel/styling/LazyTreeIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;ILjava/lang/Object;)Lorg/jetbrains/jewel/styling/LazyTreeIcons; + public static final fun defaults-hRm7RI8 (Lorg/jetbrains/jewel/styling/LazyTreeMetrics$Companion;FLandroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;FF)Lorg/jetbrains/jewel/styling/LazyTreeMetrics; + public static synthetic fun defaults-hRm7RI8$default (Lorg/jetbrains/jewel/styling/LazyTreeMetrics$Companion;FLandroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;FFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/LazyTreeMetrics; + public static final fun light (Lorg/jetbrains/jewel/styling/LazyTreeStyle$Companion;Lorg/jetbrains/jewel/styling/LazyTreeColors;Lorg/jetbrains/jewel/styling/LazyTreeMetrics;Lorg/jetbrains/jewel/styling/LazyTreeIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/LazyTreeStyle; + public static final fun light-v1fvUNM (Lorg/jetbrains/jewel/styling/LazyTreeColors$Companion;JJJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/LazyTreeColors; } public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLinkStylingKt { - public static final fun intUiLinkIcons (Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkIcons; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLinkTextStyles : org/jetbrains/jewel/styling/LinkTextStyles { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkTextStyles$Companion; - public fun (Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;)V - public fun equals (Ljava/lang/Object;)Z - public fun getDisabled ()Landroidx/compose/ui/text/TextStyle; - public fun getFocused ()Landroidx/compose/ui/text/TextStyle; - public fun getHovered ()Landroidx/compose/ui/text/TextStyle; - public fun getNormal ()Landroidx/compose/ui/text/TextStyle; - public fun getPressed ()Landroidx/compose/ui/text/TextStyle; - public fun getVisited ()Landroidx/compose/ui/text/TextStyle; - public fun hashCode ()I - public fun styleFor-4qImzQQ (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiLinkTextStyles$Companion { - public final fun dark (Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkTextStyles; - public final fun light (Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiLinkTextStyles; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiMenuColors : org/jetbrains/jewel/styling/MenuColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuColors$Companion; - public synthetic fun (JJJLorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuItemColors;Lkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getBackground-0d7_KjU ()J - public fun getBorder-0d7_KjU ()J - public fun getItemColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuItemColors; - public synthetic fun getItemColors ()Lorg/jetbrains/jewel/styling/MenuItemColors; - public fun getShadow-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiMenuColors$Companion { - public final fun dark-g9RBwZg (JJJLorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuItemColors;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuColors; - public final fun light-g9RBwZg (JJJLorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuItemColors;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiMenuIcons : org/jetbrains/jewel/styling/MenuIcons { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuIcons$Companion; - public fun (Lorg/jetbrains/jewel/painter/PainterProvider;)V - public fun equals (Ljava/lang/Object;)Z - public fun getSubmenuChevron ()Lorg/jetbrains/jewel/painter/PainterProvider; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiMenuIcons$Companion { - public final fun submenuChevron (Ljava/lang/String;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/painter/PainterProvider; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiMenuItemColors : org/jetbrains/jewel/styling/MenuItemColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuItemColors$Companion; - public synthetic fun (JJJJJJJJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun backgroundFor-BYhRtsk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun contentFor-BYhRtsk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun equals (Ljava/lang/Object;)Z - public fun getBackground-0d7_KjU ()J - public fun getBackgroundDisabled-0d7_KjU ()J - public fun getBackgroundFocused-0d7_KjU ()J - public fun getBackgroundHovered-0d7_KjU ()J - public fun getBackgroundPressed-0d7_KjU ()J - public fun getContent-0d7_KjU ()J - public fun getContentDisabled-0d7_KjU ()J - public fun getContentFocused-0d7_KjU ()J - public fun getContentHovered-0d7_KjU ()J - public fun getContentPressed-0d7_KjU ()J - public fun getIconTint-0d7_KjU ()J - public fun getIconTintDisabled-0d7_KjU ()J - public fun getIconTintFocused-0d7_KjU ()J - public fun getIconTintHovered-0d7_KjU ()J - public fun getIconTintPressed-0d7_KjU ()J - public fun getSeparator-0d7_KjU ()J - public fun hashCode ()I - public fun iconTintFor-BYhRtsk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiMenuItemColors$Companion { - public final fun dark-V1nXRL4 (JJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuItemColors; - public final fun light-V1nXRL4 (JJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuItemColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiMenuItemMetrics : org/jetbrains/jewel/styling/MenuItemMetrics { - public static final field $stable I - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;FILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;FLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun getOuterPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun getSelectionCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getSeparatorPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun getSeparatorThickness-D9Ej5fM ()F - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiMenuMetrics : org/jetbrains/jewel/styling/MenuMetrics { - public static final field $stable I - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;JFFLorg/jetbrains/jewel/styling/MenuItemMetrics;Lorg/jetbrains/jewel/styling/SubmenuMetrics;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;JFFLorg/jetbrains/jewel/styling/MenuItemMetrics;Lorg/jetbrains/jewel/styling/SubmenuMetrics;Lkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getBorderWidth-D9Ej5fM ()F - public fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getItemMetrics ()Lorg/jetbrains/jewel/styling/MenuItemMetrics; - public fun getMenuMargin ()Landroidx/compose/foundation/layout/PaddingValues; - public fun getOffset-RKDOV3M ()J - public fun getShadowSize-D9Ej5fM ()F - public fun getSubmenuMetrics ()Lorg/jetbrains/jewel/styling/SubmenuMetrics; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiMenuStyle : org/jetbrains/jewel/styling/MenuStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuStyle$Companion; - public fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuIcons;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/MenuColors; - public fun getIcons ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuIcons; - public synthetic fun getIcons ()Lorg/jetbrains/jewel/styling/MenuIcons; - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/MenuMetrics; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiMenuStyle$Companion { - public final fun dark (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuStyle; - public final fun light (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuStyle; + public static final fun dark (Lorg/jetbrains/jewel/styling/LinkStyle$Companion;Lorg/jetbrains/jewel/styling/LinkColors;Lorg/jetbrains/jewel/styling/LinkMetrics;Lorg/jetbrains/jewel/styling/LinkIcons;Lorg/jetbrains/jewel/styling/LinkTextStyles;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/LinkStyle; + public static final fun dark (Lorg/jetbrains/jewel/styling/LinkTextStyles$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/LinkTextStyles; + public static final fun dark-dPtIKUs (Lorg/jetbrains/jewel/styling/LinkColors$Companion;JJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/LinkColors; + public static final fun defaults (Lorg/jetbrains/jewel/styling/LinkIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;)Lorg/jetbrains/jewel/styling/LinkIcons; + public static synthetic fun defaults$default (Lorg/jetbrains/jewel/styling/LinkIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;Lorg/jetbrains/jewel/painter/PainterProvider;ILjava/lang/Object;)Lorg/jetbrains/jewel/styling/LinkIcons; + public static final fun defaults-7dA9OmY (Lorg/jetbrains/jewel/styling/LinkMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;FJ)Lorg/jetbrains/jewel/styling/LinkMetrics; + public static synthetic fun defaults-7dA9OmY$default (Lorg/jetbrains/jewel/styling/LinkMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;FJILjava/lang/Object;)Lorg/jetbrains/jewel/styling/LinkMetrics; + public static final fun light (Lorg/jetbrains/jewel/styling/LinkStyle$Companion;Lorg/jetbrains/jewel/styling/LinkColors;Lorg/jetbrains/jewel/styling/LinkMetrics;Lorg/jetbrains/jewel/styling/LinkIcons;Lorg/jetbrains/jewel/styling/LinkTextStyles;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/LinkStyle; + public static final fun light (Lorg/jetbrains/jewel/styling/LinkTextStyles$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/LinkTextStyles; + public static final fun light-dPtIKUs (Lorg/jetbrains/jewel/styling/LinkColors$Companion;JJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/LinkColors; } public final class org/jetbrains/jewel/intui/standalone/styling/IntUiMenuStylingKt { - public static final fun intUiMenuIcons (Lorg/jetbrains/jewel/painter/PainterProvider;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiMenuIcons; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonColors : org/jetbrains/jewel/styling/RadioButtonColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonColors$Companion; - public synthetic fun (JJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun contentFor-dQFH0ko (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun equals (Ljava/lang/Object;)Z - public fun getContent-0d7_KjU ()J - public fun getContentDisabled-0d7_KjU ()J - public fun getContentHovered-0d7_KjU ()J - public fun getContentSelected-0d7_KjU ()J - public fun getContentSelectedDisabled-0d7_KjU ()J - public fun getContentSelectedHovered-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonColors$Companion { - public final fun dark-5tl4gsc (JJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonColors; - public final fun light-5tl4gsc (JJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonIcons : org/jetbrains/jewel/styling/RadioButtonIcons { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonIcons$Companion; - public fun (Lorg/jetbrains/jewel/painter/PainterProvider;)V - public fun equals (Ljava/lang/Object;)Z - public fun getRadioButton ()Lorg/jetbrains/jewel/painter/PainterProvider; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonIcons$Companion { - public final fun dark (Lorg/jetbrains/jewel/painter/PainterProvider;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonIcons; - public final fun light (Lorg/jetbrains/jewel/painter/PainterProvider;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonIcons; - public final fun radioButton (Ljava/lang/String;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/painter/PainterProvider; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonMetrics : org/jetbrains/jewel/styling/RadioButtonMetrics { - public static final field $stable I - public synthetic fun (JFILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (JFLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getIconContentGap-D9Ej5fM ()F - public fun getRadioButtonSize-MYxV2XQ ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonStyle : org/jetbrains/jewel/styling/RadioButtonStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonStyle$Companion; - public fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonIcons;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/RadioButtonColors; - public fun getIcons ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonIcons; - public synthetic fun getIcons ()Lorg/jetbrains/jewel/styling/RadioButtonIcons; - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/RadioButtonMetrics; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonStyle$Companion { - public final fun dark (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonStyle; - public final fun light (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonMetrics;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonStyle; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarColors : org/jetbrains/jewel/styling/ScrollbarColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarColors$Companion; - public synthetic fun (JJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getThumbBackground-0d7_KjU ()J - public fun getThumbBackgroundHovered-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarColors$Companion { - public final fun dark-dgg9oW8 (JJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarColors; - public final fun light-dgg9oW8 (JJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarMetrics : org/jetbrains/jewel/styling/ScrollbarMetrics { - public static final field $stable I - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;FFLandroidx/compose/foundation/layout/PaddingValues;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;FFLandroidx/compose/foundation/layout/PaddingValues;Lkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getMinThumbLength-D9Ej5fM ()F - public fun getThumbCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getThumbThickness-D9Ej5fM ()F - public fun getTrackPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarStyle : org/jetbrains/jewel/styling/ScrollbarStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarStyle$Companion; - public synthetic fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarMetrics;JLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/ScrollbarColors; - public fun getHoverDuration-UwyO8pc ()J - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/ScrollbarMetrics; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarStyle$Companion { - public final fun dark-WPi__2c (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarMetrics;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarStyle; - public final fun light-WPi__2c (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarMetrics;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarStyle; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiSubmenuMetrics : org/jetbrains/jewel/styling/SubmenuMetrics { - public static final field $stable I - public synthetic fun (JILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (JLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getOffset-RKDOV3M ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTabColors : org/jetbrains/jewel/styling/TabColors { - public static final field $stable I - public synthetic fun (JJJJJJJJJJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun backgroundFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun contentFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun equals (Ljava/lang/Object;)Z - public fun getBackground-0d7_KjU ()J - public fun getBackgroundDisabled-0d7_KjU ()J - public fun getBackgroundFocused-0d7_KjU ()J - public fun getBackgroundHovered-0d7_KjU ()J - public fun getBackgroundPressed-0d7_KjU ()J - public fun getBackgroundSelected-0d7_KjU ()J - public fun getContent-0d7_KjU ()J - public fun getContentDisabled-0d7_KjU ()J - public fun getContentFocused-0d7_KjU ()J - public fun getContentHovered-0d7_KjU ()J - public fun getContentPressed-0d7_KjU ()J - public fun getContentSelected-0d7_KjU ()J - public fun getUnderline-0d7_KjU ()J - public fun getUnderlineDisabled-0d7_KjU ()J - public fun getUnderlineFocused-0d7_KjU ()J - public fun getUnderlineHovered-0d7_KjU ()J - public fun getUnderlinePressed-0d7_KjU ()J - public fun getUnderlineSelected-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; - public fun underlineFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTabColors$Default { - public static final field $stable I - public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabColors$Default; - public final fun dark-58FyvDQ (JJJJJJJJJJJJJJJJJJ)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabColors; - public static synthetic fun dark-58FyvDQ$default (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabColors$Default;JJJJJJJJJJJJJJJJJJILjava/lang/Object;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabColors; - public final fun light-58FyvDQ (JJJJJJJJJJJJJJJJJJ)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabColors; - public static synthetic fun light-58FyvDQ$default (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabColors$Default;JJJJJJJJJJJJJJJJJJILjava/lang/Object;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTabColors$Editor { - public static final field $stable I - public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabColors$Editor; - public final fun dark-58FyvDQ (JJJJJJJJJJJJJJJJJJ)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabColors; - public static synthetic fun dark-58FyvDQ$default (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabColors$Editor;JJJJJJJJJJJJJJJJJJILjava/lang/Object;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabColors; - public final fun light-58FyvDQ (JJJJJJJJJJJJJJJJJJ)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabColors; - public static synthetic fun light-58FyvDQ$default (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabColors$Editor;JJJJJJJJJJJJJJJJJJILjava/lang/Object;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTabContentAlpha : org/jetbrains/jewel/styling/TabContentAlpha { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabContentAlpha$Companion; - public fun (FFFFFFFFFFFF)V - public fun equals (Ljava/lang/Object;)Z - public fun getIconDisabled ()F - public fun getIconFocused ()F - public fun getIconHovered ()F - public fun getIconNormal ()F - public fun getIconPressed ()F - public fun getIconSelected ()F - public fun getLabelDisabled ()F - public fun getLabelFocused ()F - public fun getLabelHovered ()F - public fun getLabelNormal ()F - public fun getLabelPressed ()F - public fun getLabelSelected ()F - public fun hashCode ()I - public fun iconFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun labelFor-WCiaD9s (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTabContentAlpha$Companion { - public final fun default (FFFFFFFFFFFF)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabContentAlpha; - public static synthetic fun default$default (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabContentAlpha$Companion;FFFFFFFFFFFFILjava/lang/Object;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabContentAlpha; - public final fun editor (FFFFFFFFFFFF)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabContentAlpha; - public static synthetic fun editor$default (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabContentAlpha$Companion;FFFFFFFFFFFFILjava/lang/Object;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabContentAlpha; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTabIcons : org/jetbrains/jewel/styling/TabIcons { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabIcons$Companion; - public fun (Lorg/jetbrains/jewel/painter/PainterProvider;)V - public fun equals (Ljava/lang/Object;)Z - public fun getClose ()Lorg/jetbrains/jewel/painter/PainterProvider; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTabIcons$Companion { - public final fun close (Ljava/lang/String;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/painter/PainterProvider; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTabMetrics : org/jetbrains/jewel/styling/TabMetrics { - public static final field $stable I - public synthetic fun (FLandroidx/compose/foundation/layout/PaddingValues;FFILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (FLandroidx/compose/foundation/layout/PaddingValues;FFLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getCloseContentGap-D9Ej5fM ()F - public fun getTabHeight-D9Ej5fM ()F - public fun getTabPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun getUnderlineThickness-D9Ej5fM ()F - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTabStyle : org/jetbrains/jewel/styling/TabStyle { - public static final field $stable I - public fun (Lorg/jetbrains/jewel/styling/TabColors;Lorg/jetbrains/jewel/styling/TabMetrics;Lorg/jetbrains/jewel/styling/TabIcons;Lorg/jetbrains/jewel/styling/TabContentAlpha;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/styling/TabColors; - public fun getContentAlpha ()Lorg/jetbrains/jewel/styling/TabContentAlpha; - public fun getIcons ()Lorg/jetbrains/jewel/styling/TabIcons; - public fun getMetrics ()Lorg/jetbrains/jewel/styling/TabMetrics; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTabStyle$Default { - public static final field $stable I - public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabStyle$Default; - public final fun dark (Lorg/jetbrains/jewel/styling/TabColors;Lorg/jetbrains/jewel/styling/TabMetrics;Lorg/jetbrains/jewel/styling/TabIcons;Lorg/jetbrains/jewel/styling/TabContentAlpha;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabStyle; - public final fun light (Lorg/jetbrains/jewel/styling/TabColors;Lorg/jetbrains/jewel/styling/TabMetrics;Lorg/jetbrains/jewel/styling/TabIcons;Lorg/jetbrains/jewel/styling/TabContentAlpha;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabStyle; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTabStyle$Editor { - public static final field $stable I - public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabStyle$Editor; - public final fun dark (Lorg/jetbrains/jewel/styling/TabColors;Lorg/jetbrains/jewel/styling/TabMetrics;Lorg/jetbrains/jewel/styling/TabIcons;Lorg/jetbrains/jewel/styling/TabContentAlpha;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabStyle; - public final fun light (Lorg/jetbrains/jewel/styling/TabColors;Lorg/jetbrains/jewel/styling/TabMetrics;Lorg/jetbrains/jewel/styling/TabIcons;Lorg/jetbrains/jewel/styling/TabContentAlpha;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabStyle; + public static final fun dark (Lorg/jetbrains/jewel/styling/MenuStyle$Companion;Lorg/jetbrains/jewel/styling/MenuColors;Lorg/jetbrains/jewel/styling/MenuMetrics;Lorg/jetbrains/jewel/styling/MenuIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/MenuStyle; + public static final fun dark-B6VqUn8 (Lorg/jetbrains/jewel/styling/MenuItemColors$Companion;JJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/styling/MenuItemColors; + public static final fun dark-Jy8F4Js (Lorg/jetbrains/jewel/styling/MenuColors$Companion;JJJLorg/jetbrains/jewel/styling/MenuItemColors;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/MenuColors; + public static final fun defaults (Lorg/jetbrains/jewel/styling/MenuIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;)Lorg/jetbrains/jewel/styling/MenuIcons; + public static synthetic fun defaults$default (Lorg/jetbrains/jewel/styling/MenuIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;ILjava/lang/Object;)Lorg/jetbrains/jewel/styling/MenuIcons; + public static final fun defaults-BkVx2pU (Lorg/jetbrains/jewel/styling/SubmenuMetrics$Companion;J)Lorg/jetbrains/jewel/styling/SubmenuMetrics; + public static synthetic fun defaults-BkVx2pU$default (Lorg/jetbrains/jewel/styling/SubmenuMetrics$Companion;JILjava/lang/Object;)Lorg/jetbrains/jewel/styling/SubmenuMetrics; + public static final fun defaults-JTrpX9M (Lorg/jetbrains/jewel/styling/MenuItemMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;F)Lorg/jetbrains/jewel/styling/MenuItemMetrics; + public static synthetic fun defaults-JTrpX9M$default (Lorg/jetbrains/jewel/styling/MenuItemMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;FILjava/lang/Object;)Lorg/jetbrains/jewel/styling/MenuItemMetrics; + public static final fun defaults-ORMxH6s (Lorg/jetbrains/jewel/styling/MenuMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;JFFLorg/jetbrains/jewel/styling/MenuItemMetrics;Lorg/jetbrains/jewel/styling/SubmenuMetrics;)Lorg/jetbrains/jewel/styling/MenuMetrics; + public static synthetic fun defaults-ORMxH6s$default (Lorg/jetbrains/jewel/styling/MenuMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/layout/PaddingValues;JFFLorg/jetbrains/jewel/styling/MenuItemMetrics;Lorg/jetbrains/jewel/styling/SubmenuMetrics;ILjava/lang/Object;)Lorg/jetbrains/jewel/styling/MenuMetrics; + public static final fun light (Lorg/jetbrains/jewel/styling/MenuStyle$Companion;Lorg/jetbrains/jewel/styling/MenuColors;Lorg/jetbrains/jewel/styling/MenuMetrics;Lorg/jetbrains/jewel/styling/MenuIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/MenuStyle; + public static final fun light-B6VqUn8 (Lorg/jetbrains/jewel/styling/MenuItemColors$Companion;JJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/styling/MenuItemColors; + public static final fun light-Jy8F4Js (Lorg/jetbrains/jewel/styling/MenuColors$Companion;JJJLorg/jetbrains/jewel/styling/MenuItemColors;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/MenuColors; +} + +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiOutlinedButtonColorFactory { + public static final field $stable I + public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiOutlinedButtonColorFactory; + public final fun dark-AckW74Y (Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/styling/ButtonColors; + public final fun light-AckW74Y (Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;JJJJJLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Brush;Landroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/styling/ButtonColors; +} + +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiOutlinedButtonStyleFactory { + public static final field $stable I + public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiOutlinedButtonStyleFactory; + public final fun dark (Lorg/jetbrains/jewel/styling/ButtonColors;Lorg/jetbrains/jewel/styling/ButtonMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/ButtonStyle; + public final fun light (Lorg/jetbrains/jewel/styling/ButtonColors;Lorg/jetbrains/jewel/styling/ButtonMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/ButtonStyle; +} + +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonStylingKt { + public static final fun dark (Lorg/jetbrains/jewel/styling/RadioButtonIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;)Lorg/jetbrains/jewel/styling/RadioButtonIcons; + public static final fun dark (Lorg/jetbrains/jewel/styling/RadioButtonStyle$Companion;Lorg/jetbrains/jewel/styling/RadioButtonColors;Lorg/jetbrains/jewel/styling/RadioButtonMetrics;Lorg/jetbrains/jewel/styling/RadioButtonIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/RadioButtonStyle; + public static synthetic fun dark$default (Lorg/jetbrains/jewel/styling/RadioButtonIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;ILjava/lang/Object;)Lorg/jetbrains/jewel/styling/RadioButtonIcons; + public static final fun dark-dPtIKUs (Lorg/jetbrains/jewel/styling/RadioButtonColors$Companion;JJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/RadioButtonColors; + public static final fun defaults-Q6CdCac (Lorg/jetbrains/jewel/styling/RadioButtonMetrics$Companion;JF)Lorg/jetbrains/jewel/styling/RadioButtonMetrics; + public static synthetic fun defaults-Q6CdCac$default (Lorg/jetbrains/jewel/styling/RadioButtonMetrics$Companion;JFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/RadioButtonMetrics; + public static final fun light (Lorg/jetbrains/jewel/styling/RadioButtonIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;)Lorg/jetbrains/jewel/styling/RadioButtonIcons; + public static final fun light (Lorg/jetbrains/jewel/styling/RadioButtonStyle$Companion;Lorg/jetbrains/jewel/styling/RadioButtonColors;Lorg/jetbrains/jewel/styling/RadioButtonMetrics;Lorg/jetbrains/jewel/styling/RadioButtonIcons;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/RadioButtonStyle; + public static synthetic fun light$default (Lorg/jetbrains/jewel/styling/RadioButtonIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;ILjava/lang/Object;)Lorg/jetbrains/jewel/styling/RadioButtonIcons; + public static final fun light-dPtIKUs (Lorg/jetbrains/jewel/styling/RadioButtonColors$Companion;JJJJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/RadioButtonColors; +} + +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarStylingKt { + public static final fun dark-45ZY6uE (Lorg/jetbrains/jewel/styling/ScrollbarStyle$Companion;Lorg/jetbrains/jewel/styling/ScrollbarColors;Lorg/jetbrains/jewel/styling/ScrollbarMetrics;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/ScrollbarStyle; + public static final fun dark-RIQooxk (Lorg/jetbrains/jewel/styling/ScrollbarColors$Companion;JJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/ScrollbarColors; + public static final fun defaults--JS8el8 (Lorg/jetbrains/jewel/styling/ScrollbarMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;FFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/styling/ScrollbarMetrics; + public static synthetic fun defaults--JS8el8$default (Lorg/jetbrains/jewel/styling/ScrollbarMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;FFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/styling/ScrollbarMetrics; + public static final fun light-45ZY6uE (Lorg/jetbrains/jewel/styling/ScrollbarStyle$Companion;Lorg/jetbrains/jewel/styling/ScrollbarColors;Lorg/jetbrains/jewel/styling/ScrollbarMetrics;JLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/ScrollbarStyle; + public static final fun light-RIQooxk (Lorg/jetbrains/jewel/styling/ScrollbarColors$Companion;JJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/ScrollbarColors; } public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTabStylingKt { - public static final fun intUiTabIcons (Lorg/jetbrains/jewel/painter/PainterProvider;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTabIcons; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaColors : org/jetbrains/jewel/styling/TextAreaColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaColors$Companion; - public synthetic fun (JJJJJJJJJJJJJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun backgroundFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun borderFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun caretFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun contentFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun equals (Ljava/lang/Object;)Z - public fun getBackground-0d7_KjU ()J - public fun getBackgroundDisabled-0d7_KjU ()J - public fun getBackgroundFocused-0d7_KjU ()J - public fun getBackgroundHovered-0d7_KjU ()J - public fun getBackgroundPressed-0d7_KjU ()J - public fun getBorder-0d7_KjU ()J - public fun getBorderDisabled-0d7_KjU ()J - public fun getBorderFocused-0d7_KjU ()J - public fun getBorderHovered-0d7_KjU ()J - public fun getBorderPressed-0d7_KjU ()J - public fun getCaret-0d7_KjU ()J - public fun getCaretDisabled-0d7_KjU ()J - public fun getCaretFocused-0d7_KjU ()J - public fun getCaretHovered-0d7_KjU ()J - public fun getCaretPressed-0d7_KjU ()J - public fun getContent-0d7_KjU ()J - public fun getContentDisabled-0d7_KjU ()J - public fun getContentFocused-0d7_KjU ()J - public fun getContentHovered-0d7_KjU ()J - public fun getContentPressed-0d7_KjU ()J - public fun getPlaceholder-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaColors$Companion { - public final fun dark-dx8h9Zs (JJJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaColors; - public final fun light-dx8h9Zs (JJJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaMetrics : org/jetbrains/jewel/styling/InputFieldMetrics { - public static final field $stable I - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getBorderWidth-D9Ej5fM ()F - public fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getMinSize-MYxV2XQ ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaStyle : org/jetbrains/jewel/styling/TextAreaStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaStyle$Companion; - public fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaMetrics;Landroidx/compose/ui/text/TextStyle;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/InputFieldColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/TextAreaColors; - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/InputFieldMetrics; - public fun getTextStyle ()Landroidx/compose/ui/text/TextStyle; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaStyle$Companion { - public final fun dark (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaMetrics;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaStyle; - public final fun light (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaMetrics;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaStyle; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldColors : org/jetbrains/jewel/styling/TextFieldColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldColors$Companion; - public synthetic fun (JJJJJJJJJJJJJJJJJJJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun backgroundFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun borderFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun caretFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun contentFor-37MyHpk (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; - public fun equals (Ljava/lang/Object;)Z - public fun getBackground-0d7_KjU ()J - public fun getBackgroundDisabled-0d7_KjU ()J - public fun getBackgroundFocused-0d7_KjU ()J - public fun getBackgroundHovered-0d7_KjU ()J - public fun getBackgroundPressed-0d7_KjU ()J - public fun getBorder-0d7_KjU ()J - public fun getBorderDisabled-0d7_KjU ()J - public fun getBorderFocused-0d7_KjU ()J - public fun getBorderHovered-0d7_KjU ()J - public fun getBorderPressed-0d7_KjU ()J - public fun getCaret-0d7_KjU ()J - public fun getCaretDisabled-0d7_KjU ()J - public fun getCaretFocused-0d7_KjU ()J - public fun getCaretHovered-0d7_KjU ()J - public fun getCaretPressed-0d7_KjU ()J - public fun getContent-0d7_KjU ()J - public fun getContentDisabled-0d7_KjU ()J - public fun getContentFocused-0d7_KjU ()J - public fun getContentHovered-0d7_KjU ()J - public fun getContentPressed-0d7_KjU ()J - public fun getPlaceholder-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldColors$Companion { - public final fun dark-dx8h9Zs (JJJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldColors; - public final fun light-dx8h9Zs (JJJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldColors; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldMetrics : org/jetbrains/jewel/styling/InputFieldMetrics { - public static final field $stable I - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getBorderWidth-D9Ej5fM ()F - public fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getMinSize-MYxV2XQ ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldStyle : org/jetbrains/jewel/styling/TextFieldStyle { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldStyle$Companion; - public fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldMetrics;Landroidx/compose/ui/text/TextStyle;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/InputFieldColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/TextFieldColors; - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/InputFieldMetrics; - public fun getTextStyle ()Landroidx/compose/ui/text/TextStyle; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; + public static final fun default (Lorg/jetbrains/jewel/styling/TabContentAlpha$Companion;FFFFFFFFFFFF)Lorg/jetbrains/jewel/styling/TabContentAlpha; + public static synthetic fun default$default (Lorg/jetbrains/jewel/styling/TabContentAlpha$Companion;FFFFFFFFFFFFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/TabContentAlpha; + public static final fun defaults (Lorg/jetbrains/jewel/styling/TabIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;)Lorg/jetbrains/jewel/styling/TabIcons; + public static synthetic fun defaults$default (Lorg/jetbrains/jewel/styling/TabIcons$Companion;Lorg/jetbrains/jewel/painter/PainterProvider;ILjava/lang/Object;)Lorg/jetbrains/jewel/styling/TabIcons; + public static final fun defaults-u_T4Ytw (Lorg/jetbrains/jewel/styling/TabMetrics$Companion;FLandroidx/compose/foundation/layout/PaddingValues;FF)Lorg/jetbrains/jewel/styling/TabMetrics; + public static synthetic fun defaults-u_T4Ytw$default (Lorg/jetbrains/jewel/styling/TabMetrics$Companion;FLandroidx/compose/foundation/layout/PaddingValues;FFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/TabMetrics; + public static final fun editor (Lorg/jetbrains/jewel/styling/TabContentAlpha$Companion;FFFFFFFFFFFF)Lorg/jetbrains/jewel/styling/TabContentAlpha; + public static synthetic fun editor$default (Lorg/jetbrains/jewel/styling/TabContentAlpha$Companion;FFFFFFFFFFFFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/TabContentAlpha; + public static final fun getDefault (Lorg/jetbrains/jewel/styling/TabColors$Companion;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDefaultTabColorsFactory; + public static final fun getDefault (Lorg/jetbrains/jewel/styling/TabStyle$Companion;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiDefaultTabStyleFactory; + public static final fun getEditor (Lorg/jetbrains/jewel/styling/TabColors$Companion;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiEditorTabColorsFactory; + public static final fun getEditor (Lorg/jetbrains/jewel/styling/TabStyle$Companion;)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiEditorTabStyleFactory; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldStyle$Companion { - public final fun dark (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldMetrics;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldStyle; - public final fun light (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldMetrics;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldStyle; +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaStylingKt { + public static final fun dark (Lorg/jetbrains/jewel/styling/TextAreaStyle$Companion;Lorg/jetbrains/jewel/styling/TextAreaColors;Lorg/jetbrains/jewel/styling/TextAreaMetrics;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/TextAreaStyle; + public static final fun dark-a3tHFA8 (Lorg/jetbrains/jewel/styling/TextAreaColors$Companion;JJJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/styling/TextAreaColors; + public static final fun defaults-H1KY9o8 (Lorg/jetbrains/jewel/styling/TextAreaMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JF)Lorg/jetbrains/jewel/styling/TextAreaMetrics; + public static synthetic fun defaults-H1KY9o8$default (Lorg/jetbrains/jewel/styling/TextAreaMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/TextAreaMetrics; + public static final fun light (Lorg/jetbrains/jewel/styling/TextAreaStyle$Companion;Lorg/jetbrains/jewel/styling/TextAreaColors;Lorg/jetbrains/jewel/styling/TextAreaMetrics;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/TextAreaStyle; + public static final fun light-a3tHFA8 (Lorg/jetbrains/jewel/styling/TextAreaColors$Companion;JJJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/styling/TextAreaColors; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTooltipColors : org/jetbrains/jewel/styling/TooltipColors { - public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipColors$Companion; - public synthetic fun (JJJJLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getBackground-0d7_KjU ()J - public fun getBorder-0d7_KjU ()J - public fun getContent-0d7_KjU ()J - public fun getShadow-0d7_KjU ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldStylingKt { + public static final fun dark (Lorg/jetbrains/jewel/styling/TextFieldStyle$Companion;Lorg/jetbrains/jewel/styling/TextFieldColors;Lorg/jetbrains/jewel/styling/TextFieldMetrics;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/TextFieldStyle; + public static final fun dark-a3tHFA8 (Lorg/jetbrains/jewel/styling/TextFieldColors$Companion;JJJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/styling/TextFieldColors; + public static final fun defaults-H1KY9o8 (Lorg/jetbrains/jewel/styling/TextFieldMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JF)Lorg/jetbrains/jewel/styling/TextFieldMetrics; + public static synthetic fun defaults-H1KY9o8$default (Lorg/jetbrains/jewel/styling/TextFieldMetrics$Companion;Landroidx/compose/foundation/shape/CornerSize;Landroidx/compose/foundation/layout/PaddingValues;JFILjava/lang/Object;)Lorg/jetbrains/jewel/styling/TextFieldMetrics; + public static final fun light (Lorg/jetbrains/jewel/styling/TextFieldStyle$Companion;Lorg/jetbrains/jewel/styling/TextFieldColors;Lorg/jetbrains/jewel/styling/TextFieldMetrics;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/TextFieldStyle; + public static final fun light-a3tHFA8 (Lorg/jetbrains/jewel/styling/TextFieldColors$Companion;JJJJJJJJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;IIII)Lorg/jetbrains/jewel/styling/TextFieldColors; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTooltipColors$Companion { - public final fun dark-ro_MJ88 (JJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipColors; - public final fun light-ro_MJ88 (JJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipColors; +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTooltipStylingKt { + public static final fun dark (Lorg/jetbrains/jewel/styling/TooltipStyle$Companion;Lorg/jetbrains/jewel/styling/TooltipColors;Lorg/jetbrains/jewel/styling/TooltipMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/TooltipStyle; + public static final fun dark-zf8z9n0 (Lorg/jetbrains/jewel/styling/TooltipColors$Companion;JJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/TooltipColors; + public static final fun light (Lorg/jetbrains/jewel/styling/TooltipStyle$Companion;Lorg/jetbrains/jewel/styling/TooltipColors;Lorg/jetbrains/jewel/styling/TooltipMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/TooltipStyle; + public static final fun light-zf8z9n0 (Lorg/jetbrains/jewel/styling/TooltipColors$Companion;JJJJLandroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/TooltipColors; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTooltipMetrics : org/jetbrains/jewel/styling/TooltipMetrics { +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiUndecoratedDropdownColorsFactory { public static final field $stable I - public synthetic fun (Landroidx/compose/foundation/layout/PaddingValues;JLandroidx/compose/foundation/shape/CornerSize;FFJLandroidx/compose/ui/Alignment$Horizontal;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Landroidx/compose/foundation/layout/PaddingValues;JLandroidx/compose/foundation/shape/CornerSize;FFJLandroidx/compose/ui/Alignment$Horizontal;Lkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public fun getBorderWidth-D9Ej5fM ()F - public fun getContentPadding ()Landroidx/compose/foundation/layout/PaddingValues; - public fun getCornerSize ()Landroidx/compose/foundation/shape/CornerSize; - public fun getShadowSize-D9Ej5fM ()F - public fun getShowDelay-UwyO8pc ()J - public fun getTooltipAlignment ()Landroidx/compose/ui/Alignment$Horizontal; - public fun getTooltipOffset-RKDOV3M ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; + public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiUndecoratedDropdownColorsFactory; + public final fun dark-0ik9mME (JJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/styling/DropdownColors; + public final fun light-0ik9mME (JJJJJJJJJJJJJJJLandroidx/compose/runtime/Composer;III)Lorg/jetbrains/jewel/styling/DropdownColors; } -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTooltipStyle : org/jetbrains/jewel/styling/TooltipStyle { +public final class org/jetbrains/jewel/intui/standalone/styling/IntUiUndecoratedDropdownStyleFactory { public static final field $stable I - public static final field Companion Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipStyle$Companion; - public fun (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipMetrics;)V - public fun equals (Ljava/lang/Object;)Z - public fun getColors ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipColors; - public synthetic fun getColors ()Lorg/jetbrains/jewel/styling/TooltipColors; - public fun getMetrics ()Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipMetrics; - public synthetic fun getMetrics ()Lorg/jetbrains/jewel/styling/TooltipMetrics; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/jetbrains/jewel/intui/standalone/styling/IntUiTooltipStyle$Companion { - public final fun dark (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipStyle; - public final fun light (Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipColors;Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipMetrics;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/intui/standalone/styling/IntUiTooltipStyle; + public static final field INSTANCE Lorg/jetbrains/jewel/intui/standalone/styling/IntUiUndecoratedDropdownStyleFactory; + public final fun dark (Lorg/jetbrains/jewel/styling/DropdownColors;Lorg/jetbrains/jewel/styling/DropdownMetrics;Lorg/jetbrains/jewel/styling/DropdownIcons;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/styling/MenuStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/DropdownStyle; + public final fun light (Lorg/jetbrains/jewel/styling/DropdownColors;Lorg/jetbrains/jewel/styling/DropdownMetrics;Lorg/jetbrains/jewel/styling/DropdownIcons;Landroidx/compose/ui/text/TextStyle;Lorg/jetbrains/jewel/styling/MenuStyle;Landroidx/compose/runtime/Composer;II)Lorg/jetbrains/jewel/styling/DropdownStyle; } diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/IntUiTheme.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/IntUiTheme.kt index 22e8e2f2c..423214ea3 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/IntUiTheme.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/IntUiTheme.kt @@ -3,7 +3,6 @@ package org.jetbrains.jewel.intui.standalone import androidx.compose.runtime.Composable import androidx.compose.runtime.CompositionLocalProvider import androidx.compose.runtime.ProvidedValue -import androidx.compose.runtime.getValue import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.font.FontFamily @@ -20,25 +19,12 @@ import org.jetbrains.jewel.intui.core.IntUiThemeDefinition import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.intui.standalone.IntUiTheme.defaultComponentStyling -import org.jetbrains.jewel.intui.standalone.styling.IntUiButtonStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiCheckboxStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiChipStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiCircularProgressStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiDividerStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiDropdownStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiGroupHeaderStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiHorizontalProgressBarStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiIconButtonStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiLabelledTextFieldStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiLazyTreeStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiLinkStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiMenuStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiRadioButtonStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiScrollbarStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiTabStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiTextAreaStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiTextFieldStyle -import org.jetbrains.jewel.intui.standalone.styling.IntUiTooltipStyle +import org.jetbrains.jewel.intui.standalone.styling.Default +import org.jetbrains.jewel.intui.standalone.styling.Editor +import org.jetbrains.jewel.intui.standalone.styling.Outlined +import org.jetbrains.jewel.intui.standalone.styling.Undecorated +import org.jetbrains.jewel.intui.standalone.styling.dark +import org.jetbrains.jewel.intui.standalone.styling.light import org.jetbrains.jewel.painter.LocalPainterHintsProvider import org.jetbrains.jewel.styling.ButtonStyle import org.jetbrains.jewel.styling.CheckboxStyle @@ -56,7 +42,9 @@ import org.jetbrains.jewel.styling.MenuStyle import org.jetbrains.jewel.styling.RadioButtonStyle import org.jetbrains.jewel.styling.ScrollbarStyle import org.jetbrains.jewel.styling.TabStyle +import org.jetbrains.jewel.styling.TextAreaStyle import org.jetbrains.jewel.styling.TextFieldStyle +import org.jetbrains.jewel.styling.TooltipStyle object IntUiTheme : BaseIntUiTheme { @@ -87,41 +75,46 @@ object IntUiTheme : BaseIntUiTheme { contentColor: Color = IntUiDarkTheme.colors.grey(12), ) = IntUiThemeDefinition(isDark = true, colors, palette, icons, metrics, defaultTextStyle, contentColor) - @Composable fun defaultComponentStyling(theme: IntUiThemeDefinition): IntelliJComponentStyling = + @Composable + fun defaultComponentStyling(theme: IntUiThemeDefinition): IntelliJComponentStyling = if (theme.isDark) darkComponentStyling() else lightComponentStyling() - @Composable fun darkComponentStyling( - defaultButtonStyle: ButtonStyle = IntUiButtonStyle.Default.dark(), - outlinedButtonStyle: ButtonStyle = IntUiButtonStyle.Outlined.dark(), - checkboxStyle: CheckboxStyle = IntUiCheckboxStyle.dark(), - chipStyle: ChipStyle = IntUiChipStyle.dark(), - dividerStyle: DividerStyle = IntUiDividerStyle.dark(), - dropdownStyle: DropdownStyle = IntUiDropdownStyle.dark(), - groupHeaderStyle: GroupHeaderStyle = IntUiGroupHeaderStyle.dark(), - labelledTextFieldStyle: LabelledTextFieldStyle = IntUiLabelledTextFieldStyle.dark(), - linkStyle: LinkStyle = IntUiLinkStyle.dark(), - menuStyle: MenuStyle = IntUiMenuStyle.dark(), - horizontalProgressBarStyle: HorizontalProgressBarStyle = IntUiHorizontalProgressBarStyle.dark(), - radioButtonStyle: RadioButtonStyle = IntUiRadioButtonStyle.dark(), - scrollbarStyle: ScrollbarStyle = IntUiScrollbarStyle.dark(), - textAreaStyle: IntUiTextAreaStyle = IntUiTextAreaStyle.dark(), - textFieldStyle: TextFieldStyle = IntUiTextFieldStyle.dark(), - lazyTreeStyle: LazyTreeStyle = IntUiLazyTreeStyle.dark(), - defaultTabStyle: TabStyle = IntUiTabStyle.Default.dark(), - editorTabStyle: TabStyle = IntUiTabStyle.Editor.dark(), - circularProgressStyle: CircularProgressStyle = IntUiCircularProgressStyle.dark(), - tooltipStyle: IntUiTooltipStyle = IntUiTooltipStyle.dark(), - iconButtonStyle: IconButtonStyle = IntUiIconButtonStyle.dark(), + @Composable + fun darkComponentStyling( + checkboxStyle: CheckboxStyle = CheckboxStyle.dark(), + chipStyle: ChipStyle = ChipStyle.dark(), + circularProgressStyle: CircularProgressStyle = CircularProgressStyle.dark(), + defaultButtonStyle: ButtonStyle = ButtonStyle.Default.dark(), + defaultTabStyle: TabStyle = TabStyle.Default.dark(), + dividerStyle: DividerStyle = DividerStyle.dark(), + dropdownStyle: DropdownStyle = DropdownStyle.Default.dark(), + editorTabStyle: TabStyle = TabStyle.Editor.dark(), + groupHeaderStyle: GroupHeaderStyle = GroupHeaderStyle.dark(), + horizontalProgressBarStyle: HorizontalProgressBarStyle = HorizontalProgressBarStyle.dark(), + iconButtonStyle: IconButtonStyle = IconButtonStyle.dark(), + labelledTextFieldStyle: LabelledTextFieldStyle = LabelledTextFieldStyle.dark(), + lazyTreeStyle: LazyTreeStyle = LazyTreeStyle.dark(), + linkStyle: LinkStyle = LinkStyle.dark(), + menuStyle: MenuStyle = MenuStyle.dark(), + outlinedButtonStyle: ButtonStyle = ButtonStyle.Outlined.dark(), + radioButtonStyle: RadioButtonStyle = RadioButtonStyle.dark(), + scrollbarStyle: ScrollbarStyle = ScrollbarStyle.dark(), + textAreaStyle: TextAreaStyle = TextAreaStyle.dark(), + textFieldStyle: TextFieldStyle = TextFieldStyle.dark(), + tooltipStyle: TooltipStyle = TooltipStyle.dark(), + undecoratedDropdownStyle: DropdownStyle = DropdownStyle.Undecorated.dark(), ) = IntelliJComponentStyling( checkboxStyle = checkboxStyle, chipStyle = chipStyle, + circularProgressStyle = circularProgressStyle, defaultButtonStyle = defaultButtonStyle, + defaultDropdownStyle = dropdownStyle, defaultTabStyle = defaultTabStyle, dividerStyle = dividerStyle, - dropdownStyle = dropdownStyle, editorTabStyle = editorTabStyle, groupHeaderStyle = groupHeaderStyle, horizontalProgressBarStyle = horizontalProgressBarStyle, + iconButtonStyle = iconButtonStyle, labelledTextFieldStyle = labelledTextFieldStyle, lazyTreeStyle = lazyTreeStyle, linkStyle = linkStyle, @@ -131,43 +124,46 @@ object IntUiTheme : BaseIntUiTheme { scrollbarStyle = scrollbarStyle, textAreaStyle = textAreaStyle, textFieldStyle = textFieldStyle, - circularProgressStyle = circularProgressStyle, tooltipStyle = tooltipStyle, - iconButtonStyle = iconButtonStyle, + undecoratedDropdownStyle = undecoratedDropdownStyle, ) - @Composable fun lightComponentStyling( - defaultButtonStyle: ButtonStyle = IntUiButtonStyle.Default.light(), - outlinedButtonStyle: ButtonStyle = IntUiButtonStyle.Outlined.light(), - checkboxStyle: CheckboxStyle = IntUiCheckboxStyle.light(), - chipStyle: ChipStyle = IntUiChipStyle.light(), - dividerStyle: DividerStyle = IntUiDividerStyle.light(), - dropdownStyle: DropdownStyle = IntUiDropdownStyle.light(), - groupHeaderStyle: GroupHeaderStyle = IntUiGroupHeaderStyle.light(), - labelledTextFieldStyle: LabelledTextFieldStyle = IntUiLabelledTextFieldStyle.light(), - linkStyle: LinkStyle = IntUiLinkStyle.light(), - menuStyle: MenuStyle = IntUiMenuStyle.light(), - horizontalProgressBarStyle: HorizontalProgressBarStyle = IntUiHorizontalProgressBarStyle.light(), - radioButtonStyle: RadioButtonStyle = IntUiRadioButtonStyle.light(), - scrollbarStyle: ScrollbarStyle = IntUiScrollbarStyle.light(), - textAreaStyle: IntUiTextAreaStyle = IntUiTextAreaStyle.light(), - textFieldStyle: TextFieldStyle = IntUiTextFieldStyle.light(), - lazyTreeStyle: LazyTreeStyle = IntUiLazyTreeStyle.light(), - defaultTabStyle: TabStyle = IntUiTabStyle.Default.light(), - editorTabStyle: TabStyle = IntUiTabStyle.Editor.light(), - circularProgressStyle: CircularProgressStyle = IntUiCircularProgressStyle.light(), - tooltipStyle: IntUiTooltipStyle = IntUiTooltipStyle.light(), - iconButtonStyle: IconButtonStyle = IntUiIconButtonStyle.light(), + @Composable + fun lightComponentStyling( + checkboxStyle: CheckboxStyle = CheckboxStyle.light(), + chipStyle: ChipStyle = ChipStyle.light(), + circularProgressStyle: CircularProgressStyle = CircularProgressStyle.light(), + defaultButtonStyle: ButtonStyle = ButtonStyle.Default.light(), + defaultTabStyle: TabStyle = TabStyle.Default.light(), + dividerStyle: DividerStyle = DividerStyle.light(), + dropdownStyle: DropdownStyle = DropdownStyle.Default.light(), + editorTabStyle: TabStyle = TabStyle.Editor.light(), + groupHeaderStyle: GroupHeaderStyle = GroupHeaderStyle.light(), + horizontalProgressBarStyle: HorizontalProgressBarStyle = HorizontalProgressBarStyle.light(), + iconButtonStyle: IconButtonStyle = IconButtonStyle.light(), + labelledTextFieldStyle: LabelledTextFieldStyle = LabelledTextFieldStyle.light(), + lazyTreeStyle: LazyTreeStyle = LazyTreeStyle.light(), + linkStyle: LinkStyle = LinkStyle.light(), + menuStyle: MenuStyle = MenuStyle.light(), + outlinedButtonStyle: ButtonStyle = ButtonStyle.Outlined.light(), + radioButtonStyle: RadioButtonStyle = RadioButtonStyle.light(), + scrollbarStyle: ScrollbarStyle = ScrollbarStyle.light(), + textAreaStyle: TextAreaStyle = TextAreaStyle.light(), + textFieldStyle: TextFieldStyle = TextFieldStyle.light(), + tooltipStyle: TooltipStyle = TooltipStyle.light(), + undecoratedDropdownStyle: DropdownStyle = DropdownStyle.Undecorated.light(), ) = IntelliJComponentStyling( checkboxStyle = checkboxStyle, chipStyle = chipStyle, + circularProgressStyle = circularProgressStyle, defaultButtonStyle = defaultButtonStyle, + defaultDropdownStyle = dropdownStyle, defaultTabStyle = defaultTabStyle, dividerStyle = dividerStyle, - dropdownStyle = dropdownStyle, editorTabStyle = editorTabStyle, groupHeaderStyle = groupHeaderStyle, horizontalProgressBarStyle = horizontalProgressBarStyle, + iconButtonStyle = iconButtonStyle, labelledTextFieldStyle = labelledTextFieldStyle, lazyTreeStyle = lazyTreeStyle, linkStyle = linkStyle, @@ -177,21 +173,23 @@ object IntUiTheme : BaseIntUiTheme { scrollbarStyle = scrollbarStyle, textAreaStyle = textAreaStyle, textFieldStyle = textFieldStyle, - circularProgressStyle = circularProgressStyle, tooltipStyle = tooltipStyle, - iconButtonStyle = iconButtonStyle, + undecoratedDropdownStyle = undecoratedDropdownStyle, ) } -@Composable fun IntUiTheme( +@Composable +fun IntUiTheme( theme: IntUiThemeDefinition, componentStyling: @Composable () -> Array>, swingCompatMode: Boolean = false, content: @Composable () -> Unit, ) { - BaseIntUiTheme(theme, { - defaultComponentStyling(theme).providedStyles() + componentStyling() - }, swingCompatMode) { + BaseIntUiTheme( + theme, + componentStyling = { defaultComponentStyling(theme).providedStyles() + componentStyling() }, + swingCompatMode, + ) { CompositionLocalProvider( LocalPainterHintsProvider provides StandalonePainterHintsProvider(theme), ) { diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiButtonStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiButtonStyling.kt index 7ac2d1aeb..46f69f41e 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiButtonStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiButtonStyling.kt @@ -3,253 +3,216 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable -import androidx.compose.runtime.Stable import androidx.compose.ui.graphics.Brush import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpSize import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme -import org.jetbrains.jewel.intui.standalone.IntUiTheme import org.jetbrains.jewel.styling.ButtonColors import org.jetbrains.jewel.styling.ButtonMetrics import org.jetbrains.jewel.styling.ButtonStyle -@Stable -@GenerateDataFunctions -class IntUiButtonStyle( - override val colors: IntUiButtonColors, - override val metrics: IntUiButtonMetrics, -) : ButtonStyle { - - object Default { - - @Composable - fun light( - colors: IntUiButtonColors = IntUiButtonColors.Default.light(), - metrics: IntUiButtonMetrics = IntUiButtonMetrics.Default.create(), - ): ButtonStyle = IntUiButtonStyle(colors, metrics) - - @Composable - fun dark( - colors: IntUiButtonColors = IntUiButtonColors.Default.dark(), - metrics: IntUiButtonMetrics = IntUiButtonMetrics.Default.create(), - ): ButtonStyle = IntUiButtonStyle(colors, metrics) - } - - object Outlined { - - @Composable - fun light( - colors: IntUiButtonColors = IntUiButtonColors.Outlined.light(), - metrics: IntUiButtonMetrics = IntUiButtonMetrics.Outlined.create(), - ): ButtonStyle = IntUiButtonStyle(colors, metrics) - - @Composable - fun dark( - colors: IntUiButtonColors = IntUiButtonColors.Outlined.dark(), - metrics: IntUiButtonMetrics = IntUiButtonMetrics.Outlined.create(), - ): ButtonStyle = IntUiButtonStyle(colors, metrics) - } +val ButtonStyle.Companion.Default: IntUiDefaultButtonStyleFactory + get() = IntUiDefaultButtonStyleFactory + +object IntUiDefaultButtonStyleFactory { + + @Composable + fun light( + colors: ButtonColors = ButtonColors.Default.light(), + metrics: ButtonMetrics = ButtonMetrics.default(), + ) = ButtonStyle(colors, metrics) + + @Composable + fun dark( + colors: ButtonColors = ButtonColors.Default.dark(), + metrics: ButtonMetrics = ButtonMetrics.default(), + ) = ButtonStyle(colors, metrics) } -@Immutable -@GenerateDataFunctions -class IntUiButtonColors( - override val background: Brush, - override val backgroundDisabled: Brush, - override val backgroundFocused: Brush, - override val backgroundPressed: Brush, - override val backgroundHovered: Brush, - override val content: Color, - override val contentDisabled: Color, - override val contentFocused: Color, - override val contentPressed: Color, - override val contentHovered: Color, - override val border: Brush, - override val borderDisabled: Brush, - override val borderFocused: Brush, - override val borderPressed: Brush, - override val borderHovered: Brush, -) : ButtonColors { - - object Default { - - @Composable - fun light( - background: Brush = SolidColor(IntUiLightTheme.colors.blue(4)), - backgroundDisabled: Brush = SolidColor(IntUiLightTheme.colors.grey(12)), - backgroundFocused: Brush = SolidColor(IntUiLightTheme.colors.blue(4)), - backgroundPressed: Brush = SolidColor(IntUiLightTheme.colors.blue(2)), - backgroundHovered: Brush = SolidColor(IntUiLightTheme.colors.blue(3)), - content: Color = IntUiLightTheme.colors.grey(14), - contentDisabled: Color = IntUiLightTheme.colors.grey(8), - contentFocused: Color = IntUiLightTheme.colors.grey(14), - contentPressed: Color = IntUiLightTheme.colors.grey(14), - contentHovered: Color = IntUiLightTheme.colors.grey(14), - border: Brush = SolidColor(IntUiLightTheme.colors.blue(4)), - borderDisabled: Brush = SolidColor(IntUiLightTheme.colors.grey(11)), - borderFocused: Brush = SolidColor(IntUiLightTheme.colors.blue(4)), - borderPressed: Brush = border, - borderHovered: Brush = border, - ) = IntUiButtonColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - ) - - @Composable - fun dark( - background: Brush = SolidColor(IntUiDarkTheme.colors.blue(6)), - backgroundDisabled: Brush = SolidColor(IntUiDarkTheme.colors.grey(5)), - backgroundFocused: Brush = SolidColor(IntUiDarkTheme.colors.blue(6)), - backgroundPressed: Brush = SolidColor(IntUiDarkTheme.colors.blue(4)), - backgroundHovered: Brush = SolidColor(IntUiDarkTheme.colors.blue(5)), - content: Color = IntUiDarkTheme.colors.grey(14), - contentDisabled: Color = IntUiDarkTheme.colors.grey(8), - contentFocused: Color = IntUiDarkTheme.colors.grey(14), - contentPressed: Color = IntUiDarkTheme.colors.grey(14), - contentHovered: Color = IntUiDarkTheme.colors.grey(14), - border: Brush = SolidColor(IntUiDarkTheme.colors.blue(6)), - borderDisabled: Brush = SolidColor(IntUiDarkTheme.colors.grey(4)), - borderFocused: Brush = SolidColor(IntUiDarkTheme.colors.grey(1)), - borderPressed: Brush = border, - borderHovered: Brush = border, - ) = IntUiButtonColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - ) - } - - object Outlined { - - @Composable - fun light( - background: Brush = SolidColor(Color.Transparent), - backgroundDisabled: Brush = SolidColor(IntUiTheme.colorPalette.grey(12)), - backgroundFocused: Brush = SolidColor(Color.Transparent), - backgroundPressed: Brush = SolidColor(IntUiTheme.colorPalette.grey(13)), - backgroundHovered: Brush = SolidColor(Color.Transparent), - content: Color = IntUiTheme.colorPalette.grey(1), - contentDisabled: Color = IntUiTheme.colorPalette.grey(8), - contentFocused: Color = IntUiTheme.colorPalette.grey(1), - contentPressed: Color = IntUiTheme.colorPalette.grey(1), - contentHovered: Color = IntUiTheme.colorPalette.grey(1), - border: Brush = SolidColor(IntUiTheme.colorPalette.grey(9)), - borderDisabled: Brush = SolidColor(IntUiTheme.colorPalette.blue(11)), - borderFocused: Brush = SolidColor(IntUiTheme.colorPalette.blue(4)), - borderPressed: Brush = SolidColor(IntUiTheme.colorPalette.grey(7)), - borderHovered: Brush = SolidColor(IntUiTheme.colorPalette.grey(8)), - ) = IntUiButtonColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - ) - - @Composable - fun dark( - background: Brush = SolidColor(Color.Transparent), - backgroundDisabled: Brush = SolidColor(IntUiTheme.colorPalette.grey(5)), - backgroundFocused: Brush = SolidColor(IntUiTheme.colorPalette.grey(6)), - backgroundPressed: Brush = SolidColor(IntUiTheme.colorPalette.grey(2)), - backgroundHovered: Brush = SolidColor(Color.Unspecified), - content: Color = IntUiTheme.colorPalette.grey(12), - contentDisabled: Color = IntUiTheme.colorPalette.grey(8), - contentFocused: Color = IntUiTheme.colorPalette.grey(12), - contentPressed: Color = IntUiTheme.colorPalette.grey(12), - contentHovered: Color = IntUiTheme.colorPalette.grey(12), - border: Brush = SolidColor(IntUiTheme.colorPalette.grey(5)), - borderDisabled: Brush = SolidColor(IntUiTheme.colorPalette.blue(4)), - borderFocused: Brush = SolidColor(IntUiTheme.colorPalette.grey(2)), - borderPressed: Brush = SolidColor(IntUiTheme.colorPalette.grey(7)), - borderHovered: Brush = SolidColor(IntUiTheme.colorPalette.grey(7)), - ) = IntUiButtonColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - ) - } +val ButtonStyle.Companion.Outlined: IntUiOutlinedButtonStyleFactory + get() = IntUiOutlinedButtonStyleFactory + +object IntUiOutlinedButtonStyleFactory { + + @Composable + fun light( + colors: ButtonColors = ButtonColors.Outlined.light(), + metrics: ButtonMetrics = ButtonMetrics.outlined(), + ) = ButtonStyle(colors, metrics) + + @Composable + fun dark( + colors: ButtonColors = ButtonColors.Outlined.dark(), + metrics: ButtonMetrics = ButtonMetrics.outlined(), + ) = ButtonStyle(colors, metrics) +} + +val ButtonColors.Companion.Default: IntUiDefaultButtonColorFactory + get() = IntUiDefaultButtonColorFactory + +object IntUiDefaultButtonColorFactory { + + @Composable + fun light( + background: Brush = SolidColor(IntUiLightTheme.colors.blue(4)), + backgroundDisabled: Brush = SolidColor(IntUiLightTheme.colors.grey(12)), + backgroundFocused: Brush = SolidColor(IntUiLightTheme.colors.blue(4)), + backgroundPressed: Brush = SolidColor(IntUiLightTheme.colors.blue(2)), + backgroundHovered: Brush = SolidColor(IntUiLightTheme.colors.blue(3)), + content: Color = IntUiLightTheme.colors.grey(14), + contentDisabled: Color = IntUiLightTheme.colors.grey(8), + contentFocused: Color = IntUiLightTheme.colors.grey(14), + contentPressed: Color = IntUiLightTheme.colors.grey(14), + contentHovered: Color = IntUiLightTheme.colors.grey(14), + border: Brush = SolidColor(IntUiLightTheme.colors.blue(4)), + borderDisabled: Brush = SolidColor(IntUiLightTheme.colors.grey(11)), + borderFocused: Brush = SolidColor(IntUiLightTheme.colors.blue(4)), + borderPressed: Brush = border, + borderHovered: Brush = border, + ) = ButtonColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + ) + + @Composable + fun dark( + background: Brush = SolidColor(IntUiDarkTheme.colors.blue(6)), + backgroundDisabled: Brush = SolidColor(IntUiDarkTheme.colors.grey(5)), + backgroundFocused: Brush = SolidColor(IntUiDarkTheme.colors.blue(6)), + backgroundPressed: Brush = SolidColor(IntUiDarkTheme.colors.blue(4)), + backgroundHovered: Brush = SolidColor(IntUiDarkTheme.colors.blue(5)), + content: Color = IntUiDarkTheme.colors.grey(14), + contentDisabled: Color = IntUiDarkTheme.colors.grey(8), + contentFocused: Color = IntUiDarkTheme.colors.grey(14), + contentPressed: Color = IntUiDarkTheme.colors.grey(14), + contentHovered: Color = IntUiDarkTheme.colors.grey(14), + border: Brush = SolidColor(IntUiDarkTheme.colors.blue(6)), + borderDisabled: Brush = SolidColor(IntUiDarkTheme.colors.grey(4)), + borderFocused: Brush = SolidColor(IntUiDarkTheme.colors.grey(1)), + borderPressed: Brush = border, + borderHovered: Brush = border, + ) = ButtonColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + ) } -@Stable -@GenerateDataFunctions -class IntUiButtonMetrics( - override val cornerSize: CornerSize, - override val padding: PaddingValues, - override val minSize: DpSize, - override val borderWidth: Dp, -) : ButtonMetrics { - - object Default { - - fun create( - cornerSize: CornerSize = CornerSize(4.dp), - padding: PaddingValues = PaddingValues(horizontal = 12.dp, vertical = 6.dp), - minSize: DpSize = DpSize(72.dp, 28.dp), - borderWidth: Dp = 0.dp, - ) = IntUiButtonMetrics(cornerSize, padding, minSize, borderWidth) - } - - object Outlined { - - fun create( - cornerSize: CornerSize = CornerSize(4.dp), - padding: PaddingValues = PaddingValues(horizontal = 12.dp, vertical = 6.dp), - minSize: DpSize = DpSize(72.dp, 28.dp), - borderWidth: Dp = 1.dp, - ) = IntUiButtonMetrics(cornerSize, padding, minSize, borderWidth) - } +val ButtonColors.Companion.Outlined: IntUiOutlinedButtonColorFactory + get() = IntUiOutlinedButtonColorFactory + +object IntUiOutlinedButtonColorFactory { + + @Composable + fun light( + background: Brush = SolidColor(Color.Transparent), + backgroundDisabled: Brush = SolidColor(IntUiLightTheme.colors.grey(12)), + backgroundFocused: Brush = SolidColor(Color.Transparent), + backgroundPressed: Brush = SolidColor(IntUiLightTheme.colors.grey(13)), + backgroundHovered: Brush = SolidColor(Color.Transparent), + content: Color = IntUiLightTheme.colors.grey(1), + contentDisabled: Color = IntUiLightTheme.colors.grey(8), + contentFocused: Color = IntUiLightTheme.colors.grey(1), + contentPressed: Color = IntUiLightTheme.colors.grey(1), + contentHovered: Color = IntUiLightTheme.colors.grey(1), + border: Brush = SolidColor(IntUiLightTheme.colors.grey(9)), + borderDisabled: Brush = SolidColor(IntUiLightTheme.colors.blue(11)), + borderFocused: Brush = SolidColor(IntUiLightTheme.colors.blue(4)), + borderPressed: Brush = SolidColor(IntUiLightTheme.colors.grey(7)), + borderHovered: Brush = SolidColor(IntUiLightTheme.colors.grey(8)), + ) = ButtonColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + ) + + @Composable + fun dark( + background: Brush = SolidColor(Color.Transparent), + backgroundDisabled: Brush = SolidColor(IntUiDarkTheme.colors.grey(5)), + backgroundFocused: Brush = SolidColor(IntUiDarkTheme.colors.grey(6)), + backgroundPressed: Brush = SolidColor(IntUiDarkTheme.colors.grey(2)), + backgroundHovered: Brush = SolidColor(Color.Unspecified), + content: Color = IntUiDarkTheme.colors.grey(12), + contentDisabled: Color = IntUiDarkTheme.colors.grey(8), + contentFocused: Color = IntUiDarkTheme.colors.grey(12), + contentPressed: Color = IntUiDarkTheme.colors.grey(12), + contentHovered: Color = IntUiDarkTheme.colors.grey(12), + border: Brush = SolidColor(IntUiDarkTheme.colors.grey(5)), + borderDisabled: Brush = SolidColor(IntUiDarkTheme.colors.blue(4)), + borderFocused: Brush = SolidColor(IntUiDarkTheme.colors.grey(2)), + borderPressed: Brush = SolidColor(IntUiDarkTheme.colors.grey(7)), + borderHovered: Brush = SolidColor(IntUiDarkTheme.colors.grey(7)), + ) = ButtonColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + ) } + +fun ButtonMetrics.Companion.default( + cornerSize: CornerSize = CornerSize(4.dp), + padding: PaddingValues = PaddingValues(horizontal = 12.dp, vertical = 6.dp), + minSize: DpSize = DpSize(72.dp, 28.dp), + borderWidth: Dp = 0.dp, +) = ButtonMetrics(cornerSize, padding, minSize, borderWidth) + +fun ButtonMetrics.Companion.outlined( + cornerSize: CornerSize = CornerSize(4.dp), + padding: PaddingValues = PaddingValues(horizontal = 12.dp, vertical = 6.dp), + minSize: DpSize = DpSize(72.dp, 28.dp), + borderWidth: Dp = 1.dp, +) = ButtonMetrics(cornerSize, padding, minSize, borderWidth) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxStyling.kt index 0685b19c6..ba9c34b6d 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiCheckboxStyling.kt @@ -2,13 +2,11 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpOffset import androidx.compose.ui.unit.DpSize import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.intui.standalone.standalonePainterProvider @@ -18,108 +16,52 @@ import org.jetbrains.jewel.styling.CheckboxIcons import org.jetbrains.jewel.styling.CheckboxMetrics import org.jetbrains.jewel.styling.CheckboxStyle -@Immutable -@GenerateDataFunctions -class IntUiCheckboxStyle( - override val colors: IntUiCheckboxColors, - override val metrics: IntUiCheckboxMetrics, - override val icons: IntUiCheckboxIcons, -) : CheckboxStyle { +@Composable +fun CheckboxStyle.Companion.light( + colors: CheckboxColors = CheckboxColors.light(), + metrics: CheckboxMetrics = CheckboxMetrics.defaults(), + icons: CheckboxIcons = CheckboxIcons.light(), +) = CheckboxStyle(colors, metrics, icons) - companion object { +@Composable +fun CheckboxStyle.Companion.dark( + colors: CheckboxColors = CheckboxColors.dark(), + metrics: CheckboxMetrics = CheckboxMetrics.defaults(), + icons: CheckboxIcons = CheckboxIcons.dark(), +) = CheckboxStyle(colors, metrics, icons) - @Composable fun light( - colors: IntUiCheckboxColors = IntUiCheckboxColors.light(), - metrics: IntUiCheckboxMetrics = IntUiCheckboxMetrics(), - icons: IntUiCheckboxIcons = IntUiCheckboxIcons.light(), - ) = IntUiCheckboxStyle(colors, metrics, icons) +@Composable +fun CheckboxColors.Companion.light( + content: Color = Color.Unspecified, + contentDisabled: Color = IntUiLightTheme.colors.grey(8), + contentSelected: Color = content, +) = CheckboxColors(content, contentDisabled, contentSelected) - @Composable fun dark( - colors: IntUiCheckboxColors = IntUiCheckboxColors.dark(), - metrics: IntUiCheckboxMetrics = IntUiCheckboxMetrics(), - icons: IntUiCheckboxIcons = IntUiCheckboxIcons.dark(), - ) = IntUiCheckboxStyle(colors, metrics, icons) - } -} +@Composable +fun CheckboxColors.Companion.dark( + content: Color = Color.Unspecified, + contentDisabled: Color = IntUiDarkTheme.colors.grey(7), + contentSelected: Color = content, +) = CheckboxColors(content, contentDisabled, contentSelected) -@Immutable -@GenerateDataFunctions -class IntUiCheckboxColors( - override val checkboxBackground: Color, - override val checkboxBackgroundDisabled: Color, - override val checkboxBackgroundSelected: Color, - override val content: Color, - override val contentDisabled: Color, - override val contentSelected: Color, -) : CheckboxColors { +fun CheckboxMetrics.Companion.defaults( + checkboxSize: DpSize = DpSize(19.dp, 19.dp), + checkboxCornerSize: CornerSize = CornerSize(3.dp), + outlineSize: DpSize = DpSize(15.dp, 15.dp), + outlineOffset: DpOffset = DpOffset(2.5.dp, 1.5.dp), + iconContentGap: Dp = 5.dp, +) = CheckboxMetrics(checkboxSize, checkboxCornerSize, outlineSize, outlineOffset, iconContentGap) - companion object { +@Composable +fun CheckboxIcons.Companion.light( + checkbox: PainterProvider = checkbox("com/intellij/ide/ui/laf/icons/intellij/checkBox.svg"), +) = CheckboxIcons(checkbox) - @Composable fun light( - background: Color = IntUiLightTheme.colors.grey(14), - backgroundDisabled: Color = IntUiLightTheme.colors.grey(13), - backgroundSelected: Color = IntUiLightTheme.colors.blue(4), - content: Color = Color.Unspecified, - contentDisabled: Color = IntUiLightTheme.colors.grey(8), - contentSelected: Color = content, - ) = IntUiCheckboxColors( - background, - backgroundDisabled, - backgroundSelected, - content, - contentDisabled, - contentSelected, - ) +@Composable +fun CheckboxIcons.Companion.dark( + checkbox: PainterProvider = checkbox("com/intellij/ide/ui/laf/icons/darcula/checkBox.svg"), +) = CheckboxIcons(checkbox) - @Composable fun dark( - background: Color = Color.Unspecified, - backgroundDisabled: Color = IntUiDarkTheme.colors.grey(3), - backgroundSelected: Color = IntUiDarkTheme.colors.blue(6), - content: Color = Color.Unspecified, - contentDisabled: Color = IntUiDarkTheme.colors.grey(7), - contentSelected: Color = content, - ) = IntUiCheckboxColors( - background, - backgroundDisabled, - backgroundSelected, - content, - contentDisabled, - contentSelected, - ) - } -} - -@Immutable -@GenerateDataFunctions -class IntUiCheckboxMetrics( - override val checkboxSize: DpSize = DpSize(19.dp, 19.dp), - override val checkboxCornerSize: CornerSize = CornerSize(3.dp), - override val outlineSize: DpSize = DpSize(15.dp, 15.dp), - override val outlineOffset: DpOffset = DpOffset(2.5.dp, 1.5.dp), - override val iconContentGap: Dp = 5.dp, -) : CheckboxMetrics - -@Immutable -@GenerateDataFunctions -class IntUiCheckboxIcons( - override val checkbox: PainterProvider, -) : CheckboxIcons { - - companion object { - - @Composable - fun checkbox( - basePath: String = "com/intellij/ide/ui/laf/icons/intellij/checkBox.svg", - ): PainterProvider = standalonePainterProvider(basePath) - - @Composable - fun light( - checkbox: PainterProvider = checkbox("com/intellij/ide/ui/laf/icons/intellij/checkBox.svg"), - ) = IntUiCheckboxIcons(checkbox) - - @Composable - fun dark( - checkbox: PainterProvider = checkbox("com/intellij/ide/ui/laf/icons/darcula/checkBox.svg"), - ) = IntUiCheckboxIcons(checkbox) - } -} +@Composable +private fun checkbox(basePath: String): PainterProvider = + standalonePainterProvider(basePath) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiChipStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiChipStyling.kt index 32d79f38b..910e8ec8e 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiChipStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiChipStyling.kt @@ -3,217 +3,162 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable -import androidx.compose.runtime.Stable import androidx.compose.ui.graphics.Brush import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.styling.ChipColors import org.jetbrains.jewel.styling.ChipMetrics import org.jetbrains.jewel.styling.ChipStyle -@Stable -@GenerateDataFunctions -class IntUiChipStyle( - override val colors: IntUiChipColors, - override val metrics: IntUiChipMetrics, -) : ChipStyle { +@Composable +fun ChipStyle.Companion.light( + colors: ChipColors = ChipColors.light(), + metrics: ChipMetrics = ChipMetrics.defaults(), +) = ChipStyle(colors, metrics) - companion object { +@Composable +fun ChipStyle.Companion.dark( + colors: ChipColors = ChipColors.dark(), + metrics: ChipMetrics = ChipMetrics.defaults(), +) = ChipStyle(colors, metrics) - @Composable - fun light( - colors: IntUiChipColors = IntUiChipColors.light(), - metrics: IntUiChipMetrics = IntUiChipMetrics(), - ) = IntUiChipStyle(colors, metrics) +@Composable +fun ChipColors.Companion.light( + background: Brush = SolidColor(IntUiLightTheme.colors.grey(14)), + backgroundDisabled: Brush = SolidColor(IntUiLightTheme.colors.grey(12)), + backgroundFocused: Brush = background, + backgroundPressed: Brush = SolidColor(IntUiLightTheme.colors.grey(13)), + backgroundHovered: Brush = background, + backgroundSelected: Brush = background, + backgroundSelectedDisabled: Brush = backgroundDisabled, + backgroundSelectedFocused: Brush = background, + backgroundSelectedPressed: Brush = background, + backgroundSelectedHovered: Brush = background, + content: Color = IntUiLightTheme.colors.grey(1), + contentDisabled: Color = IntUiLightTheme.colors.grey(8), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + contentSelected: Color = content, + contentSelectedDisabled: Color = contentDisabled, + contentSelectedFocused: Color = content, + contentSelectedPressed: Color = content, + contentSelectedHovered: Color = content, + border: Color = IntUiLightTheme.colors.grey(9), + borderDisabled: Color = IntUiLightTheme.colors.grey(6), + borderFocused: Color = IntUiLightTheme.colors.blue(4), + borderPressed: Color = IntUiLightTheme.colors.grey(7), + borderHovered: Color = IntUiLightTheme.colors.grey(8), + borderSelected: Color = IntUiLightTheme.colors.blue(4), + borderSelectedDisabled: Color = borderSelected, + borderSelectedFocused: Color = borderSelected, + borderSelectedPressed: Color = borderSelected, + borderSelectedHovered: Color = borderSelected, +) = ChipColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + backgroundSelected, + backgroundSelectedDisabled, + backgroundSelectedPressed, + backgroundSelectedFocused, + backgroundSelectedHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + contentSelected, + contentSelectedDisabled, + contentSelectedPressed, + contentSelectedFocused, + contentSelectedHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + borderSelected, + borderSelectedDisabled, + borderSelectedPressed, + borderSelectedFocused, + borderSelectedHovered, +) - @Composable - fun dark( - colors: IntUiChipColors = IntUiChipColors.dark(), - metrics: IntUiChipMetrics = IntUiChipMetrics(), - ) = IntUiChipStyle(colors, metrics) - } -} +@Composable +fun ChipColors.Companion.dark( + background: Brush = SolidColor(IntUiDarkTheme.colors.grey(2)), + backgroundDisabled: Brush = SolidColor(IntUiDarkTheme.colors.grey(5)), + backgroundFocused: Brush = background, + backgroundPressed: Brush = background, + backgroundHovered: Brush = background, + backgroundSelected: Brush = background, + backgroundSelectedDisabled: Brush = backgroundDisabled, + backgroundSelectedFocused: Brush = background, + backgroundSelectedPressed: Brush = background, + backgroundSelectedHovered: Brush = background, + content: Color = IntUiDarkTheme.colors.grey(12), + contentDisabled: Color = IntUiDarkTheme.colors.grey(8), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + contentSelected: Color = content, + contentSelectedDisabled: Color = contentDisabled, + contentSelectedFocused: Color = content, + contentSelectedPressed: Color = content, + contentSelectedHovered: Color = content, + border: Color = IntUiDarkTheme.colors.grey(5), + borderDisabled: Color = IntUiDarkTheme.colors.grey(6), + borderFocused: Color = IntUiDarkTheme.colors.blue(6), + borderPressed: Color = IntUiDarkTheme.colors.grey(7), + borderHovered: Color = borderPressed, + borderSelected: Color = IntUiDarkTheme.colors.blue(6), + borderSelectedDisabled: Color = borderSelected, + borderSelectedFocused: Color = borderSelected, + borderSelectedPressed: Color = borderSelected, + borderSelectedHovered: Color = borderSelected, +) = ChipColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + backgroundSelected, + backgroundSelectedDisabled, + backgroundSelectedPressed, + backgroundSelectedFocused, + backgroundSelectedHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + contentSelected, + contentSelectedDisabled, + contentSelectedPressed, + contentSelectedFocused, + contentSelectedHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + borderSelected, + borderSelectedDisabled, + borderSelectedPressed, + borderSelectedFocused, + borderSelectedHovered, +) -@Immutable -@GenerateDataFunctions -class IntUiChipColors( - override val background: Brush, - override val backgroundDisabled: Brush, - override val backgroundFocused: Brush, - override val backgroundPressed: Brush, - override val backgroundHovered: Brush, - override val backgroundSelected: Brush, - override val backgroundSelectedDisabled: Brush, - override val backgroundSelectedPressed: Brush, - override val backgroundSelectedFocused: Brush, - override val backgroundSelectedHovered: Brush, - override val content: Color, - override val contentDisabled: Color, - override val contentFocused: Color, - override val contentPressed: Color, - override val contentHovered: Color, - override val contentSelected: Color, - override val contentSelectedDisabled: Color, - override val contentSelectedPressed: Color, - override val contentSelectedFocused: Color, - override val contentSelectedHovered: Color, - override val border: Color, - override val borderDisabled: Color, - override val borderFocused: Color, - override val borderPressed: Color, - override val borderHovered: Color, - override val borderSelected: Color, - override val borderSelectedDisabled: Color, - override val borderSelectedPressed: Color, - override val borderSelectedFocused: Color, - override val borderSelectedHovered: Color, -) : ChipColors { - - companion object { - - @Composable - fun light( - background: Brush = SolidColor(IntUiLightTheme.colors.grey(14)), - backgroundDisabled: Brush = SolidColor(IntUiLightTheme.colors.grey(12)), - backgroundFocused: Brush = background, - backgroundPressed: Brush = SolidColor(IntUiLightTheme.colors.grey(13)), - backgroundHovered: Brush = background, - backgroundSelected: Brush = background, - backgroundSelectedDisabled: Brush = backgroundDisabled, - backgroundSelectedFocused: Brush = background, - backgroundSelectedPressed: Brush = background, - backgroundSelectedHovered: Brush = background, - content: Color = IntUiLightTheme.colors.grey(1), - contentDisabled: Color = IntUiLightTheme.colors.grey(8), - contentFocused: Color = content, - contentPressed: Color = content, - contentHovered: Color = content, - contentSelected: Color = content, - contentSelectedDisabled: Color = contentDisabled, - contentSelectedFocused: Color = content, - contentSelectedPressed: Color = content, - contentSelectedHovered: Color = content, - border: Color = IntUiLightTheme.colors.grey(9), - borderDisabled: Color = IntUiLightTheme.colors.grey(6), - borderFocused: Color = IntUiLightTheme.colors.blue(4), - borderPressed: Color = IntUiLightTheme.colors.grey(7), - borderHovered: Color = IntUiLightTheme.colors.grey(8), - borderSelected: Color = IntUiLightTheme.colors.blue(4), - borderSelectedDisabled: Color = borderSelected, - borderSelectedFocused: Color = borderSelected, - borderSelectedPressed: Color = borderSelected, - borderSelectedHovered: Color = borderSelected, - ) = IntUiChipColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - backgroundSelected, - backgroundSelectedDisabled, - backgroundSelectedPressed, - backgroundSelectedFocused, - backgroundSelectedHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - contentSelected, - contentSelectedDisabled, - contentSelectedPressed, - contentSelectedFocused, - contentSelectedHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - borderSelected, - borderSelectedDisabled, - borderSelectedPressed, - borderSelectedFocused, - borderSelectedHovered, - ) - - @Composable - fun dark( - background: Brush = SolidColor(IntUiDarkTheme.colors.grey(2)), - backgroundDisabled: Brush = SolidColor(IntUiDarkTheme.colors.grey(5)), - backgroundFocused: Brush = background, - backgroundPressed: Brush = background, - backgroundHovered: Brush = background, - backgroundSelected: Brush = background, - backgroundSelectedDisabled: Brush = backgroundDisabled, - backgroundSelectedFocused: Brush = background, - backgroundSelectedPressed: Brush = background, - backgroundSelectedHovered: Brush = background, - content: Color = IntUiDarkTheme.colors.grey(12), - contentDisabled: Color = IntUiDarkTheme.colors.grey(8), - contentFocused: Color = content, - contentPressed: Color = content, - contentHovered: Color = content, - contentSelected: Color = content, - contentSelectedDisabled: Color = contentDisabled, - contentSelectedFocused: Color = content, - contentSelectedPressed: Color = content, - contentSelectedHovered: Color = content, - border: Color = IntUiDarkTheme.colors.grey(5), - borderDisabled: Color = IntUiDarkTheme.colors.grey(6), - borderFocused: Color = IntUiDarkTheme.colors.blue(6), - borderPressed: Color = IntUiDarkTheme.colors.grey(7), - borderHovered: Color = borderPressed, - borderSelected: Color = IntUiDarkTheme.colors.blue(6), - borderSelectedDisabled: Color = borderSelected, - borderSelectedFocused: Color = borderSelected, - borderSelectedPressed: Color = borderSelected, - borderSelectedHovered: Color = borderSelected, - ) = IntUiChipColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - backgroundSelected, - backgroundSelectedDisabled, - backgroundSelectedPressed, - backgroundSelectedFocused, - backgroundSelectedHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - contentSelected, - contentSelectedDisabled, - contentSelectedPressed, - contentSelectedFocused, - contentSelectedHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - borderSelected, - borderSelectedDisabled, - borderSelectedPressed, - borderSelectedFocused, - borderSelectedHovered, - ) - } -} - -@Stable -@GenerateDataFunctions -class IntUiChipMetrics( - override val cornerSize: CornerSize = CornerSize(100), - override val padding: PaddingValues = PaddingValues(horizontal = 12.dp, vertical = 8.dp), - override val borderWidth: Dp = 1.dp, - override val borderWidthSelected: Dp = 2.dp, -) : ChipMetrics +fun ChipMetrics.Companion.defaults( + cornerSize: CornerSize = CornerSize(100), + padding: PaddingValues = PaddingValues(horizontal = 12.dp, vertical = 8.dp), + borderWidth: Dp = 1.dp, + borderWidthSelected: Dp = 2.dp, +) = ChipMetrics(cornerSize, padding, borderWidth, borderWidthSelected) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiCircularProgressStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiCircularProgressStyling.kt index 377478bec..e2538c220 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiCircularProgressStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiCircularProgressStyling.kt @@ -2,30 +2,17 @@ package org.jetbrains.jewel.intui.standalone.styling -import androidx.compose.runtime.Stable import androidx.compose.ui.graphics.Color -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.styling.CircularProgressStyle import kotlin.time.Duration import kotlin.time.Duration.Companion.milliseconds -@Stable -@GenerateDataFunctions -class IntUiCircularProgressStyle( - override val frameTime: Duration, - override val color: Color, -) : CircularProgressStyle { +fun CircularProgressStyle.Companion.dark( + frameTime: Duration = 125.milliseconds, + color: Color = Color(0xFF6F737A), +) = CircularProgressStyle(frameTime, color) - companion object { - - fun dark( - frameTime: Duration = 125.milliseconds, - color: Color = Color(0xFF6F737A), - ) = IntUiCircularProgressStyle(frameTime, color) - - fun light( - frameTime: Duration = 125.milliseconds, - color: Color = Color(0xFFA8ADBD), - ) = IntUiCircularProgressStyle(frameTime, color) - } -} +fun CircularProgressStyle.Companion.light( + frameTime: Duration = 125.milliseconds, + color: Color = Color(0xFFA8ADBD), +) = CircularProgressStyle(frameTime, color) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiDividerStyle.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiDividerStyle.kt index 0b7441f62..0a22d2edc 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiDividerStyle.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiDividerStyle.kt @@ -1,42 +1,21 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable import androidx.compose.ui.graphics.Color -import androidx.compose.ui.unit.Dp -import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions +import org.jetbrains.jewel.intui.core.styling.defaults import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.styling.DividerMetrics import org.jetbrains.jewel.styling.DividerStyle -@Immutable -@GenerateDataFunctions -class IntUiDividerStyle( - override val color: Color, - override val metrics: DividerMetrics, -) : DividerStyle { +@Composable +fun DividerStyle.Companion.light( + color: Color = IntUiLightTheme.colors.grey(12), + metrics: DividerMetrics = DividerMetrics.defaults(), +) = DividerStyle(color, metrics) - companion object { - - @Composable - fun light( - color: Color = IntUiLightTheme.colors.grey(12), - metrics: IntUiDividerMetrics = IntUiDividerMetrics(), - ) = IntUiDividerStyle(color, metrics) - - @Composable - fun dark( - color: Color = IntUiDarkTheme.colors.grey(1), - metrics: IntUiDividerMetrics = IntUiDividerMetrics(), - ) = IntUiDividerStyle(color, metrics) - } -} - -@Immutable -@GenerateDataFunctions -class IntUiDividerMetrics( - override val thickness: Dp = 1.dp, - override val startIndent: Dp = 0.dp, -) : DividerMetrics +@Composable +fun DividerStyle.Companion.dark( + color: Color = IntUiDarkTheme.colors.grey(1), + metrics: DividerMetrics = DividerMetrics.defaults(), +) = DividerStyle(color, metrics) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiDropdownStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiDropdownStyling.kt index f08b6b433..ca136bae7 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiDropdownStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiDropdownStyling.kt @@ -3,14 +3,11 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable -import androidx.compose.runtime.Stable import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.TextStyle import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpSize import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.intui.standalone.IntUiTheme @@ -22,224 +19,252 @@ import org.jetbrains.jewel.styling.DropdownMetrics import org.jetbrains.jewel.styling.DropdownStyle import org.jetbrains.jewel.styling.MenuStyle -@Stable -@GenerateDataFunctions -class IntUiDropdownStyle( - override val colors: IntUiDropdownColors, - override val metrics: IntUiDropdownMetrics, - override val icons: IntUiDropdownIcons, - override val textStyle: TextStyle, - override val menuStyle: MenuStyle, -) : DropdownStyle { - - companion object { - - @Composable - fun undecorated( - colors: IntUiDropdownColors, - metrics: IntUiDropdownMetrics = IntUiDropdownMetrics(borderWidth = 0.dp), - icons: IntUiDropdownIcons = intUiDropdownIcons(), - textStyle: TextStyle = IntUiTheme.defaultTextStyle, - menuStyle: MenuStyle = IntUiMenuStyle.light(), - ) = IntUiDropdownStyle(colors, metrics, icons, textStyle, menuStyle) - - @Composable - fun light( - colors: IntUiDropdownColors = IntUiDropdownColors.light(), - metrics: IntUiDropdownMetrics = IntUiDropdownMetrics(), - icons: IntUiDropdownIcons = intUiDropdownIcons(), - textStyle: TextStyle = IntUiTheme.defaultTextStyle, - menuStyle: MenuStyle = IntUiMenuStyle.light(), - ) = IntUiDropdownStyle(colors, metrics, icons, textStyle, menuStyle) - - @Composable - fun dark( - colors: IntUiDropdownColors = IntUiDropdownColors.dark(), - metrics: IntUiDropdownMetrics = IntUiDropdownMetrics(), - icons: IntUiDropdownIcons = intUiDropdownIcons(), - textStyle: TextStyle = IntUiTheme.defaultTextStyle, - menuStyle: MenuStyle = IntUiMenuStyle.dark(), - ) = IntUiDropdownStyle(colors, metrics, icons, textStyle, menuStyle) - } +val DropdownStyle.Companion.Default: IntUiDefaultDropdownStyleFactory + get() = IntUiDefaultDropdownStyleFactory + +object IntUiDefaultDropdownStyleFactory { + + @Composable + fun light( + colors: DropdownColors = DropdownColors.Default.light(), + metrics: DropdownMetrics = DropdownMetrics.default(), + icons: DropdownIcons = DropdownIcons.defaults(), + textStyle: TextStyle = IntUiTheme.defaultTextStyle, + menuStyle: MenuStyle = MenuStyle.light(), + ) = DropdownStyle(colors, metrics, icons, textStyle, menuStyle) + + @Composable + fun dark( + colors: DropdownColors = DropdownColors.Default.dark(), + metrics: DropdownMetrics = DropdownMetrics.default(), + icons: DropdownIcons = DropdownIcons.defaults(), + textStyle: TextStyle = IntUiTheme.defaultTextStyle, + menuStyle: MenuStyle = MenuStyle.dark(), + ) = DropdownStyle(colors, metrics, icons, textStyle, menuStyle) +} + +val DropdownStyle.Companion.Undecorated: IntUiUndecoratedDropdownStyleFactory + get() = IntUiUndecoratedDropdownStyleFactory + +object IntUiUndecoratedDropdownStyleFactory { + + @Composable + fun light( + colors: DropdownColors = DropdownColors.Undecorated.light(), + metrics: DropdownMetrics = DropdownMetrics.undecorated(), + icons: DropdownIcons = DropdownIcons.defaults(), + textStyle: TextStyle = IntUiTheme.defaultTextStyle, + menuStyle: MenuStyle = MenuStyle.light(), + ) = DropdownStyle(colors, metrics, icons, textStyle, menuStyle) + + @Composable + fun dark( + colors: DropdownColors = DropdownColors.Undecorated.dark(), + metrics: DropdownMetrics = DropdownMetrics.undecorated(), + icons: DropdownIcons = DropdownIcons.defaults(), + textStyle: TextStyle = IntUiTheme.defaultTextStyle, + menuStyle: MenuStyle = MenuStyle.dark(), + ) = DropdownStyle(colors, metrics, icons, textStyle, menuStyle) } -@Immutable -@GenerateDataFunctions -class IntUiDropdownColors( - override val background: Color, - override val backgroundDisabled: Color, - override val backgroundFocused: Color, - override val backgroundPressed: Color, - override val backgroundHovered: Color, - override val content: Color, - override val contentDisabled: Color, - override val contentFocused: Color, - override val contentPressed: Color, - override val contentHovered: Color, - override val border: Color, - override val borderDisabled: Color, - override val borderFocused: Color, - override val borderPressed: Color, - override val borderHovered: Color, - override val iconTint: Color, - override val iconTintDisabled: Color, - override val iconTintFocused: Color, - override val iconTintPressed: Color, - override val iconTintHovered: Color, -) : DropdownColors { - - companion object { - - @Composable - fun undecorated( - backgroundPressed: Color, - backgroundHovered: Color = backgroundPressed, - content: Color, - contentDisabled: Color = content, - iconTint: Color, - iconTintDisabled: Color = iconTint, - ) = IntUiDropdownColors( - background = Color.Transparent, - backgroundDisabled = Color.Transparent, - backgroundFocused = Color.Transparent, - backgroundPressed = backgroundPressed, - backgroundHovered = backgroundHovered, - content = content, - contentDisabled = contentDisabled, - contentFocused = content, - contentPressed = content, - contentHovered = content, - border = Color.Transparent, - borderDisabled = Color.Transparent, - borderFocused = Color.Transparent, - borderPressed = Color.Transparent, - borderHovered = Color.Transparent, - iconTint = iconTint, - iconTintDisabled = iconTintDisabled, - iconTintFocused = iconTint, - iconTintPressed = iconTint, - iconTintHovered = iconTint, - ) - - @Composable - fun light( - background: Color = IntUiLightTheme.colors.grey(14), - backgroundDisabled: Color = IntUiLightTheme.colors.grey(13), - backgroundFocused: Color = background, - backgroundPressed: Color = background, - backgroundHovered: Color = background, - content: Color = IntUiLightTheme.colors.grey(1), - contentDisabled: Color = IntUiLightTheme.colors.grey(8), - contentFocused: Color = content, - contentPressed: Color = content, - contentHovered: Color = content, - border: Color = IntUiLightTheme.colors.grey(9), - borderDisabled: Color = IntUiLightTheme.colors.grey(11), - borderFocused: Color = IntUiLightTheme.colors.blue(4), - borderPressed: Color = border, - borderHovered: Color = border, - iconTint: Color = IntUiLightTheme.colors.grey(7), - iconTintDisabled: Color = IntUiLightTheme.colors.grey(9), - iconTintFocused: Color = iconTint, - iconTintPressed: Color = iconTint, - iconTintHovered: Color = iconTint, - ) = IntUiDropdownColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - iconTint, - iconTintDisabled, - iconTintFocused, - iconTintPressed, - iconTintHovered, - ) - - @Composable - fun dark( - background: Color = IntUiDarkTheme.colors.grey(2), - backgroundDisabled: Color = background, - backgroundFocused: Color = background, - backgroundPressed: Color = background, - backgroundHovered: Color = background, - content: Color = IntUiDarkTheme.colors.grey(12), - contentDisabled: Color = IntUiDarkTheme.colors.grey(7), - contentFocused: Color = content, - contentPressed: Color = content, - contentHovered: Color = content, - border: Color = IntUiDarkTheme.colors.grey(5), - borderDisabled: Color = IntUiDarkTheme.colors.grey(5), - borderFocused: Color = IntUiDarkTheme.colors.blue(6), - borderPressed: Color = border, - borderHovered: Color = border, - iconTint: Color = IntUiDarkTheme.colors.grey(10), - iconTintDisabled: Color = IntUiDarkTheme.colors.grey(6), - iconTintFocused: Color = iconTint, - iconTintPressed: Color = iconTint, - iconTintHovered: Color = iconTint, - ) = IntUiDropdownColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - iconTint, - iconTintDisabled, - iconTintFocused, - iconTintPressed, - iconTintHovered, - ) - } +val DropdownColors.Companion.Default: IntUiDefaultDropdownColorsFactory + get() = IntUiDefaultDropdownColorsFactory + +object IntUiDefaultDropdownColorsFactory { + + @Composable + fun light( + background: Color = IntUiLightTheme.colors.grey(14), + backgroundDisabled: Color = IntUiLightTheme.colors.grey(13), + backgroundFocused: Color = background, + backgroundPressed: Color = background, + backgroundHovered: Color = background, + content: Color = IntUiLightTheme.colors.grey(1), + contentDisabled: Color = IntUiLightTheme.colors.grey(8), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + border: Color = IntUiLightTheme.colors.grey(9), + borderDisabled: Color = IntUiLightTheme.colors.grey(11), + borderFocused: Color = IntUiLightTheme.colors.blue(4), + borderPressed: Color = border, + borderHovered: Color = border, + iconTint: Color = IntUiLightTheme.colors.grey(7), + iconTintDisabled: Color = IntUiLightTheme.colors.grey(9), + iconTintFocused: Color = iconTint, + iconTintPressed: Color = iconTint, + iconTintHovered: Color = iconTint, + ) = DropdownColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + iconTint, + iconTintDisabled, + iconTintFocused, + iconTintPressed, + iconTintHovered, + ) + + @Composable + fun dark( + background: Color = IntUiDarkTheme.colors.grey(2), + backgroundDisabled: Color = background, + backgroundFocused: Color = background, + backgroundPressed: Color = background, + backgroundHovered: Color = background, + content: Color = IntUiDarkTheme.colors.grey(12), + contentDisabled: Color = IntUiDarkTheme.colors.grey(7), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + border: Color = IntUiDarkTheme.colors.grey(5), + borderDisabled: Color = IntUiDarkTheme.colors.grey(5), + borderFocused: Color = IntUiDarkTheme.colors.blue(6), + borderPressed: Color = border, + borderHovered: Color = border, + iconTint: Color = IntUiDarkTheme.colors.grey(10), + iconTintDisabled: Color = IntUiDarkTheme.colors.grey(6), + iconTintFocused: Color = iconTint, + iconTintPressed: Color = iconTint, + iconTintHovered: Color = iconTint, + ) = DropdownColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + iconTint, + iconTintDisabled, + iconTintFocused, + iconTintPressed, + iconTintHovered, + ) } -@Stable -@GenerateDataFunctions -class IntUiDropdownMetrics( - override val arrowMinSize: DpSize = DpSize((23 + 3).dp, 24.dp), - override val minSize: DpSize = DpSize((49 + 23 + 6).dp, 24.dp), - override val cornerSize: CornerSize = CornerSize(4.dp), - override val contentPadding: PaddingValues = PaddingValues(horizontal = 6.dp, vertical = 3.dp), - override val borderWidth: Dp = 1.dp, -) : DropdownMetrics - -@Immutable -@GenerateDataFunctions -class IntUiDropdownIcons( - override val chevronDown: PainterProvider, -) : DropdownIcons { - - companion object { - - @Composable - fun chevronDown( - basePath: String = "expui/general/chevronDown.svg", - ): PainterProvider = standalonePainterProvider(basePath) - } +val DropdownColors.Companion.Undecorated: IntUiUndecoratedDropdownColorsFactory + get() = IntUiUndecoratedDropdownColorsFactory + +object IntUiUndecoratedDropdownColorsFactory { + + @Composable + fun light( + background: Color = Color.Transparent, + backgroundDisabled: Color = background, + backgroundFocused: Color = background, + backgroundPressed: Color = IntUiLightTheme.colors.grey(14).copy(alpha = 0.1f), + backgroundHovered: Color = backgroundPressed, + content: Color = IntUiLightTheme.colors.grey(1), + contentDisabled: Color = IntUiLightTheme.colors.grey(8), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + iconTint: Color = IntUiLightTheme.colors.grey(7), + iconTintDisabled: Color = IntUiLightTheme.colors.grey(9), + iconTintFocused: Color = iconTint, + iconTintPressed: Color = iconTint, + iconTintHovered: Color = iconTint, + ) = DropdownColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border = Color.Transparent, + borderDisabled = Color.Transparent, + borderFocused = Color.Transparent, + borderPressed = Color.Transparent, + borderHovered = Color.Transparent, + iconTint, + iconTintDisabled, + iconTintFocused, + iconTintPressed, + iconTintHovered, + ) + + @Composable + fun dark( + background: Color = Color.Transparent, + backgroundDisabled: Color = background, + backgroundFocused: Color = background, + backgroundPressed: Color = Color(0x0D000000), // Not a palette color + backgroundHovered: Color = backgroundPressed, + content: Color = IntUiDarkTheme.colors.grey(12), + contentDisabled: Color = IntUiDarkTheme.colors.grey(7), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + iconTint: Color = IntUiDarkTheme.colors.grey(10), + iconTintDisabled: Color = IntUiDarkTheme.colors.grey(6), + iconTintFocused: Color = iconTint, + iconTintPressed: Color = iconTint, + iconTintHovered: Color = iconTint, + ) = DropdownColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border = Color.Transparent, + borderDisabled = Color.Transparent, + borderFocused = Color.Transparent, + borderPressed = Color.Transparent, + borderHovered = Color.Transparent, + iconTint, + iconTintDisabled, + iconTintFocused, + iconTintPressed, + iconTintHovered, + ) } -@Composable -fun intUiDropdownIcons( - chevronDown: PainterProvider = IntUiDropdownIcons.chevronDown(), -) = - IntUiDropdownIcons(chevronDown) +fun DropdownMetrics.Companion.default( + arrowMinSize: DpSize = DpSize((23 + 3).dp, 24.dp), + minSize: DpSize = DpSize((49 + 23 + 6).dp, 24.dp), + cornerSize: CornerSize = CornerSize(4.dp), + contentPadding: PaddingValues = PaddingValues(horizontal = 6.dp, vertical = 3.dp), + borderWidth: Dp = 1.dp, +) = DropdownMetrics(arrowMinSize, minSize, cornerSize, contentPadding, borderWidth) + +fun DropdownMetrics.Companion.undecorated( + arrowMinSize: DpSize = DpSize((23 + 3).dp, 24.dp), + minSize: DpSize = DpSize((49 + 23 + 6).dp, 24.dp), + cornerSize: CornerSize = CornerSize(4.dp), + contentPadding: PaddingValues = PaddingValues(horizontal = 6.dp, vertical = 3.dp), + borderWidth: Dp = 0.dp, +) = DropdownMetrics(arrowMinSize, minSize, cornerSize, contentPadding, borderWidth) + +fun DropdownIcons.Companion.defaults( + chevronDown: PainterProvider = standalonePainterProvider("expui/general/chevronDown.svg"), +) = DropdownIcons(chevronDown) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderStyling.kt index ebf9f40fb..116a8c28a 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiGroupHeaderStyling.kt @@ -1,63 +1,38 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.styling.GroupHeaderColors import org.jetbrains.jewel.styling.GroupHeaderMetrics import org.jetbrains.jewel.styling.GroupHeaderStyle -@Immutable -@GenerateDataFunctions -class IntUiGroupHeaderStyle( - override val colors: IntUiGroupHeaderColors, - override val metrics: IntUiGroupHeaderMetrics, -) : GroupHeaderStyle { - - companion object { - - @Composable - fun light( - colors: IntUiGroupHeaderColors = IntUiGroupHeaderColors.light(), - metrics: IntUiGroupHeaderMetrics = IntUiGroupHeaderMetrics(), - ) = IntUiGroupHeaderStyle(colors, metrics) - - @Composable - fun dark( - colors: IntUiGroupHeaderColors = IntUiGroupHeaderColors.dark(), - metrics: IntUiGroupHeaderMetrics = IntUiGroupHeaderMetrics(), - ) = IntUiGroupHeaderStyle(colors, metrics) - } -} - -@Immutable -@GenerateDataFunctions -class IntUiGroupHeaderColors( - override val divider: Color, -) : GroupHeaderColors { - - companion object { - - @Composable - fun light( - divider: Color = IntUiLightTheme.colors.grey(12), - ) = IntUiGroupHeaderColors(divider) - - @Composable - fun dark( - divider: Color = IntUiDarkTheme.colors.grey(3), - ) = IntUiGroupHeaderColors(divider) - } -} - -@Immutable -@GenerateDataFunctions -class IntUiGroupHeaderMetrics( - override val dividerThickness: Dp = 1.dp, - override val indent: Dp = 8.dp, -) : GroupHeaderMetrics +@Composable +fun GroupHeaderStyle.Companion.light( + colors: GroupHeaderColors = GroupHeaderColors.light(), + metrics: GroupHeaderMetrics = GroupHeaderMetrics.defaults(), +) = GroupHeaderStyle(colors, metrics) + +@Composable +fun GroupHeaderStyle.Companion.dark( + colors: GroupHeaderColors = GroupHeaderColors.dark(), + metrics: GroupHeaderMetrics = GroupHeaderMetrics.defaults(), +) = GroupHeaderStyle(colors, metrics) + +@Composable +fun GroupHeaderColors.Companion.light( + divider: Color = IntUiLightTheme.colors.grey(12), +) = GroupHeaderColors(divider) + +@Composable +fun GroupHeaderColors.Companion.dark( + divider: Color = IntUiDarkTheme.colors.grey(3), +) = GroupHeaderColors(divider) + +fun GroupHeaderMetrics.Companion.defaults( + dividerThickness: Dp = 1.dp, + indent: Dp = 8.dp, +) = GroupHeaderMetrics(dividerThickness, indent) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarStyling.kt index 3d9acc15d..2d0050375 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiHorizontalProgressBarStyling.kt @@ -2,11 +2,9 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.styling.HorizontalProgressBarColors @@ -15,65 +13,38 @@ import org.jetbrains.jewel.styling.HorizontalProgressBarStyle import kotlin.time.Duration import kotlin.time.Duration.Companion.milliseconds -@Immutable -@GenerateDataFunctions -class IntUiHorizontalProgressBarStyle( - override val colors: IntUiHorizontalProgressBarColors, - override val metrics: IntUiHorizontalProgressBarMetrics, - override val indeterminateCycleDuration: Duration, -) : HorizontalProgressBarStyle { - - companion object { - - @Composable - fun light( - colors: IntUiHorizontalProgressBarColors = IntUiHorizontalProgressBarColors.light(), - metrics: IntUiHorizontalProgressBarMetrics = IntUiHorizontalProgressBarMetrics(), - indeterminateCycleDuration: Duration = 800.milliseconds, - ) = IntUiHorizontalProgressBarStyle(colors, metrics, indeterminateCycleDuration) - - @Composable - fun dark( - colors: IntUiHorizontalProgressBarColors = IntUiHorizontalProgressBarColors.dark(), - metrics: IntUiHorizontalProgressBarMetrics = IntUiHorizontalProgressBarMetrics(), - indeterminateCycleDuration: Duration = 800.milliseconds, - ) = IntUiHorizontalProgressBarStyle(colors, metrics, indeterminateCycleDuration) - } -} - -@Immutable -@GenerateDataFunctions -class IntUiHorizontalProgressBarColors( - override val track: Color, - override val progress: Color, - override val indeterminateBase: Color, - override val indeterminateHighlight: Color, -) : HorizontalProgressBarColors { - - companion object { - - @Composable - fun light( - track: Color = IntUiLightTheme.colors.grey(11), - progress: Color = IntUiLightTheme.colors.blue(4), - indeterminateBase: Color = IntUiLightTheme.colors.blue(9), - indeterminateHighlight: Color = IntUiLightTheme.colors.blue(4), - ) = IntUiHorizontalProgressBarColors(track, progress, indeterminateBase, indeterminateHighlight) - - @Composable - fun dark( - track: Color = IntUiDarkTheme.colors.grey(4), - progress: Color = IntUiDarkTheme.colors.blue(7), - indeterminateBase: Color = IntUiDarkTheme.colors.blue(9), - indeterminateHighlight: Color = IntUiDarkTheme.colors.blue(5), - ) = IntUiHorizontalProgressBarColors(track, progress, indeterminateBase, indeterminateHighlight) - } -} - -@Immutable -@GenerateDataFunctions -class IntUiHorizontalProgressBarMetrics( - override val cornerSize: CornerSize = CornerSize(100), - override val minHeight: Dp = 4.dp, - override val indeterminateHighlightWidth: Dp = 140.dp, -) : HorizontalProgressBarMetrics +@Composable +fun HorizontalProgressBarStyle.Companion.light( + colors: HorizontalProgressBarColors = HorizontalProgressBarColors.light(), + metrics: HorizontalProgressBarMetrics = HorizontalProgressBarMetrics.defaults(), + indeterminateCycleDuration: Duration = 800.milliseconds, +) = HorizontalProgressBarStyle(colors, metrics, indeterminateCycleDuration) + +@Composable +fun HorizontalProgressBarStyle.Companion.dark( + colors: HorizontalProgressBarColors = HorizontalProgressBarColors.dark(), + metrics: HorizontalProgressBarMetrics = HorizontalProgressBarMetrics.defaults(), + indeterminateCycleDuration: Duration = 800.milliseconds, +) = HorizontalProgressBarStyle(colors, metrics, indeterminateCycleDuration) + +@Composable +fun HorizontalProgressBarColors.Companion.light( + track: Color = IntUiLightTheme.colors.grey(11), + progress: Color = IntUiLightTheme.colors.blue(4), + indeterminateBase: Color = IntUiLightTheme.colors.blue(9), + indeterminateHighlight: Color = IntUiLightTheme.colors.blue(4), +) = HorizontalProgressBarColors(track, progress, indeterminateBase, indeterminateHighlight) + +@Composable +fun HorizontalProgressBarColors.Companion.dark( + track: Color = IntUiDarkTheme.colors.grey(4), + progress: Color = IntUiDarkTheme.colors.blue(7), + indeterminateBase: Color = IntUiDarkTheme.colors.blue(9), + indeterminateHighlight: Color = IntUiDarkTheme.colors.blue(5), +) = HorizontalProgressBarColors(track, progress, indeterminateBase, indeterminateHighlight) + +fun HorizontalProgressBarMetrics.Companion.defaults( + cornerSize: CornerSize = CornerSize(100), + minHeight: Dp = 4.dp, + indeterminateHighlightWidth: Dp = 140.dp, +) = HorizontalProgressBarMetrics(cornerSize, minHeight, indeterminateHighlightWidth) 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 adc410514..67a28a41e 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 @@ -3,112 +3,83 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable -import androidx.compose.runtime.Stable import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpSize import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.styling.IconButtonColors import org.jetbrains.jewel.styling.IconButtonMetrics import org.jetbrains.jewel.styling.IconButtonStyle -@Stable -@GenerateDataFunctions -class IntUiIconButtonStyle( - override val colors: IntUiIconButtonColors, - override val metrics: IntUiIconButtonMetrics, -) : IconButtonStyle { +@Composable +fun IconButtonStyle.Companion.light( + colors: IconButtonColors = IconButtonColors.light(), + metrics: IconButtonMetrics = IconButtonMetrics.defaults(), +) = IconButtonStyle(colors, metrics) - companion object { +@Composable +fun IconButtonStyle.Companion.dark( + colors: IconButtonColors = IconButtonColors.dark(), + metrics: IconButtonMetrics = IconButtonMetrics.defaults(), +) = IconButtonStyle(colors, metrics) - @Composable - fun light() = IntUiIconButtonStyle(IntUiIconButtonColors.light(), IntUiIconButtonMetrics()) +@Composable +fun IconButtonColors.Companion.light( + background: Color = Color.Unspecified, + backgroundDisabled: Color = background, + backgroundFocused: Color = background, + backgroundPressed: Color = IntUiLightTheme.colors.grey(11), + backgroundHovered: Color = IntUiLightTheme.colors.grey(12), + border: Color = background, + borderDisabled: Color = border, + borderFocused: Color = IntUiLightTheme.colors.blue(5), + borderPressed: Color = backgroundPressed, + borderHovered: Color = backgroundHovered, +) = + IconButtonColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + ) - @Composable - fun dark() = IntUiIconButtonStyle(IntUiIconButtonColors.dark(), IntUiIconButtonMetrics()) - } -} +@Composable +fun IconButtonColors.Companion.dark( + background: Color = Color.Unspecified, + backgroundDisabled: Color = background, + backgroundFocused: Color = background, + backgroundPressed: Color = IntUiDarkTheme.colors.grey(5), + backgroundHovered: Color = IntUiDarkTheme.colors.grey(3), + border: Color = background, + borderDisabled: Color = border, + borderFocused: Color = IntUiDarkTheme.colors.blue(6), + borderPressed: Color = backgroundPressed, + borderHovered: Color = backgroundHovered, +) = + IconButtonColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + ) -@Immutable -@GenerateDataFunctions -class IntUiIconButtonColors( - override val background: Color, - override val backgroundDisabled: Color, - override val backgroundFocused: Color, - override val backgroundPressed: Color, - override val backgroundHovered: Color, - override val border: Color, - override val borderDisabled: Color, - override val borderFocused: Color, - override val borderPressed: Color, - override val borderHovered: Color, -) : IconButtonColors { - - companion object { - - @Composable - fun light( - background: Color = Color.Unspecified, - backgroundDisabled: Color = background, - backgroundFocused: Color = background, - backgroundPressed: Color = IntUiLightTheme.colors.grey(11), - backgroundHovered: Color = IntUiLightTheme.colors.grey(12), - border: Color = background, - borderDisabled: Color = border, - borderFocused: Color = IntUiLightTheme.colors.blue(5), - borderPressed: Color = backgroundPressed, - borderHovered: Color = backgroundHovered, - ) = - IntUiIconButtonColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - ) - - @Composable - fun dark( - background: Color = Color.Unspecified, - backgroundDisabled: Color = background, - backgroundFocused: Color = background, - backgroundPressed: Color = IntUiDarkTheme.colors.grey(5), - backgroundHovered: Color = IntUiDarkTheme.colors.grey(3), - border: Color = background, - borderDisabled: Color = border, - borderFocused: Color = IntUiDarkTheme.colors.blue(6), - borderPressed: Color = backgroundPressed, - borderHovered: Color = backgroundHovered, - ) = - IntUiIconButtonColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - ) - } -} - -@Stable -@GenerateDataFunctions -class IntUiIconButtonMetrics( - override val cornerSize: CornerSize = CornerSize(4.dp), - override val borderWidth: Dp = 1.dp, - override val padding: PaddingValues = PaddingValues(0.dp), - override val minSize: DpSize = DpSize(16.dp, 16.dp), -) : IconButtonMetrics +fun IconButtonMetrics.Companion.defaults( + cornerSize: CornerSize = CornerSize(4.dp), + borderWidth: Dp = 1.dp, + padding: PaddingValues = PaddingValues(0.dp), + minSize: DpSize = DpSize(16.dp, 16.dp), +) = IconButtonMetrics(cornerSize, borderWidth, padding, minSize) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldStyling.kt index dee85fe6c..537665a9b 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldStyling.kt @@ -3,15 +3,12 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable -import androidx.compose.runtime.Stable import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.TextStyle import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpSize import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.intui.standalone.IntUiTheme @@ -20,205 +17,145 @@ import org.jetbrains.jewel.styling.LabelledTextFieldMetrics import org.jetbrains.jewel.styling.LabelledTextFieldStyle import org.jetbrains.jewel.styling.LabelledTextFieldTextStyles -@Stable -@GenerateDataFunctions -class IntUiLabelledTextFieldStyle( - override val colors: IntUiLabelledTextFieldColors, - override val metrics: IntUiLabelledTextFieldMetrics, - override val textStyle: TextStyle, - override val textStyles: IntUiLabelledTextFieldTextStyles, -) : LabelledTextFieldStyle { +@Composable +fun LabelledTextFieldStyle.Companion.light( + colors: LabelledTextFieldColors = LabelledTextFieldColors.light(), + metrics: LabelledTextFieldMetrics = LabelledTextFieldMetrics.defaults(), + textStyle: TextStyle = IntUiTheme.defaultTextStyle, + textStyles: LabelledTextFieldTextStyles = LabelledTextFieldTextStyles.light(), +) = LabelledTextFieldStyle(colors, metrics, textStyle, textStyles) - companion object { +@Composable +fun LabelledTextFieldStyle.Companion.dark( + colors: LabelledTextFieldColors = LabelledTextFieldColors.dark(), + metrics: LabelledTextFieldMetrics = LabelledTextFieldMetrics.defaults(), + textStyle: TextStyle = IntUiTheme.defaultTextStyle, + textStyles: LabelledTextFieldTextStyles = LabelledTextFieldTextStyles.dark(), +) = LabelledTextFieldStyle(colors, metrics, textStyle, textStyles) - @Composable - fun light( - colors: IntUiLabelledTextFieldColors = IntUiLabelledTextFieldColors.light(), - metrics: IntUiLabelledTextFieldMetrics = IntUiLabelledTextFieldMetrics(), - textStyle: TextStyle = IntUiTheme.defaultTextStyle, - textStyles: IntUiLabelledTextFieldTextStyles = IntUiLabelledTextFieldTextStyles.light(), - ) = IntUiLabelledTextFieldStyle(colors, metrics, textStyle, textStyles) +@Composable +fun LabelledTextFieldColors.Companion.light( + background: Color = IntUiLightTheme.colors.grey(14), + backgroundDisabled: Color = IntUiLightTheme.colors.grey(13), + backgroundFocused: Color = background, + backgroundPressed: Color = background, + backgroundHovered: Color = background, + content: Color = IntUiLightTheme.colors.grey(1), + contentDisabled: Color = IntUiLightTheme.colors.grey(8), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + border: Color = IntUiLightTheme.colors.grey(9), + borderDisabled: Color = IntUiLightTheme.colors.grey(11), + borderFocused: Color = IntUiLightTheme.colors.blue(4), + borderPressed: Color = border, + borderHovered: Color = border, + caret: Color = IntUiLightTheme.colors.grey(1), + caretDisabled: Color = caret, + caretFocused: Color = caret, + caretPressed: Color = caret, + caretHovered: Color = caret, + placeholder: Color = IntUiLightTheme.colors.grey(8), + label: Color = Color.Unspecified, + hint: Color = IntUiLightTheme.colors.grey(6), +) = LabelledTextFieldColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + caret, + caretDisabled, + caretFocused, + caretPressed, + caretHovered, + placeholder, + label, + hint, +) - @Composable - fun dark( - colors: IntUiLabelledTextFieldColors = IntUiLabelledTextFieldColors.dark(), - metrics: IntUiLabelledTextFieldMetrics = IntUiLabelledTextFieldMetrics(), - textStyle: TextStyle = IntUiTheme.defaultTextStyle, - textStyles: IntUiLabelledTextFieldTextStyles = IntUiLabelledTextFieldTextStyles.dark(), - ) = IntUiLabelledTextFieldStyle(colors, metrics, textStyle, textStyles) - } -} +@Composable +fun LabelledTextFieldColors.Companion.dark( + background: Color = IntUiDarkTheme.colors.grey(2), + backgroundDisabled: Color = background, + backgroundFocused: Color = background, + backgroundPressed: Color = background, + backgroundHovered: Color = background, + content: Color = IntUiDarkTheme.colors.grey(12), + contentDisabled: Color = IntUiDarkTheme.colors.grey(7), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + border: Color = IntUiDarkTheme.colors.grey(5), + borderDisabled: Color = border, + borderFocused: Color = IntUiDarkTheme.colors.blue(6), + borderPressed: Color = border, + borderHovered: Color = border, + caret: Color = IntUiDarkTheme.colors.grey(12), + caretDisabled: Color = caret, + caretFocused: Color = caret, + caretPressed: Color = caret, + caretHovered: Color = caret, + placeholder: Color = IntUiDarkTheme.colors.grey(7), + label: Color = Color.Unspecified, + hint: Color = IntUiDarkTheme.colors.grey(7), +) = LabelledTextFieldColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + caret, + caretDisabled, + caretFocused, + caretPressed, + caretHovered, + placeholder, + label, + hint, +) -@Immutable -@GenerateDataFunctions -class IntUiLabelledTextFieldColors( - override val background: Color, - override val backgroundDisabled: Color, - override val backgroundFocused: Color, - override val backgroundPressed: Color, - override val backgroundHovered: Color, - override val content: Color, - override val contentDisabled: Color, - override val contentFocused: Color, - override val contentPressed: Color, - override val contentHovered: Color, - override val border: Color, - override val borderDisabled: Color, - override val borderFocused: Color, - override val borderPressed: Color, - override val borderHovered: Color, - override val caret: Color, - override val caretDisabled: Color, - override val caretFocused: Color, - override val caretPressed: Color, - override val caretHovered: Color, - override val placeholder: Color, - override val label: Color, - override val hint: Color, -) : LabelledTextFieldColors { +fun LabelledTextFieldMetrics.Companion.defaults( + cornerSize: CornerSize = CornerSize(4.dp), + contentPadding: PaddingValues = PaddingValues(horizontal = 9.dp, vertical = 6.dp), + minSize: DpSize = DpSize(49.dp, 24.dp), + borderWidth: Dp = 1.dp, + labelSpacing: Dp = 6.dp, + hintSpacing: Dp = 6.dp, +) = LabelledTextFieldMetrics(borderWidth, contentPadding, cornerSize, minSize, labelSpacing, hintSpacing) - companion object { +fun LabelledTextFieldTextStyles.Companion.light( + label: TextStyle = IntUiTheme.defaultTextStyle, + hint: TextStyle = IntUiTheme.defaultTextStyle.copy( + fontSize = 12.sp, + lineHeight = 16.sp, + ), +) = LabelledTextFieldTextStyles(label, hint) - @Composable - fun light( - background: Color = IntUiLightTheme.colors.grey(14), - backgroundDisabled: Color = IntUiLightTheme.colors.grey(13), - backgroundFocused: Color = background, - backgroundPressed: Color = background, - backgroundHovered: Color = background, - content: Color = IntUiLightTheme.colors.grey(1), - contentDisabled: Color = IntUiLightTheme.colors.grey(8), - contentFocused: Color = content, - contentPressed: Color = content, - contentHovered: Color = content, - border: Color = IntUiLightTheme.colors.grey(9), - borderDisabled: Color = IntUiLightTheme.colors.grey(11), - borderFocused: Color = IntUiLightTheme.colors.blue(4), - borderPressed: Color = border, - borderHovered: Color = border, - caret: Color = IntUiLightTheme.colors.grey(1), - caretDisabled: Color = caret, - caretFocused: Color = caret, - caretPressed: Color = caret, - caretHovered: Color = caret, - placeholder: Color = IntUiLightTheme.colors.grey(8), - label: Color = Color.Unspecified, - hint: Color = IntUiLightTheme.colors.grey(6), - ) = IntUiLabelledTextFieldColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - caret, - caretDisabled, - caretFocused, - caretPressed, - caretHovered, - placeholder, - label, - hint, - ) - - @Composable - fun dark( - background: Color = IntUiDarkTheme.colors.grey(2), - backgroundDisabled: Color = background, - backgroundFocused: Color = background, - backgroundPressed: Color = background, - backgroundHovered: Color = background, - content: Color = IntUiDarkTheme.colors.grey(12), - contentDisabled: Color = IntUiDarkTheme.colors.grey(7), - contentFocused: Color = content, - contentPressed: Color = content, - contentHovered: Color = content, - border: Color = IntUiDarkTheme.colors.grey(5), - borderDisabled: Color = border, - borderFocused: Color = IntUiDarkTheme.colors.blue(6), - borderPressed: Color = border, - borderHovered: Color = border, - caret: Color = IntUiDarkTheme.colors.grey(12), - caretDisabled: Color = caret, - caretFocused: Color = caret, - caretPressed: Color = caret, - caretHovered: Color = caret, - placeholder: Color = IntUiDarkTheme.colors.grey(7), - label: Color = Color.Unspecified, - hint: Color = IntUiDarkTheme.colors.grey(7), - ) = IntUiLabelledTextFieldColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - caret, - caretDisabled, - caretFocused, - caretPressed, - caretHovered, - placeholder, - label, - hint, - ) - } -} - -@Stable -@GenerateDataFunctions -class IntUiLabelledTextFieldMetrics( - override val cornerSize: CornerSize = CornerSize(4.dp), - override val contentPadding: PaddingValues = PaddingValues(horizontal = 9.dp, vertical = 6.dp), - override val minSize: DpSize = DpSize(49.dp, 24.dp), - override val borderWidth: Dp = 1.dp, - override val labelSpacing: Dp = 6.dp, - override val hintSpacing: Dp = 6.dp, -) : LabelledTextFieldMetrics - -@Immutable -@GenerateDataFunctions -class IntUiLabelledTextFieldTextStyles( - override val label: TextStyle, - override val hint: TextStyle, -) : LabelledTextFieldTextStyles { - - companion object { - - @Composable - fun light( - label: TextStyle = IntUiTheme.defaultTextStyle, - hint: TextStyle = IntUiTheme.defaultTextStyle.copy( - fontSize = 12.sp, - lineHeight = 16.sp, - ), - ) = IntUiLabelledTextFieldTextStyles(label, hint) - - @Composable - fun dark( - label: TextStyle = IntUiTheme.defaultTextStyle, - hint: TextStyle = IntUiTheme.defaultTextStyle.copy( - fontSize = 12.sp, - lineHeight = 16.sp, - ), - ) = IntUiLabelledTextFieldTextStyles(label, hint) - } -} +fun LabelledTextFieldTextStyles.Companion.dark( + label: TextStyle = IntUiTheme.defaultTextStyle, + hint: TextStyle = IntUiTheme.defaultTextStyle.copy( + fontSize = 12.sp, + lineHeight = 16.sp, + ), +) = LabelledTextFieldTextStyles(label, hint) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeStyling.kt index f76084554..f02b55088 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiLazyTreeStyling.kt @@ -3,12 +3,9 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable -import androidx.compose.runtime.Stable import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.intui.standalone.standalonePainterProvider @@ -18,128 +15,77 @@ import org.jetbrains.jewel.styling.LazyTreeIcons import org.jetbrains.jewel.styling.LazyTreeMetrics import org.jetbrains.jewel.styling.LazyTreeStyle -@Stable -@GenerateDataFunctions -class IntUiLazyTreeStyle( - override val colors: IntUiLazyTreeColors, - override val metrics: IntUiLazyTreeMetrics, - override val icons: IntUiLazyTreeIcons, -) : LazyTreeStyle { - - companion object { - - @Composable - fun light( - colors: IntUiLazyTreeColors = IntUiLazyTreeColors.light(), - metrics: IntUiLazyTreeMetrics = IntUiLazyTreeMetrics(), - icons: IntUiLazyTreeIcons = intUiLazyTreeIcons(), - ) = IntUiLazyTreeStyle(colors, metrics, icons) - - @Composable - fun dark( - colors: IntUiLazyTreeColors = IntUiLazyTreeColors.dark(), - metrics: IntUiLazyTreeMetrics = IntUiLazyTreeMetrics(), - icons: IntUiLazyTreeIcons = intUiLazyTreeIcons(), - ) = IntUiLazyTreeStyle(colors, metrics, icons) - } -} - -@Immutable -@GenerateDataFunctions -class IntUiLazyTreeColors( - override val content: Color, - override val contentFocused: Color, - override val contentSelected: Color, - override val contentSelectedFocused: Color, - override val elementBackgroundFocused: Color, - override val elementBackgroundSelected: Color, - override val elementBackgroundSelectedFocused: Color, -) : LazyTreeColors { - - companion object { - - @Composable - fun light( - content: Color = Color.Unspecified, - contentFocused: Color = content, - contentSelected: Color = content, - contentSelectedFocused: Color = content, - nodeBackgroundFocused: Color = Color.Unspecified, - nodeBackgroundSelected: Color = IntUiLightTheme.colors.grey(11), - nodeBackgroundSelectedFocused: Color = IntUiLightTheme.colors.blue(11), - ) = IntUiLazyTreeColors( - content, - contentFocused, - contentSelected, - contentSelectedFocused, - nodeBackgroundFocused, - nodeBackgroundSelected, - nodeBackgroundSelectedFocused, - ) - - @Composable - fun dark( - content: Color = Color.Unspecified, - contentFocused: Color = content, - contentSelected: Color = content, - contentSelectedFocused: Color = content, - nodeBackgroundFocused: Color = Color.Unspecified, - nodeBackgroundSelected: Color = IntUiDarkTheme.colors.grey(4), - nodeBackgroundSelectedFocused: Color = IntUiDarkTheme.colors.blue(2), - ) = IntUiLazyTreeColors( - content, - contentFocused, - contentSelected, - contentSelectedFocused, - nodeBackgroundFocused, - nodeBackgroundSelected, - nodeBackgroundSelectedFocused, - ) - } -} - -@Stable -@GenerateDataFunctions -class IntUiLazyTreeMetrics( - override val indentSize: Dp = 7.dp + 16.dp, - override val elementBackgroundCornerSize: CornerSize = CornerSize(2.dp), - override val elementPadding: PaddingValues = PaddingValues(horizontal = 12.dp), - override val elementContentPadding: PaddingValues = PaddingValues(4.dp), - override val elementMinHeight: Dp = 24.dp, - override val chevronContentGap: Dp = 2.dp, -) : LazyTreeMetrics +@Composable +fun LazyTreeStyle.Companion.light( + colors: LazyTreeColors = LazyTreeColors.light(), + metrics: LazyTreeMetrics = LazyTreeMetrics.defaults(), + icons: LazyTreeIcons = LazyTreeIcons.defaults(), +) = LazyTreeStyle(colors, metrics, icons) -@Immutable -@GenerateDataFunctions -class IntUiLazyTreeIcons( - override val chevronCollapsed: PainterProvider, - override val chevronExpanded: PainterProvider, - override val chevronSelectedCollapsed: PainterProvider, - override val chevronSelectedExpanded: PainterProvider, -) : LazyTreeIcons { +@Composable +fun LazyTreeStyle.Companion.dark( + colors: LazyTreeColors = LazyTreeColors.dark(), + metrics: LazyTreeMetrics = LazyTreeMetrics.defaults(), + icons: LazyTreeIcons = LazyTreeIcons.defaults(), +) = LazyTreeStyle(colors, metrics, icons) - companion object { +@Composable +fun LazyTreeColors.Companion.light( + content: Color = Color.Unspecified, + contentFocused: Color = content, + contentSelected: Color = content, + contentSelectedFocused: Color = content, + nodeBackgroundFocused: Color = Color.Unspecified, + nodeBackgroundSelected: Color = IntUiLightTheme.colors.grey(11), + nodeBackgroundSelectedFocused: Color = IntUiLightTheme.colors.blue(11), +) = LazyTreeColors( + content, + contentFocused, + contentSelected, + contentSelectedFocused, + nodeBackgroundFocused, + nodeBackgroundSelected, + nodeBackgroundSelectedFocused, +) - @Composable - fun chevronCollapsed( - basePath: String = "expui/general/chevronRight.svg", - ): PainterProvider = standalonePainterProvider(basePath) +@Composable +fun LazyTreeColors.Companion.dark( + content: Color = Color.Unspecified, + contentFocused: Color = content, + contentSelected: Color = content, + contentSelectedFocused: Color = content, + nodeBackgroundFocused: Color = Color.Unspecified, + nodeBackgroundSelected: Color = IntUiDarkTheme.colors.grey(4), + nodeBackgroundSelectedFocused: Color = IntUiDarkTheme.colors.blue(2), +) = LazyTreeColors( + content, + contentFocused, + contentSelected, + contentSelectedFocused, + nodeBackgroundFocused, + nodeBackgroundSelected, + nodeBackgroundSelectedFocused, +) - @Composable - fun chevronExpanded( - basePath: String = "expui/general/chevronDown.svg", - ): PainterProvider = standalonePainterProvider(basePath) - } -} +fun LazyTreeMetrics.Companion.defaults( + indentSize: Dp = 7.dp + 16.dp, + elementBackgroundCornerSize: CornerSize = CornerSize(2.dp), + elementPadding: PaddingValues = PaddingValues(horizontal = 12.dp), + elementContentPadding: PaddingValues = PaddingValues(4.dp), + elementMinHeight: Dp = 24.dp, + chevronContentGap: Dp = 2.dp, +) = LazyTreeMetrics( + indentSize, + elementBackgroundCornerSize, + elementPadding, + elementContentPadding, + elementMinHeight, + chevronContentGap, +) -@Composable -fun intUiLazyTreeIcons( - chevronCollapsed: PainterProvider = - IntUiLazyTreeIcons.chevronCollapsed(), - chevronExpanded: PainterProvider = - IntUiLazyTreeIcons.chevronExpanded(), - chevronSelectedCollapsed: PainterProvider = - IntUiLazyTreeIcons.chevronCollapsed(), - chevronSelectedExpanded: PainterProvider = - IntUiLazyTreeIcons.chevronExpanded(), -) = IntUiLazyTreeIcons(chevronCollapsed, chevronExpanded, chevronSelectedCollapsed, chevronSelectedExpanded) +fun LazyTreeIcons.Companion.defaults( + chevronCollapsed: PainterProvider = standalonePainterProvider("expui/general/chevronRight.svg"), + chevronExpanded: PainterProvider = standalonePainterProvider("expui/general/chevronDown.svg"), + chevronSelectedCollapsed: PainterProvider = chevronCollapsed, + chevronSelectedExpanded: PainterProvider = chevronExpanded, +) = LazyTreeIcons(chevronCollapsed, chevronExpanded, chevronSelectedCollapsed, chevronSelectedExpanded) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiLinkStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiLinkStyling.kt index 2e32a7f7a..0bd878cab 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiLinkStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiLinkStyling.kt @@ -2,14 +2,12 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.style.TextDecoration import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpSize import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.intui.standalone.IntUiTheme @@ -21,150 +19,83 @@ import org.jetbrains.jewel.styling.LinkMetrics import org.jetbrains.jewel.styling.LinkStyle import org.jetbrains.jewel.styling.LinkTextStyles -@Immutable -@GenerateDataFunctions -class IntUiLinkStyle( - override val colors: IntUiLinkColors, - override val metrics: IntUiLinkMetrics, - override val icons: IntUiLinkIcons, - override val textStyles: IntUiLinkTextStyles, -) : LinkStyle { - - companion object { - - @Composable - fun light( - colors: IntUiLinkColors = IntUiLinkColors.light(), - metrics: IntUiLinkMetrics = IntUiLinkMetrics(), - icons: IntUiLinkIcons = intUiLinkIcons(), - textStyles: IntUiLinkTextStyles = IntUiLinkTextStyles.light(), - ) = IntUiLinkStyle(colors, metrics, icons, textStyles) - - @Composable - fun dark( - colors: IntUiLinkColors = IntUiLinkColors.dark(), - metrics: IntUiLinkMetrics = IntUiLinkMetrics(), - icons: IntUiLinkIcons = intUiLinkIcons(), - textStyles: IntUiLinkTextStyles = IntUiLinkTextStyles.dark(), - ) = IntUiLinkStyle(colors, metrics, icons, textStyles) - } -} - -@Immutable -@GenerateDataFunctions -class IntUiLinkColors( - override val content: Color, - override val contentDisabled: Color, - override val contentFocused: Color, - override val contentPressed: Color, - override val contentHovered: Color, - override val contentVisited: Color, -) : LinkColors { - - companion object { - - @Composable - fun light( - content: Color = IntUiLightTheme.colors.blue(2), - contentDisabled: Color = IntUiLightTheme.colors.grey(8), - contentFocused: Color = content, - contentPressed: Color = content, - contentHovered: Color = content, - contentVisited: Color = content, - ) = IntUiLinkColors( - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - contentVisited, - ) - - @Composable - fun dark( - content: Color = IntUiDarkTheme.colors.blue(9), - contentDisabled: Color = IntUiDarkTheme.colors.grey(7), - contentFocused: Color = content, - contentPressed: Color = content, - contentHovered: Color = content, - contentVisited: Color = content, - ) = IntUiLinkColors( - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - contentVisited, - ) - } -} - -@Immutable -@GenerateDataFunctions -class IntUiLinkMetrics( - override val focusHaloCornerSize: CornerSize = CornerSize(2.dp), - override val textIconGap: Dp = 0.dp, - override val iconSize: DpSize = DpSize(16.dp, 16.dp), -) : LinkMetrics - -@Immutable -@GenerateDataFunctions -class IntUiLinkIcons( - override val dropdownChevron: PainterProvider, - override val externalLink: PainterProvider, -) : LinkIcons { - - companion object { - - @Composable - fun dropdownChevron( - basePath: String = "expui/general/chevronDown.svg", - ): PainterProvider = standalonePainterProvider(basePath) - - @Composable - fun externalLink( - basePath: String = "expui/ide/externalLink.svg", - ): PainterProvider = standalonePainterProvider(basePath) - } -} +@Composable +fun LinkStyle.Companion.light( + colors: LinkColors = LinkColors.light(), + metrics: LinkMetrics = LinkMetrics.defaults(), + icons: LinkIcons = LinkIcons.defaults(), + textStyles: LinkTextStyles = LinkTextStyles.light(), +) = LinkStyle(colors, metrics, icons, textStyles) @Composable -fun intUiLinkIcons( - dropdownChevron: PainterProvider = IntUiLinkIcons.dropdownChevron(), - externalLink: PainterProvider = IntUiLinkIcons.externalLink(), -) = IntUiLinkIcons(dropdownChevron, externalLink) +fun LinkStyle.Companion.dark( + colors: LinkColors = LinkColors.dark(), + metrics: LinkMetrics = LinkMetrics.defaults(), + icons: LinkIcons = LinkIcons.defaults(), + textStyles: LinkTextStyles = LinkTextStyles.dark(), +) = LinkStyle(colors, metrics, icons, textStyles) -@Immutable -@GenerateDataFunctions -class IntUiLinkTextStyles( - override val normal: TextStyle, - override val disabled: TextStyle, - override val focused: TextStyle, - override val pressed: TextStyle, - override val hovered: TextStyle, - override val visited: TextStyle, -) : LinkTextStyles { +@Composable +fun LinkColors.Companion.light( + content: Color = IntUiLightTheme.colors.blue(2), + contentDisabled: Color = IntUiLightTheme.colors.grey(8), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + contentVisited: Color = content, +) = LinkColors( + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + contentVisited, +) - companion object { +@Composable +fun LinkColors.Companion.dark( + content: Color = IntUiDarkTheme.colors.blue(9), + contentDisabled: Color = IntUiDarkTheme.colors.grey(7), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + contentVisited: Color = content, +) = LinkColors( + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + contentVisited, +) + +fun LinkMetrics.Companion.defaults( + focusHaloCornerSize: CornerSize = CornerSize(2.dp), + textIconGap: Dp = 0.dp, + iconSize: DpSize = DpSize(16.dp, 16.dp), +) = LinkMetrics(focusHaloCornerSize, textIconGap, iconSize) + +fun LinkIcons.Companion.defaults( + dropdownChevron: PainterProvider = standalonePainterProvider("expui/general/chevronDown.svg"), + externalLink: PainterProvider = standalonePainterProvider("expui/ide/externalLink.svg"), +) = LinkIcons(dropdownChevron, externalLink) - @Composable - fun light( - normal: TextStyle = IntUiTheme.defaultTextStyle.copy(textDecoration = TextDecoration.Underline), - disabled: TextStyle = IntUiTheme.defaultTextStyle, - focused: TextStyle = normal, - pressed: TextStyle = normal, - hovered: TextStyle = normal, - visited: TextStyle = normal, - ): IntUiLinkTextStyles = IntUiLinkTextStyles(normal, disabled, focused, pressed, hovered, visited) +@Composable +fun LinkTextStyles.Companion.light( + normal: TextStyle = IntUiTheme.defaultTextStyle.copy(textDecoration = TextDecoration.Underline), + disabled: TextStyle = IntUiTheme.defaultTextStyle, + focused: TextStyle = normal, + pressed: TextStyle = normal, + hovered: TextStyle = normal, + visited: TextStyle = normal, +): LinkTextStyles = LinkTextStyles(normal, disabled, focused, pressed, hovered, visited) - @Composable - fun dark( - normal: TextStyle = IntUiTheme.defaultTextStyle.copy(textDecoration = TextDecoration.Underline), - disabled: TextStyle = IntUiTheme.defaultTextStyle, - focused: TextStyle = normal, - pressed: TextStyle = normal, - hovered: TextStyle = normal, - visited: TextStyle = normal, - ): IntUiLinkTextStyles = IntUiLinkTextStyles(normal, disabled, focused, pressed, hovered, visited) - } -} +@Composable +fun LinkTextStyles.Companion.dark( + normal: TextStyle = IntUiTheme.defaultTextStyle.copy(textDecoration = TextDecoration.Underline), + disabled: TextStyle = IntUiTheme.defaultTextStyle, + focused: TextStyle = normal, + pressed: TextStyle = normal, + hovered: TextStyle = normal, + visited: TextStyle = normal, +): LinkTextStyles = LinkTextStyles(normal, disabled, focused, pressed, hovered, visited) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiMenuStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiMenuStyling.kt index ca70816a9..5c0e9d034 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiMenuStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiMenuStyling.kt @@ -3,13 +3,10 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable -import androidx.compose.runtime.Stable import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpOffset import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.intui.standalone.standalonePainterProvider @@ -22,206 +19,133 @@ import org.jetbrains.jewel.styling.MenuMetrics import org.jetbrains.jewel.styling.MenuStyle import org.jetbrains.jewel.styling.SubmenuMetrics -@Stable -@GenerateDataFunctions -class IntUiMenuStyle( - override val colors: IntUiMenuColors, - override val metrics: IntUiMenuMetrics, - override val icons: IntUiMenuIcons, -) : MenuStyle { - - companion object { - - @Composable - fun light( - colors: IntUiMenuColors = IntUiMenuColors.light(), - metrics: IntUiMenuMetrics = IntUiMenuMetrics(), - icons: IntUiMenuIcons = intUiMenuIcons(), - ) = IntUiMenuStyle(colors, metrics, icons) - - @Composable - fun dark( - colors: IntUiMenuColors = IntUiMenuColors.dark(), - metrics: IntUiMenuMetrics = IntUiMenuMetrics(), - icons: IntUiMenuIcons = intUiMenuIcons(), - ) = IntUiMenuStyle(colors, metrics, icons) - } -} - -@Immutable -@GenerateDataFunctions -class IntUiMenuColors( - override val background: Color, - override val border: Color, - override val shadow: Color, - override val itemColors: IntUiMenuItemColors, -) : MenuColors { - - companion object { - - @Composable - fun light( - background: Color = IntUiLightTheme.colors.grey(14), - border: Color = IntUiLightTheme.colors.grey(9), - shadow: Color = Color(0x78919191), // Not a palette color - itemColors: IntUiMenuItemColors = IntUiMenuItemColors.light(), - ) = IntUiMenuColors(background, border, shadow, itemColors) - - @Composable - fun dark( - background: Color = IntUiDarkTheme.colors.grey(2), - border: Color = IntUiDarkTheme.colors.grey(3), - shadow: Color = Color(0x66000000), // Not a palette color - itemColors: IntUiMenuItemColors = IntUiMenuItemColors.dark(), - ) = IntUiMenuColors(background, border, shadow, itemColors) - } -} - -@Immutable -@GenerateDataFunctions -class IntUiMenuItemColors( - override val background: Color, - override val backgroundDisabled: Color, - override val backgroundFocused: Color, - override val backgroundPressed: Color, - override val backgroundHovered: Color, - override val content: Color, - override val contentDisabled: Color, - override val contentFocused: Color, - override val contentPressed: Color, - override val contentHovered: Color, - override val iconTint: Color, - override val iconTintDisabled: Color, - override val iconTintFocused: Color, - override val iconTintPressed: Color, - override val iconTintHovered: Color, - override val separator: Color, -) : MenuItemColors { - - companion object { - - @Composable - fun light( - background: Color = IntUiLightTheme.colors.grey(14), - backgroundDisabled: Color = IntUiLightTheme.colors.grey(14), - backgroundFocused: Color = IntUiLightTheme.colors.blue(11), - backgroundPressed: Color = background, - backgroundHovered: Color = backgroundFocused, - content: Color = IntUiLightTheme.colors.grey(1), - contentDisabled: Color = IntUiLightTheme.colors.grey(8), - contentFocused: Color = content, - contentPressed: Color = content, - contentHovered: Color = content, - iconTint: Color = IntUiLightTheme.colors.grey(7), - iconTintDisabled: Color = iconTint, - iconTintFocused: Color = iconTint, - iconTintPressed: Color = iconTint, - iconTintHovered: Color = iconTint, - separator: Color = IntUiLightTheme.colors.grey(12), - ) = IntUiMenuItemColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - iconTint, - iconTintDisabled, - iconTintFocused, - iconTintPressed, - iconTintHovered, - separator, - ) - - @Composable - fun dark( - background: Color = IntUiDarkTheme.colors.grey(2), - backgroundDisabled: Color = IntUiDarkTheme.colors.grey(2), - backgroundFocused: Color = IntUiDarkTheme.colors.blue(2), - backgroundPressed: Color = background, - backgroundHovered: Color = background, - content: Color = IntUiDarkTheme.colors.grey(12), - contentDisabled: Color = IntUiDarkTheme.colors.grey(7), - contentFocused: Color = content, - contentPressed: Color = content, - contentHovered: Color = content, - iconTint: Color = IntUiDarkTheme.colors.grey(10), - iconTintDisabled: Color = iconTint, - iconTintFocused: Color = iconTint, - iconTintPressed: Color = iconTint, - iconTintHovered: Color = iconTint, - separator: Color = IntUiDarkTheme.colors.grey(3), - ) = IntUiMenuItemColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - iconTint, - iconTintDisabled, - iconTintFocused, - iconTintPressed, - iconTintHovered, - separator, - ) - } -} - -@Stable -@GenerateDataFunctions -class IntUiMenuMetrics( - override val cornerSize: CornerSize = CornerSize(8.dp), - override val menuMargin: PaddingValues = PaddingValues(vertical = 6.dp), - override val contentPadding: PaddingValues = PaddingValues(vertical = 8.dp), - override val offset: DpOffset = DpOffset((-6).dp, 2.dp), - override val shadowSize: Dp = 12.dp, - override val borderWidth: Dp = 1.dp, - override val itemMetrics: MenuItemMetrics = IntUiMenuItemMetrics(), - override val submenuMetrics: SubmenuMetrics = IntUiSubmenuMetrics(), -) : MenuMetrics - -@Stable -@GenerateDataFunctions -class IntUiMenuItemMetrics( - override val selectionCornerSize: CornerSize = CornerSize(4.dp), - override val outerPadding: PaddingValues = PaddingValues(horizontal = 4.dp), - override val contentPadding: PaddingValues = PaddingValues(horizontal = 12.dp, vertical = 4.dp), - override val separatorPadding: PaddingValues = PaddingValues(horizontal = 12.dp, vertical = 4.dp), - override val separatorThickness: Dp = 1.dp, -) : MenuItemMetrics +@Composable +fun MenuStyle.Companion.light( + colors: MenuColors = MenuColors.light(), + metrics: MenuMetrics = MenuMetrics.defaults(), + icons: MenuIcons = MenuIcons.defaults(), +) = MenuStyle(colors, metrics, icons) -@Stable -@GenerateDataFunctions -class IntUiSubmenuMetrics( - override val offset: DpOffset = DpOffset(0.dp, (-8).dp), -) : SubmenuMetrics +@Composable +fun MenuStyle.Companion.dark( + colors: MenuColors = MenuColors.dark(), + metrics: MenuMetrics = MenuMetrics.defaults(), + icons: MenuIcons = MenuIcons.defaults(), +) = MenuStyle(colors, metrics, icons) -@Immutable -@GenerateDataFunctions -class IntUiMenuIcons( - override val submenuChevron: PainterProvider, -) : MenuIcons { +@Composable +fun MenuColors.Companion.light( + background: Color = IntUiLightTheme.colors.grey(14), + border: Color = IntUiLightTheme.colors.grey(9), + shadow: Color = Color(0x78919191), // Not a palette color + itemColors: MenuItemColors = MenuItemColors.light(), +) = MenuColors(background, border, shadow, itemColors) - companion object { +@Composable +fun MenuColors.Companion.dark( + background: Color = IntUiDarkTheme.colors.grey(2), + border: Color = IntUiDarkTheme.colors.grey(3), + shadow: Color = Color(0x66000000), // Not a palette color + itemColors: MenuItemColors = MenuItemColors.dark(), +) = MenuColors(background, border, shadow, itemColors) - @Composable - fun submenuChevron( - basePath: String = "expui/general/chevronRight.svg", - ): PainterProvider = standalonePainterProvider(basePath) - } -} +@Composable +fun MenuItemColors.Companion.light( + background: Color = IntUiLightTheme.colors.grey(14), + backgroundDisabled: Color = IntUiLightTheme.colors.grey(14), + backgroundFocused: Color = IntUiLightTheme.colors.blue(11), + backgroundPressed: Color = background, + backgroundHovered: Color = backgroundFocused, + content: Color = IntUiLightTheme.colors.grey(1), + contentDisabled: Color = IntUiLightTheme.colors.grey(8), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + iconTint: Color = IntUiLightTheme.colors.grey(7), + iconTintDisabled: Color = iconTint, + iconTintFocused: Color = iconTint, + iconTintPressed: Color = iconTint, + iconTintHovered: Color = iconTint, + separator: Color = IntUiLightTheme.colors.grey(12), +) = MenuItemColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + iconTint, + iconTintDisabled, + iconTintFocused, + iconTintPressed, + iconTintHovered, + separator, +) @Composable -fun intUiMenuIcons( - submenuChevron: PainterProvider = IntUiMenuIcons.submenuChevron(), -) = - IntUiMenuIcons(submenuChevron) +fun MenuItemColors.Companion.dark( + background: Color = IntUiDarkTheme.colors.grey(2), + backgroundDisabled: Color = IntUiDarkTheme.colors.grey(2), + backgroundFocused: Color = IntUiDarkTheme.colors.blue(2), + backgroundPressed: Color = background, + backgroundHovered: Color = background, + content: Color = IntUiDarkTheme.colors.grey(12), + contentDisabled: Color = IntUiDarkTheme.colors.grey(7), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + iconTint: Color = IntUiDarkTheme.colors.grey(10), + iconTintDisabled: Color = iconTint, + iconTintFocused: Color = iconTint, + iconTintPressed: Color = iconTint, + iconTintHovered: Color = iconTint, + separator: Color = IntUiDarkTheme.colors.grey(3), +) = MenuItemColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + iconTint, + iconTintDisabled, + iconTintFocused, + iconTintPressed, + iconTintHovered, + separator, +) + +fun MenuMetrics.Companion.defaults( + cornerSize: CornerSize = CornerSize(8.dp), + menuMargin: PaddingValues = PaddingValues(vertical = 6.dp), + contentPadding: PaddingValues = PaddingValues(vertical = 8.dp), + offset: DpOffset = DpOffset((-6).dp, 2.dp), + shadowSize: Dp = 12.dp, + borderWidth: Dp = 1.dp, + itemMetrics: MenuItemMetrics = MenuItemMetrics.defaults(), + submenuMetrics: SubmenuMetrics = SubmenuMetrics.defaults(), +) = MenuMetrics(cornerSize, menuMargin, contentPadding, offset, shadowSize, borderWidth, itemMetrics, submenuMetrics) + +fun MenuItemMetrics.Companion.defaults( + selectionCornerSize: CornerSize = CornerSize(4.dp), + outerPadding: PaddingValues = PaddingValues(horizontal = 4.dp), + contentPadding: PaddingValues = PaddingValues(horizontal = 12.dp, vertical = 4.dp), + separatorPadding: PaddingValues = PaddingValues(horizontal = 12.dp, vertical = 4.dp), + separatorThickness: Dp = 1.dp, +) = MenuItemMetrics(selectionCornerSize, outerPadding, contentPadding, separatorPadding, separatorThickness) + +fun SubmenuMetrics.Companion.defaults( + offset: DpOffset = DpOffset(0.dp, (-8).dp), +) = SubmenuMetrics(offset) + +fun MenuIcons.Companion.defaults( + submenuChevron: PainterProvider = standalonePainterProvider("expui/general/chevronRight.svg"), +) = MenuIcons(submenuChevron) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonStyling.kt index 73efe4758..a9e67075e 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiRadioButtonStyling.kt @@ -1,12 +1,10 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpSize import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.intui.standalone.standalonePainterProvider @@ -16,109 +14,63 @@ import org.jetbrains.jewel.styling.RadioButtonIcons import org.jetbrains.jewel.styling.RadioButtonMetrics import org.jetbrains.jewel.styling.RadioButtonStyle -@Immutable -@GenerateDataFunctions -class IntUiRadioButtonStyle( - override val colors: IntUiRadioButtonColors, - override val metrics: IntUiRadioButtonMetrics, - override val icons: IntUiRadioButtonIcons, -) : RadioButtonStyle { +@Composable +fun RadioButtonStyle.Companion.light( + colors: RadioButtonColors = RadioButtonColors.light(), + metrics: RadioButtonMetrics = RadioButtonMetrics.defaults(), + icons: RadioButtonIcons = RadioButtonIcons.light(), +) = RadioButtonStyle(colors, metrics, icons) - companion object { +@Composable +fun RadioButtonStyle.Companion.dark( + colors: RadioButtonColors = RadioButtonColors.dark(), + metrics: RadioButtonMetrics = RadioButtonMetrics.defaults(), + icons: RadioButtonIcons = RadioButtonIcons.dark(), +) = RadioButtonStyle(colors, metrics, icons) - @Composable - fun light( - colors: IntUiRadioButtonColors = IntUiRadioButtonColors.light(), - metrics: IntUiRadioButtonMetrics = IntUiRadioButtonMetrics(), - icons: IntUiRadioButtonIcons = IntUiRadioButtonIcons.light(), - ) = IntUiRadioButtonStyle(colors, metrics, icons) +@Composable +fun RadioButtonColors.Companion.light( + content: Color = Color.Unspecified, + contentHovered: Color = content, + contentDisabled: Color = IntUiLightTheme.colors.grey(8), + contentSelected: Color = content, + contentSelectedHovered: Color = content, + contentSelectedDisabled: Color = contentDisabled, +) = RadioButtonColors( + content, + contentHovered, + contentDisabled, + contentSelected, + contentSelectedHovered, + contentSelectedDisabled, +) - @Composable - fun dark( - colors: IntUiRadioButtonColors = IntUiRadioButtonColors.dark(), - metrics: IntUiRadioButtonMetrics = IntUiRadioButtonMetrics(), - icons: IntUiRadioButtonIcons = IntUiRadioButtonIcons.dark(), - ) = IntUiRadioButtonStyle(colors, metrics, icons) - } -} +@Composable +fun RadioButtonColors.Companion.dark( + content: Color = Color.Unspecified, + contentHovered: Color = content, + contentDisabled: Color = IntUiDarkTheme.colors.grey(8), + contentSelected: Color = content, + contentSelectedHovered: Color = content, + contentSelectedDisabled: Color = contentDisabled, +) = RadioButtonColors( + content, + contentHovered, + contentDisabled, + contentSelected, + contentSelectedHovered, + contentSelectedDisabled, +) -@Immutable -@GenerateDataFunctions -class IntUiRadioButtonColors( - override val content: Color, - override val contentHovered: Color, - override val contentDisabled: Color, - override val contentSelected: Color, - override val contentSelectedHovered: Color, - override val contentSelectedDisabled: Color, -) : RadioButtonColors { +fun RadioButtonMetrics.Companion.defaults( + radioButtonSize: DpSize = DpSize(19.dp, 19.dp), + iconContentGap: Dp = 8.dp, +) = RadioButtonMetrics(radioButtonSize, iconContentGap) - companion object { +fun RadioButtonIcons.Companion.light( + radioButton: PainterProvider = standalonePainterProvider("com/intellij/ide/ui/laf/icons/intellij/radio.svg"), +) = RadioButtonIcons(radioButton) - @Composable - fun light( - content: Color = Color.Unspecified, - contentHovered: Color = content, - contentDisabled: Color = IntUiLightTheme.colors.grey(8), - contentSelected: Color = content, - contentSelectedHovered: Color = content, - contentSelectedDisabled: Color = contentDisabled, - ) = IntUiRadioButtonColors( - content, - contentHovered, - contentDisabled, - contentSelected, - contentSelectedHovered, - contentSelectedDisabled, - ) - - @Composable - fun dark( - content: Color = Color.Unspecified, - contentHovered: Color = content, - contentDisabled: Color = IntUiDarkTheme.colors.grey(8), - contentSelected: Color = content, - contentSelectedHovered: Color = content, - contentSelectedDisabled: Color = contentDisabled, - ) = IntUiRadioButtonColors( - content, - contentHovered, - contentDisabled, - contentSelected, - contentSelectedHovered, - contentSelectedDisabled, - ) - } -} - -@Immutable -@GenerateDataFunctions -class IntUiRadioButtonMetrics( - override val radioButtonSize: DpSize = DpSize(19.dp, 19.dp), - override val iconContentGap: Dp = 8.dp, -) : RadioButtonMetrics - -@Immutable -@GenerateDataFunctions -class IntUiRadioButtonIcons( - override val radioButton: PainterProvider, -) : RadioButtonIcons { - - companion object { - - @Composable - fun radioButton( - basePath: String = "com/intellij/ide/ui/laf/icons/intellij/radio.svg", - ): PainterProvider = standalonePainterProvider(basePath) - - @Composable - fun light( - radioButton: PainterProvider = radioButton("com/intellij/ide/ui/laf/icons/intellij/radio.svg"), - ) = IntUiRadioButtonIcons(radioButton) - - @Composable - fun dark( - radioButton: PainterProvider = radioButton("com/intellij/ide/ui/laf/icons/darcula/radio.svg"), - ) = IntUiRadioButtonIcons(radioButton) - } -} +fun RadioButtonIcons.Companion.dark( + radioButton: PainterProvider = standalonePainterProvider("com/intellij/ide/ui/laf/icons/darcula/radio.svg"), +) = RadioButtonIcons(radioButton) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarStyling.kt index 136817c65..0582b1f51 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiScrollbarStyling.kt @@ -3,72 +3,44 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable -import androidx.compose.runtime.Stable import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.styling.ScrollbarColors import org.jetbrains.jewel.styling.ScrollbarMetrics import org.jetbrains.jewel.styling.ScrollbarStyle import kotlin.time.Duration import kotlin.time.Duration.Companion.milliseconds -@Stable -@GenerateDataFunctions -class IntUiScrollbarStyle( - override val colors: IntUiScrollbarColors, - override val metrics: IntUiScrollbarMetrics, - override val hoverDuration: Duration, -) : ScrollbarStyle { - - companion object { - - @Composable - fun light( - colors: IntUiScrollbarColors = IntUiScrollbarColors.light(), - metrics: IntUiScrollbarMetrics = IntUiScrollbarMetrics(), - hoverDuration: Duration = 300.milliseconds, - ) = IntUiScrollbarStyle(colors, metrics, hoverDuration) - - @Composable - fun dark( - colors: IntUiScrollbarColors = IntUiScrollbarColors.dark(), - metrics: IntUiScrollbarMetrics = IntUiScrollbarMetrics(), - hoverDuration: Duration = 300.milliseconds, - ) = IntUiScrollbarStyle(colors, metrics, hoverDuration) - } -} - -@Immutable -@GenerateDataFunctions -class IntUiScrollbarColors( - override val thumbBackground: Color, - override val thumbBackgroundHovered: Color, -) : ScrollbarColors { - - companion object { - - @Composable - fun light( - thumbBackground: Color = Color(0x33000000), - thumbBackgroundHovered: Color = Color(0x80000000), - ) = IntUiScrollbarColors(thumbBackground, thumbBackgroundHovered) - - @Composable - fun dark( - thumbBackground: Color = Color(0x59808080), - thumbBackgroundHovered: Color = Color(0x8C808080), - ) = IntUiScrollbarColors(thumbBackground, thumbBackgroundHovered) - } -} - -@Stable -@GenerateDataFunctions -class IntUiScrollbarMetrics( - override val thumbCornerSize: CornerSize = CornerSize(100), - override val thumbThickness: Dp = 8.dp, - override val minThumbLength: Dp = 16.dp, - override val trackPadding: PaddingValues = PaddingValues(start = 7.dp, end = 3.dp), -) : ScrollbarMetrics +@Composable +fun ScrollbarStyle.Companion.light( + colors: ScrollbarColors = ScrollbarColors.light(), + metrics: ScrollbarMetrics = ScrollbarMetrics.defaults(), + hoverDuration: Duration = 300.milliseconds, +) = ScrollbarStyle(colors, metrics, hoverDuration) + +@Composable +fun ScrollbarStyle.Companion.dark( + colors: ScrollbarColors = ScrollbarColors.dark(), + metrics: ScrollbarMetrics = ScrollbarMetrics.defaults(), + hoverDuration: Duration = 300.milliseconds, +) = ScrollbarStyle(colors, metrics, hoverDuration) + +@Composable +fun ScrollbarColors.Companion.light( + thumbBackground: Color = Color(0x33000000), + thumbBackgroundHovered: Color = Color(0x80000000), +) = ScrollbarColors(thumbBackground, thumbBackgroundHovered) + +@Composable +fun ScrollbarColors.Companion.dark( + thumbBackground: Color = Color(0x59808080), + thumbBackgroundHovered: Color = Color(0x8C808080), +) = ScrollbarColors(thumbBackground, thumbBackgroundHovered) + +fun ScrollbarMetrics.Companion.defaults( + thumbCornerSize: CornerSize = CornerSize(100), + thumbThickness: Dp = 8.dp, + minThumbLength: Dp = 16.dp, + trackPadding: PaddingValues = PaddingValues(start = 7.dp, end = 3.dp), +) = ScrollbarMetrics(thumbCornerSize, thumbThickness, minThumbLength, trackPadding) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTabStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTabStyling.kt index 0c4fb274a..c7209050b 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTabStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTabStyling.kt @@ -2,12 +2,9 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.layout.PaddingValues import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable -import androidx.compose.runtime.Stable import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.intui.standalone.standalonePainterProvider @@ -18,349 +15,288 @@ import org.jetbrains.jewel.styling.TabIcons import org.jetbrains.jewel.styling.TabMetrics import org.jetbrains.jewel.styling.TabStyle -@Stable -@GenerateDataFunctions -class IntUiTabStyle( - override val colors: TabColors, - override val metrics: TabMetrics, - override val icons: TabIcons, - override val contentAlpha: TabContentAlpha, -) : TabStyle { +val TabStyle.Companion.Default + get() = IntUiDefaultTabStyleFactory - object Default { +object IntUiDefaultTabStyleFactory { - @Composable - fun light( - colors: TabColors = IntUiTabColors.Default.light(), - metrics: TabMetrics = IntUiTabMetrics(), - icons: TabIcons = intUiTabIcons(), - contentAlpha: TabContentAlpha = IntUiTabContentAlpha.default(), - ) = IntUiTabStyle(colors, metrics, icons, contentAlpha) + @Composable + fun light( + colors: TabColors = TabColors.Default.light(), + metrics: TabMetrics = TabMetrics.defaults(), + icons: TabIcons = TabIcons.defaults(), + contentAlpha: TabContentAlpha = TabContentAlpha.default(), + ) = TabStyle(colors, metrics, icons, contentAlpha) - @Composable - fun dark( - colors: TabColors = IntUiTabColors.Default.dark(), - metrics: TabMetrics = IntUiTabMetrics(), - icons: TabIcons = intUiTabIcons(), - contentAlpha: TabContentAlpha = IntUiTabContentAlpha.default(), - ) = IntUiTabStyle(colors, metrics, icons, contentAlpha) - } - - object Editor { - - @Composable - fun light( - colors: TabColors = IntUiTabColors.Editor.light(), - metrics: TabMetrics = IntUiTabMetrics(), - icons: TabIcons = intUiTabIcons(), - contentAlpha: TabContentAlpha = IntUiTabContentAlpha.editor(), - ) = IntUiTabStyle(colors, metrics, icons, contentAlpha) - - @Composable - fun dark( - colors: TabColors = IntUiTabColors.Editor.dark(), - metrics: TabMetrics = IntUiTabMetrics(), - icons: TabIcons = intUiTabIcons(), - contentAlpha: TabContentAlpha = IntUiTabContentAlpha.editor(), - ) = IntUiTabStyle(colors, metrics, icons, contentAlpha) - } + @Composable + fun dark( + colors: TabColors = TabColors.Default.dark(), + metrics: TabMetrics = TabMetrics.defaults(), + icons: TabIcons = TabIcons.defaults(), + contentAlpha: TabContentAlpha = TabContentAlpha.default(), + ) = TabStyle(colors, metrics, icons, contentAlpha) } -@Immutable -@GenerateDataFunctions -class IntUiTabColors( - override val background: Color, - override val backgroundDisabled: Color, - override val backgroundFocused: Color, - override val backgroundPressed: Color, - override val backgroundHovered: Color, - override val backgroundSelected: Color, - override val content: Color, - override val contentDisabled: Color, - override val contentFocused: Color, - override val contentPressed: Color, - override val contentHovered: Color, - override val contentSelected: Color, - override val underline: Color, - override val underlineDisabled: Color, - override val underlineFocused: Color, - override val underlinePressed: Color, - override val underlineHovered: Color, - override val underlineSelected: Color, -) : TabColors { - - object Default { +val TabStyle.Companion.Editor + get() = IntUiEditorTabStyleFactory - fun light( - background: Color = IntUiLightTheme.colors.grey(14), - backgroundFocused: Color = background, - backgroundHovered: Color = IntUiLightTheme.colors.grey(12), - backgroundPressed: Color = backgroundHovered, - backgroundSelected: Color = background, - backgroundDisabled: Color = background, - content: Color = IntUiLightTheme.colors.grey(1), - contentHovered: Color = content, - contentDisabled: Color = content, - contentPressed: Color = content, - contentFocused: Color = content, - contentSelected: Color = content, - underline: Color = Color.Unspecified, - underlineHovered: Color = underline, - underlineDisabled: Color = underline, - underlinePressed: Color = underline, - underlineFocused: Color = underline, - underlineSelected: Color = IntUiLightTheme.colors.blue(4), - ) = IntUiTabColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - backgroundSelected, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - contentSelected, - underline, - underlineDisabled, - underlineFocused, - underlinePressed, - underlineHovered, - underlineSelected, - ) +object IntUiEditorTabStyleFactory { - fun dark( - background: Color = Color.Unspecified, - backgroundFocused: Color = background, - backgroundHovered: Color = IntUiDarkTheme.colors.grey(4), - backgroundPressed: Color = backgroundHovered, - backgroundSelected: Color = background, - backgroundDisabled: Color = background, - content: Color = Color.Unspecified, - contentHovered: Color = content, - contentDisabled: Color = content, - contentPressed: Color = content, - contentFocused: Color = content, - contentSelected: Color = content, - underline: Color = Color.Unspecified, - underlineHovered: Color = underline, - underlineDisabled: Color = underline, - underlinePressed: Color = underline, - underlineFocused: Color = underline, - underlineSelected: Color = IntUiDarkTheme.colors.blue(6), - ) = IntUiTabColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - backgroundSelected, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - contentSelected, - underline, - underlineDisabled, - underlineFocused, - underlinePressed, - underlineHovered, - underlineSelected, - ) - } + @Composable + fun light( + colors: TabColors = TabColors.Editor.light(), + metrics: TabMetrics = TabMetrics.defaults(), + icons: TabIcons = TabIcons.defaults(), + contentAlpha: TabContentAlpha = TabContentAlpha.editor(), + ) = TabStyle(colors, metrics, icons, contentAlpha) - object Editor { + @Composable + fun dark( + colors: TabColors = TabColors.Editor.dark(), + metrics: TabMetrics = TabMetrics.defaults(), + icons: TabIcons = TabIcons.defaults(), + contentAlpha: TabContentAlpha = TabContentAlpha.editor(), + ) = TabStyle(colors, metrics, icons, contentAlpha) +} - fun light( - background: Color = Color.Transparent, - backgroundFocused: Color = background, - backgroundHovered: Color = background, - backgroundPressed: Color = background, - backgroundSelected: Color = background, - backgroundDisabled: Color = background, - content: Color = Color.Unspecified, - contentHovered: Color = content, - contentDisabled: Color = content, - contentPressed: Color = content, - contentFocused: Color = content, - contentSelected: Color = content, - underline: Color = Color.Unspecified, - underlineHovered: Color = underline, - underlineDisabled: Color = underline, - underlinePressed: Color = underline, - underlineFocused: Color = underline, - underlineSelected: Color = IntUiLightTheme.colors.blue(4), - ) = IntUiTabColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - backgroundSelected, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - contentSelected, - underline, - underlineDisabled, - underlineFocused, - underlinePressed, - underlineHovered, - underlineSelected, - ) +val TabColors.Companion.Default + get() = IntUiDefaultTabColorsFactory - fun dark( - background: Color = Color.Unspecified, - backgroundFocused: Color = background, - backgroundHovered: Color = background, - backgroundPressed: Color = background, - backgroundSelected: Color = background, - backgroundDisabled: Color = background, +object IntUiDefaultTabColorsFactory { - content: Color = Color.Unspecified, - contentHovered: Color = content, - contentDisabled: Color = content, - contentPressed: Color = content, - contentFocused: Color = content, - contentSelected: Color = content, + fun light( + background: Color = IntUiLightTheme.colors.grey(14), + backgroundFocused: Color = background, + backgroundHovered: Color = IntUiLightTheme.colors.grey(12), + backgroundPressed: Color = backgroundHovered, + backgroundSelected: Color = background, + backgroundDisabled: Color = background, + content: Color = IntUiLightTheme.colors.grey(1), + contentHovered: Color = content, + contentDisabled: Color = content, + contentPressed: Color = content, + contentFocused: Color = content, + contentSelected: Color = content, + underline: Color = Color.Unspecified, + underlineHovered: Color = underline, + underlineDisabled: Color = underline, + underlinePressed: Color = underline, + underlineFocused: Color = underline, + underlineSelected: Color = IntUiLightTheme.colors.blue(4), + ) = TabColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + backgroundSelected, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + contentSelected, + underline, + underlineDisabled, + underlineFocused, + underlinePressed, + underlineHovered, + underlineSelected, + ) - underline: Color = Color.Unspecified, - underlineHovered: Color = underline, - underlineDisabled: Color = underline, - underlinePressed: Color = underline, - underlineFocused: Color = underline, - underlineSelected: Color = IntUiDarkTheme.colors.blue(6), - ) = IntUiTabColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - backgroundSelected, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - contentSelected, - underline, - underlineDisabled, - underlineFocused, - underlinePressed, - underlineHovered, - underlineSelected, - ) - } + fun dark( + background: Color = Color.Unspecified, + backgroundFocused: Color = background, + backgroundHovered: Color = IntUiDarkTheme.colors.grey(4), + backgroundPressed: Color = backgroundHovered, + backgroundSelected: Color = background, + backgroundDisabled: Color = background, + content: Color = Color.Unspecified, + contentHovered: Color = content, + contentDisabled: Color = content, + contentPressed: Color = content, + contentFocused: Color = content, + contentSelected: Color = content, + underline: Color = Color.Unspecified, + underlineHovered: Color = underline, + underlineDisabled: Color = underline, + underlinePressed: Color = underline, + underlineFocused: Color = underline, + underlineSelected: Color = IntUiDarkTheme.colors.blue(6), + ) = TabColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + backgroundSelected, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + contentSelected, + underline, + underlineDisabled, + underlineFocused, + underlinePressed, + underlineHovered, + underlineSelected, + ) } -@Stable -@GenerateDataFunctions -class IntUiTabMetrics( - override val underlineThickness: Dp = 3.dp, - override val tabPadding: PaddingValues = PaddingValues(horizontal = 8.dp), - override val closeContentGap: Dp = 8.dp, - override val tabHeight: Dp = 40.dp, -) : TabMetrics +val TabColors.Companion.Editor + get() = IntUiEditorTabColorsFactory + +object IntUiEditorTabColorsFactory { -@Immutable -@GenerateDataFunctions -class IntUiTabContentAlpha( - override val iconNormal: Float, - override val iconDisabled: Float, - override val iconFocused: Float, - override val iconPressed: Float, - override val iconHovered: Float, - override val iconSelected: Float, - override val labelNormal: Float, - override val labelDisabled: Float, - override val labelFocused: Float, - override val labelPressed: Float, - override val labelHovered: Float, - override val labelSelected: Float, -) : TabContentAlpha { + fun light( + background: Color = Color.Transparent, + backgroundFocused: Color = background, + backgroundHovered: Color = background, + backgroundPressed: Color = background, + backgroundSelected: Color = background, + backgroundDisabled: Color = background, + content: Color = Color.Unspecified, + contentHovered: Color = content, + contentDisabled: Color = content, + contentPressed: Color = content, + contentFocused: Color = content, + contentSelected: Color = content, + underline: Color = Color.Unspecified, + underlineHovered: Color = underline, + underlineDisabled: Color = underline, + underlinePressed: Color = underline, + underlineFocused: Color = underline, + underlineSelected: Color = IntUiLightTheme.colors.blue(4), + ) = TabColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + backgroundSelected, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + contentSelected, + underline, + underlineDisabled, + underlineFocused, + underlinePressed, + underlineHovered, + underlineSelected, + ) - companion object { + fun dark( + background: Color = Color.Unspecified, + backgroundFocused: Color = background, + backgroundHovered: Color = background, + backgroundPressed: Color = background, + backgroundSelected: Color = background, + backgroundDisabled: Color = background, - fun default( - iconNormal: Float = 1f, - iconDisabled: Float = iconNormal, - iconFocused: Float = iconNormal, - iconPressed: Float = iconNormal, - iconHovered: Float = iconNormal, - iconSelected: Float = iconNormal, - labelNormal: Float = iconNormal, - labelDisabled: Float = iconNormal, - labelFocused: Float = iconNormal, - labelPressed: Float = iconNormal, - labelHovered: Float = iconNormal, - labelSelected: Float = iconNormal, - ) = IntUiTabContentAlpha( - iconNormal, - iconDisabled, - iconFocused, - iconPressed, - iconHovered, - iconSelected, - labelNormal, - labelDisabled, - labelFocused, - labelPressed, - labelHovered, - labelSelected, - ) + content: Color = Color.Unspecified, + contentHovered: Color = content, + contentDisabled: Color = content, + contentPressed: Color = content, + contentFocused: Color = content, + contentSelected: Color = content, - fun editor( - iconNormal: Float = .7f, - iconDisabled: Float = iconNormal, - iconFocused: Float = iconNormal, - iconPressed: Float = 1f, - iconHovered: Float = iconPressed, - iconSelected: Float = iconPressed, - labelNormal: Float = .9f, - labelDisabled: Float = labelNormal, - labelFocused: Float = labelNormal, - labelPressed: Float = 1f, - labelHovered: Float = labelPressed, - labelSelected: Float = labelPressed, - ) = - IntUiTabContentAlpha( - iconNormal, - iconDisabled, - iconFocused, - iconPressed, - iconHovered, - iconSelected, - labelNormal, - labelDisabled, - labelFocused, - labelPressed, - labelHovered, - labelSelected, - ) - } + underline: Color = Color.Unspecified, + underlineHovered: Color = underline, + underlineDisabled: Color = underline, + underlinePressed: Color = underline, + underlineFocused: Color = underline, + underlineSelected: Color = IntUiDarkTheme.colors.blue(6), + ) = TabColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + backgroundSelected, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + contentSelected, + underline, + underlineDisabled, + underlineFocused, + underlinePressed, + underlineHovered, + underlineSelected, + ) } -@Immutable -@GenerateDataFunctions -class IntUiTabIcons( - override val close: PainterProvider, -) : TabIcons { +fun TabMetrics.Companion.defaults( + underlineThickness: Dp = 3.dp, + tabPadding: PaddingValues = PaddingValues(horizontal = 8.dp), + closeContentGap: Dp = 8.dp, + tabHeight: Dp = 40.dp, +) = TabMetrics(underlineThickness, tabPadding, tabHeight, closeContentGap) - companion object { +fun TabContentAlpha.Companion.default( + iconNormal: Float = 1f, + iconDisabled: Float = iconNormal, + iconFocused: Float = iconNormal, + iconPressed: Float = iconNormal, + iconHovered: Float = iconNormal, + iconSelected: Float = iconNormal, + labelNormal: Float = iconNormal, + labelDisabled: Float = iconNormal, + labelFocused: Float = iconNormal, + labelPressed: Float = iconNormal, + labelHovered: Float = iconNormal, + labelSelected: Float = iconNormal, +) = TabContentAlpha( + iconNormal, + iconDisabled, + iconFocused, + iconPressed, + iconHovered, + iconSelected, + labelNormal, + labelDisabled, + labelFocused, + labelPressed, + labelHovered, + labelSelected, +) - @Composable - fun close( - basePath: String = "expui/general/closeSmall.svg", - ): PainterProvider = standalonePainterProvider(basePath) - } -} +fun TabContentAlpha.Companion.editor( + iconNormal: Float = .7f, + iconDisabled: Float = iconNormal, + iconFocused: Float = iconNormal, + iconPressed: Float = 1f, + iconHovered: Float = iconPressed, + iconSelected: Float = iconPressed, + labelNormal: Float = .9f, + labelDisabled: Float = labelNormal, + labelFocused: Float = labelNormal, + labelPressed: Float = 1f, + labelHovered: Float = labelPressed, + labelSelected: Float = labelPressed, +) = + TabContentAlpha( + iconNormal, + iconDisabled, + iconFocused, + iconPressed, + iconHovered, + iconSelected, + labelNormal, + labelDisabled, + labelFocused, + labelPressed, + labelHovered, + labelSelected, + ) -@Composable -fun intUiTabIcons( - close: PainterProvider = IntUiTabIcons.close(), -) = IntUiTabIcons(close) +fun TabIcons.Companion.defaults( + close: PainterProvider = standalonePainterProvider("expui/general/closeSmall.svg"), +) = TabIcons(close) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaStyling.kt index dfc25c2c2..df4441624 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTextAreaStyling.kt @@ -3,176 +3,129 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable -import androidx.compose.runtime.Stable import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.TextStyle import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpSize import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.intui.standalone.IntUiTheme -import org.jetbrains.jewel.styling.InputFieldMetrics import org.jetbrains.jewel.styling.TextAreaColors +import org.jetbrains.jewel.styling.TextAreaMetrics import org.jetbrains.jewel.styling.TextAreaStyle -@Stable -@GenerateDataFunctions -class IntUiTextAreaStyle( - override val colors: IntUiTextAreaColors, - override val metrics: IntUiTextAreaMetrics, - override val textStyle: TextStyle, -) : TextAreaStyle { +@Composable +fun TextAreaStyle.Companion.light( + colors: TextAreaColors = TextAreaColors.light(), + metrics: TextAreaMetrics = TextAreaMetrics.defaults(), + textStyle: TextStyle = IntUiTheme.defaultTextStyle, +) = TextAreaStyle(colors, metrics, textStyle) - companion object { +@Composable +fun TextAreaStyle.Companion.dark( + colors: TextAreaColors = TextAreaColors.dark(), + metrics: TextAreaMetrics = TextAreaMetrics.defaults(), + textStyle: TextStyle = IntUiTheme.defaultTextStyle, +) = TextAreaStyle(colors, metrics, textStyle) - @Composable - fun light( - colors: IntUiTextAreaColors = IntUiTextAreaColors.light(), - metrics: IntUiTextAreaMetrics = IntUiTextAreaMetrics(), - textStyle: TextStyle = IntUiTheme.defaultTextStyle, - ) = IntUiTextAreaStyle(colors, metrics, textStyle) +@Composable +fun TextAreaColors.Companion.light( + background: Color = IntUiLightTheme.colors.grey(14), + backgroundDisabled: Color = IntUiLightTheme.colors.grey(13), + backgroundFocused: Color = background, + backgroundPressed: Color = background, + backgroundHovered: Color = background, + content: Color = IntUiLightTheme.colors.grey(1), + contentDisabled: Color = IntUiLightTheme.colors.grey(8), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + border: Color = IntUiLightTheme.colors.grey(9), + borderDisabled: Color = IntUiLightTheme.colors.grey(11), + borderFocused: Color = IntUiLightTheme.colors.blue(4), + borderPressed: Color = border, + borderHovered: Color = border, + caret: Color = IntUiLightTheme.colors.grey(1), + caretDisabled: Color = caret, + caretFocused: Color = caret, + caretPressed: Color = caret, + caretHovered: Color = caret, + placeholder: Color = IntUiLightTheme.colors.grey(8), +) = TextAreaColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + caret, + caretDisabled, + caretFocused, + caretPressed, + caretHovered, + placeholder, +) - @Composable - fun dark( - colors: IntUiTextAreaColors = IntUiTextAreaColors.dark(), - metrics: IntUiTextAreaMetrics = IntUiTextAreaMetrics(), - textStyle: TextStyle = IntUiTheme.defaultTextStyle, - ) = IntUiTextAreaStyle(colors, metrics, textStyle) - } -} +@Composable +fun TextAreaColors.Companion.dark( + background: Color = IntUiDarkTheme.colors.grey(2), + backgroundDisabled: Color = background, + backgroundFocused: Color = background, + backgroundPressed: Color = background, + backgroundHovered: Color = background, + content: Color = IntUiDarkTheme.colors.grey(12), + contentDisabled: Color = IntUiDarkTheme.colors.grey(7), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + border: Color = IntUiDarkTheme.colors.grey(5), + borderDisabled: Color = border, + borderFocused: Color = IntUiDarkTheme.colors.blue(6), + borderPressed: Color = border, + borderHovered: Color = border, + caret: Color = IntUiDarkTheme.colors.grey(12), + caretDisabled: Color = caret, + caretFocused: Color = caret, + caretPressed: Color = caret, + caretHovered: Color = caret, + placeholder: Color = IntUiDarkTheme.colors.grey(7), +) = TextAreaColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + caret, + caretDisabled, + caretFocused, + caretPressed, + caretHovered, + placeholder, +) -@Immutable -@GenerateDataFunctions -class IntUiTextAreaColors( - override val background: Color, - override val backgroundDisabled: Color, - override val backgroundFocused: Color, - override val backgroundPressed: Color, - override val backgroundHovered: Color, - override val content: Color, - override val contentDisabled: Color, - override val contentFocused: Color, - override val contentPressed: Color, - override val contentHovered: Color, - override val border: Color, - override val borderDisabled: Color, - override val borderFocused: Color, - override val borderPressed: Color, - override val borderHovered: Color, - override val caret: Color, - override val caretDisabled: Color, - override val caretFocused: Color, - override val caretPressed: Color, - override val caretHovered: Color, - override val placeholder: Color, -) : TextAreaColors { - - companion object { - - @Composable - fun light( - background: Color = IntUiLightTheme.colors.grey(14), - backgroundDisabled: Color = IntUiLightTheme.colors.grey(13), - backgroundFocused: Color = background, - backgroundPressed: Color = background, - backgroundHovered: Color = background, - content: Color = IntUiLightTheme.colors.grey(1), - contentDisabled: Color = IntUiLightTheme.colors.grey(8), - contentFocused: Color = content, - contentPressed: Color = content, - contentHovered: Color = content, - border: Color = IntUiLightTheme.colors.grey(9), - borderDisabled: Color = IntUiLightTheme.colors.grey(11), - borderFocused: Color = IntUiLightTheme.colors.blue(4), - borderPressed: Color = border, - borderHovered: Color = border, - caret: Color = IntUiLightTheme.colors.grey(1), - caretDisabled: Color = caret, - caretFocused: Color = caret, - caretPressed: Color = caret, - caretHovered: Color = caret, - placeholder: Color = IntUiLightTheme.colors.grey(8), - ) = IntUiTextAreaColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - caret, - caretDisabled, - caretFocused, - caretPressed, - caretHovered, - placeholder, - ) - - @Composable - fun dark( - background: Color = IntUiDarkTheme.colors.grey(2), - backgroundDisabled: Color = background, - backgroundFocused: Color = background, - backgroundPressed: Color = background, - backgroundHovered: Color = background, - content: Color = IntUiDarkTheme.colors.grey(12), - contentDisabled: Color = IntUiDarkTheme.colors.grey(7), - contentFocused: Color = content, - contentPressed: Color = content, - contentHovered: Color = content, - border: Color = IntUiDarkTheme.colors.grey(5), - borderDisabled: Color = border, - borderFocused: Color = IntUiDarkTheme.colors.blue(6), - borderPressed: Color = border, - borderHovered: Color = border, - caret: Color = IntUiDarkTheme.colors.grey(12), - caretDisabled: Color = caret, - caretFocused: Color = caret, - caretPressed: Color = caret, - caretHovered: Color = caret, - placeholder: Color = IntUiDarkTheme.colors.grey(7), - ) = IntUiTextAreaColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - caret, - caretDisabled, - caretFocused, - caretPressed, - caretHovered, - placeholder, - ) - } -} - -@Stable -@GenerateDataFunctions -class IntUiTextAreaMetrics( - override val cornerSize: CornerSize = CornerSize(4.dp), - override val contentPadding: PaddingValues = PaddingValues(horizontal = 6.dp, vertical = 2.dp), - override val minSize: DpSize = DpSize(144.dp, 28.dp), - override val borderWidth: Dp = 1.dp, -) : InputFieldMetrics +fun TextAreaMetrics.Companion.defaults( + cornerSize: CornerSize = CornerSize(4.dp), + contentPadding: PaddingValues = PaddingValues(horizontal = 6.dp, vertical = 2.dp), + minSize: DpSize = DpSize(144.dp, 28.dp), + borderWidth: Dp = 1.dp, +) = TextAreaMetrics(borderWidth, contentPadding, cornerSize, minSize) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldStyling.kt index bae7505cf..1c4fe15e5 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTextFieldStyling.kt @@ -3,176 +3,129 @@ package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable -import androidx.compose.runtime.Immutable -import androidx.compose.runtime.Stable import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.TextStyle import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.DpSize import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.intui.standalone.IntUiTheme -import org.jetbrains.jewel.styling.InputFieldMetrics import org.jetbrains.jewel.styling.TextFieldColors +import org.jetbrains.jewel.styling.TextFieldMetrics import org.jetbrains.jewel.styling.TextFieldStyle -@Stable -@GenerateDataFunctions -class IntUiTextFieldStyle( - override val colors: IntUiTextFieldColors, - override val metrics: IntUiTextFieldMetrics, - override val textStyle: TextStyle, -) : TextFieldStyle { +@Composable +fun TextFieldStyle.Companion.light( + colors: TextFieldColors = TextFieldColors.light(), + metrics: TextFieldMetrics = TextFieldMetrics.defaults(), + textStyle: TextStyle = IntUiTheme.defaultTextStyle, +) = TextFieldStyle(colors, metrics, textStyle) - companion object { +@Composable +fun TextFieldStyle.Companion.dark( + colors: TextFieldColors = TextFieldColors.dark(), + metrics: TextFieldMetrics = TextFieldMetrics.defaults(), + textStyle: TextStyle = IntUiTheme.defaultTextStyle, +) = TextFieldStyle(colors, metrics, textStyle) - @Composable - fun light( - colors: IntUiTextFieldColors = IntUiTextFieldColors.light(), - metrics: IntUiTextFieldMetrics = IntUiTextFieldMetrics(), - textStyle: TextStyle = IntUiTheme.defaultTextStyle, - ) = IntUiTextFieldStyle(colors, metrics, textStyle) +@Composable +fun TextFieldColors.Companion.light( + background: Color = IntUiLightTheme.colors.grey(14), + backgroundDisabled: Color = IntUiLightTheme.colors.grey(13), + backgroundFocused: Color = background, + backgroundPressed: Color = background, + backgroundHovered: Color = background, + content: Color = IntUiLightTheme.colors.grey(1), + contentDisabled: Color = IntUiLightTheme.colors.grey(8), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + border: Color = IntUiLightTheme.colors.grey(9), + borderDisabled: Color = IntUiLightTheme.colors.grey(11), + borderFocused: Color = IntUiLightTheme.colors.blue(4), + borderPressed: Color = border, + borderHovered: Color = border, + caret: Color = IntUiLightTheme.colors.grey(1), + caretDisabled: Color = caret, + caretFocused: Color = caret, + caretPressed: Color = caret, + caretHovered: Color = caret, + placeholder: Color = IntUiLightTheme.colors.grey(8), +) = TextFieldColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + caret, + caretDisabled, + caretFocused, + caretPressed, + caretHovered, + placeholder, +) - @Composable - fun dark( - colors: IntUiTextFieldColors = IntUiTextFieldColors.dark(), - metrics: IntUiTextFieldMetrics = IntUiTextFieldMetrics(), - textStyle: TextStyle = IntUiTheme.defaultTextStyle, - ) = IntUiTextFieldStyle(colors, metrics, textStyle) - } -} +@Composable +fun TextFieldColors.Companion.dark( + background: Color = IntUiDarkTheme.colors.grey(2), + backgroundDisabled: Color = background, + backgroundFocused: Color = background, + backgroundPressed: Color = background, + backgroundHovered: Color = background, + content: Color = IntUiDarkTheme.colors.grey(12), + contentDisabled: Color = IntUiDarkTheme.colors.grey(7), + contentFocused: Color = content, + contentPressed: Color = content, + contentHovered: Color = content, + border: Color = IntUiDarkTheme.colors.grey(5), + borderDisabled: Color = border, + borderFocused: Color = IntUiDarkTheme.colors.blue(6), + borderPressed: Color = border, + borderHovered: Color = border, + caret: Color = IntUiDarkTheme.colors.grey(12), + caretDisabled: Color = caret, + caretFocused: Color = caret, + caretPressed: Color = caret, + caretHovered: Color = caret, + placeholder: Color = IntUiDarkTheme.colors.grey(7), +) = TextFieldColors( + background, + backgroundDisabled, + backgroundFocused, + backgroundPressed, + backgroundHovered, + content, + contentDisabled, + contentFocused, + contentPressed, + contentHovered, + border, + borderDisabled, + borderFocused, + borderPressed, + borderHovered, + caret, + caretDisabled, + caretFocused, + caretPressed, + caretHovered, + placeholder, +) -@Immutable -@GenerateDataFunctions -class IntUiTextFieldColors( - override val background: Color, - override val backgroundDisabled: Color, - override val backgroundFocused: Color, - override val backgroundPressed: Color, - override val backgroundHovered: Color, - override val content: Color, - override val contentDisabled: Color, - override val contentFocused: Color, - override val contentPressed: Color, - override val contentHovered: Color, - override val border: Color, - override val borderDisabled: Color, - override val borderFocused: Color, - override val borderPressed: Color, - override val borderHovered: Color, - override val caret: Color, - override val caretDisabled: Color, - override val caretFocused: Color, - override val caretPressed: Color, - override val caretHovered: Color, - override val placeholder: Color, -) : TextFieldColors { - - companion object { - - @Composable - fun light( - background: Color = IntUiLightTheme.colors.grey(14), - backgroundDisabled: Color = IntUiLightTheme.colors.grey(13), - backgroundFocused: Color = background, - backgroundPressed: Color = background, - backgroundHovered: Color = background, - content: Color = IntUiLightTheme.colors.grey(1), - contentDisabled: Color = IntUiLightTheme.colors.grey(8), - contentFocused: Color = content, - contentPressed: Color = content, - contentHovered: Color = content, - border: Color = IntUiLightTheme.colors.grey(9), - borderDisabled: Color = IntUiLightTheme.colors.grey(11), - borderFocused: Color = IntUiLightTheme.colors.blue(4), - borderPressed: Color = border, - borderHovered: Color = border, - caret: Color = IntUiLightTheme.colors.grey(1), - caretDisabled: Color = caret, - caretFocused: Color = caret, - caretPressed: Color = caret, - caretHovered: Color = caret, - placeholder: Color = IntUiLightTheme.colors.grey(8), - ) = IntUiTextFieldColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - caret, - caretDisabled, - caretFocused, - caretPressed, - caretHovered, - placeholder, - ) - - @Composable - fun dark( - background: Color = IntUiDarkTheme.colors.grey(2), - backgroundDisabled: Color = background, - backgroundFocused: Color = background, - backgroundPressed: Color = background, - backgroundHovered: Color = background, - content: Color = IntUiDarkTheme.colors.grey(12), - contentDisabled: Color = IntUiDarkTheme.colors.grey(7), - contentFocused: Color = content, - contentPressed: Color = content, - contentHovered: Color = content, - border: Color = IntUiDarkTheme.colors.grey(5), - borderDisabled: Color = border, - borderFocused: Color = IntUiDarkTheme.colors.blue(6), - borderPressed: Color = border, - borderHovered: Color = border, - caret: Color = IntUiDarkTheme.colors.grey(12), - caretDisabled: Color = caret, - caretFocused: Color = caret, - caretPressed: Color = caret, - caretHovered: Color = caret, - placeholder: Color = IntUiDarkTheme.colors.grey(7), - ) = IntUiTextFieldColors( - background, - backgroundDisabled, - backgroundFocused, - backgroundPressed, - backgroundHovered, - content, - contentDisabled, - contentFocused, - contentPressed, - contentHovered, - border, - borderDisabled, - borderFocused, - borderPressed, - borderHovered, - caret, - caretDisabled, - caretFocused, - caretPressed, - caretHovered, - placeholder, - ) - } -} - -@Stable -@GenerateDataFunctions -class IntUiTextFieldMetrics( - override val cornerSize: CornerSize = CornerSize(4.dp), - override val contentPadding: PaddingValues = PaddingValues(horizontal = 9.dp, vertical = 6.dp), - override val minSize: DpSize = DpSize(144.dp, 28.dp), - override val borderWidth: Dp = 1.dp, -) : InputFieldMetrics +fun TextFieldMetrics.Companion.defaults( + cornerSize: CornerSize = CornerSize(4.dp), + contentPadding: PaddingValues = PaddingValues(horizontal = 9.dp, vertical = 6.dp), + minSize: DpSize = DpSize(144.dp, 28.dp), + borderWidth: Dp = 1.dp, +) = TextFieldMetrics(borderWidth, contentPadding, cornerSize, minSize) diff --git a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTooltipStyling.kt b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTooltipStyling.kt index 199312dfa..a71925f37 100644 --- a/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTooltipStyling.kt +++ b/int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiTooltipStyling.kt @@ -1,89 +1,44 @@ package org.jetbrains.jewel.intui.standalone.styling -import androidx.compose.foundation.layout.PaddingValues -import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable -import androidx.compose.runtime.Stable -import androidx.compose.ui.Alignment import androidx.compose.ui.graphics.Color -import androidx.compose.ui.unit.Dp -import androidx.compose.ui.unit.DpOffset -import androidx.compose.ui.unit.dp -import org.jetbrains.jewel.GenerateDataFunctions +import org.jetbrains.jewel.intui.core.styling.defaults import org.jetbrains.jewel.intui.core.theme.IntUiDarkTheme import org.jetbrains.jewel.intui.core.theme.IntUiLightTheme import org.jetbrains.jewel.styling.TooltipColors import org.jetbrains.jewel.styling.TooltipMetrics import org.jetbrains.jewel.styling.TooltipStyle -import kotlin.time.Duration -import kotlin.time.Duration.Companion.milliseconds -@Stable -@GenerateDataFunctions -class IntUiTooltipStyle( - override val colors: IntUiTooltipColors, - override val metrics: IntUiTooltipMetrics, -) : TooltipStyle { - - companion object { - - @Composable - fun light( - intUiTooltipColors: IntUiTooltipColors = IntUiTooltipColors.light(), - intUiTooltipMetrics: IntUiTooltipMetrics = IntUiTooltipMetrics(), - ): IntUiTooltipStyle = IntUiTooltipStyle( - colors = intUiTooltipColors, - metrics = intUiTooltipMetrics, - ) - - @Composable - fun dark( - intUiTooltipColors: IntUiTooltipColors = IntUiTooltipColors.dark(), - intUiTooltipMetrics: IntUiTooltipMetrics = IntUiTooltipMetrics(), - ): IntUiTooltipStyle = IntUiTooltipStyle( - colors = intUiTooltipColors, - metrics = intUiTooltipMetrics, - ) - } -} - -@Stable -@GenerateDataFunctions -class IntUiTooltipColors( - override val content: Color, - override val background: Color, - override val border: Color, - override val shadow: Color, -) : TooltipColors { - - companion object { - - @Composable - fun light( - contentColor: Color = IntUiLightTheme.colors.grey(12), - backgroundColor: Color = IntUiLightTheme.colors.grey(2), - borderColor: Color = backgroundColor, - shadow: Color = Color(0x78919191), // Not a palette color - ) = IntUiTooltipColors(contentColor, backgroundColor, borderColor, shadow) - - @Composable - fun dark( - contentColor: Color = IntUiDarkTheme.colors.grey(12), - backgroundColor: Color = IntUiDarkTheme.colors.grey(2), - shadow: Color = Color(0x66000000), // Not a palette color - borderColor: Color = IntUiDarkTheme.colors.grey(3), - ) = IntUiTooltipColors(contentColor, backgroundColor, borderColor, shadow) - } -} - -@Stable -@GenerateDataFunctions -class IntUiTooltipMetrics( - override val contentPadding: PaddingValues = PaddingValues(vertical = 9.dp, horizontal = 12.dp), - override val showDelay: Duration = 0.milliseconds, - override val cornerSize: CornerSize = CornerSize(5.dp), - override val borderWidth: Dp = 1.dp, - override val shadowSize: Dp = 12.dp, - override val tooltipOffset: DpOffset = DpOffset(0.dp, 20.dp), - override val tooltipAlignment: Alignment.Horizontal = Alignment.Start, -) : TooltipMetrics +@Composable +fun TooltipStyle.Companion.light( + intUiTooltipColors: TooltipColors = TooltipColors.light(), + intUiTooltipMetrics: TooltipMetrics = TooltipMetrics.defaults(), +): TooltipStyle = TooltipStyle( + colors = intUiTooltipColors, + metrics = intUiTooltipMetrics, +) + +@Composable +fun TooltipStyle.Companion.dark( + intUiTooltipColors: TooltipColors = TooltipColors.dark(), + intUiTooltipMetrics: TooltipMetrics = TooltipMetrics.defaults(), +): TooltipStyle = TooltipStyle( + colors = intUiTooltipColors, + metrics = intUiTooltipMetrics, +) + +@Composable +fun TooltipColors.Companion.light( + backgroundColor: Color = IntUiLightTheme.colors.grey(2), + contentColor: Color = IntUiLightTheme.colors.grey(12), + borderColor: Color = backgroundColor, + shadow: Color = Color(0x78919191), // Not a palette color +) = TooltipColors(backgroundColor, contentColor, borderColor, shadow) + +@Composable +fun TooltipColors.Companion.dark( + backgroundColor: Color = IntUiDarkTheme.colors.grey(2), + contentColor: Color = IntUiDarkTheme.colors.grey(12), + borderColor: Color = IntUiDarkTheme.colors.grey(3), + shadow: Color = Color(0x66000000), // Not a palette color +) = TooltipColors(backgroundColor, contentColor, borderColor, shadow)