From 0a085ce23913953b2f8baf5a0934cab622650ff8 Mon Sep 17 00:00:00 2001 From: Sebastiano Poggi Date: Tue, 31 Oct 2023 17:32:46 +0100 Subject: [PATCH] Fix all Explicit API errors --- .idea/codeStyles/Project.xml | 1 + build.gradle.kts | 7 +- buildSrc/build.gradle.kts | 9 +- buildSrc/settings.gradle.kts | 6 +- buildSrc/src/main/kotlin/IdeaConfiguration.kt | 49 +- buildSrc/src/main/kotlin/LocalProperties.kt | 18 +- buildSrc/src/main/kotlin/MergeSarifTask.kt | 68 +- .../src/main/kotlin/PublishConfiguration.kt | 4 +- .../src/main/kotlin/ValidatePublicApiTask.kt | 151 ++-- ...droid-studio-releases-generator.gradle.kts | 21 +- .../intellij-theme-generator.gradle.kts | 32 +- .../kotlin/jewel-check-public-api.gradle.kts | 19 +- .../main/kotlin/jewel-ij-publish.gradle.kts | 23 +- .../src/main/kotlin/jewel-linting.gradle.kts | 8 +- .../src/main/kotlin/jewel-publish.gradle.kts | 10 +- buildSrc/src/main/kotlin/jewel.gradle.kts | 49 +- .../demodata/AndroidStudioReleases.kt | 79 +- .../demodata/AndroidStudioReleasesReader.kt | 267 +++--- .../demodata/ApiAndroidStudioReleases.kt | 60 +- .../buildlogic/ideversion/ApiIdeaReleases.kt | 16 +- .../ideversion/CheckIdeaVersionTask.kt | 259 +++--- .../theme/IntUiThemeDescriptorReader.kt | 255 +++--- .../theme/IntelliJThemeGeneratorPlugin.kt | 91 +- .../jetbrains/jewel/window/DecoratedWindow.kt | 219 ++--- .../org/jetbrains/jewel/window/Theme.kt | 10 +- .../jetbrains/jewel/window/TitleBar.Linux.kt | 54 +- .../jetbrains/jewel/window/TitleBar.MacOS.kt | 18 +- .../jewel/window/TitleBar.Windows.kt | 35 +- .../org/jetbrains/jewel/window/TitleBar.kt | 76 +- .../window/styling/DecoratedWindowStyling.kt | 42 +- .../jewel/window/styling/TitleBarStyling.kt | 97 +-- .../jewel/window/utils/DesktopPlatform.kt | 7 +- .../jetbrains/jewel/window/utils/JnaLoader.kt | 10 +- .../jewel/window/utils/UnsafeAccessing.kt | 39 +- .../jewel/window/utils/macos/Foundation.kt | 30 +- .../window/utils/macos/FoundationLibrary.kt | 98 ++- .../jetbrains/jewel/window/utils/macos/ID.kt | 13 +- .../jewel/window/utils/macos/MacUtil.kt | 18 +- foundation/build.gradle.kts | 3 +- .../jewel/foundation/Compatibility.kt | 15 +- .../jewel/foundation/ExperimentalJewelApi.kt | 6 +- .../jewel/foundation/GenerateDataFunctions.kt | 6 +- .../jewel/foundation/GlobalColors.kt | 42 +- .../jewel/foundation/GlobalMetrics.kt | 14 +- .../jewel/foundation/InternalJewelApi.kt | 2 +- .../jewel/foundation/RoundRectUtil.kt | 24 +- .../org/jetbrains/jewel/foundation/Stroke.kt | 48 +- .../jewel/foundation/lazy/Keybindings.kt | 8 +- .../lazy/SelectableColumnOnKeyEvent.kt | 171 ++-- .../foundation/lazy/SelectableLazyColumn.kt | 202 +++-- .../lazy/SelectableLazyListScope.kt | 57 +- .../lazy/SelectableLazyListState.kt | 404 +++++---- .../foundation/lazy/tree/BasicLazyTree.kt | 107 +-- .../jewel/foundation/lazy/tree/BuildTree.kt | 155 ++-- .../lazy/tree/DefaultTreeViewKeybindings.kt | 26 +- .../lazy/tree/DefaultTreeViewOnKeyEvent.kt | 35 +- .../jewel/foundation/lazy/tree/KeyActions.kt | 70 +- .../jewel/foundation/lazy/tree/Tree.kt | 72 +- .../jewel/foundation/lazy/tree/TreeState.kt | 10 +- .../lazy/tree/TreeViewOnKeyEvent.kt | 14 +- .../jewel/foundation/modifier/Border.kt | 352 ++++---- .../foundation/modifier/OnHoverModifier.kt | 2 +- .../foundation/state/CommonStateBitMask.kt | 18 +- .../state/FocusableComponentState.kt | 8 +- .../state/InteractiveComponentState.kt | 16 +- .../state/SelectableComponentState.kt | 5 +- .../state/ToggleableComponentState.kt | 10 +- .../jewel/foundation/theme/JewelTheme.kt | 65 +- .../foundation/theme/ThemeColorPalette.kt | 82 +- .../jewel/foundation/theme/ThemeDefinition.kt | 16 +- .../jewel/foundation/theme/ThemeDescriptor.kt | 10 +- .../jewel/foundation/theme/ThemeIconData.kt | 35 +- .../jewel/foundation/utils/Logger.kt | 15 +- ide-laf-bridge/api/ide-laf-bridge.api | 4 - ide-laf-bridge/build.gradle.kts | 4 +- .../jetbrains/jewel/bridge/BridgeIconData.kt | 7 +- .../jetbrains/jewel/bridge/BridgeOverride.kt | 18 +- .../bridge/BridgePainterHintsProvider.kt | 39 +- .../jewel/bridge/UiThemeExtensions.kt | 14 +- .../jetbrains/jewel/bridge/BridgeIconData.kt | 2 +- .../jetbrains/jewel/bridge/BridgeOverride.kt | 8 +- .../bridge/BridgePainterHintsProvider.kt | 38 +- .../org/jetbrains/jewel/bridge/Bridge.kt | 9 +- .../jewel/bridge/BridgeResourceResolver.kt | 12 +- .../org/jetbrains/jewel/bridge/BridgeUtils.kt | 105 ++- .../jewel/bridge/JewelBridgeException.kt | 19 +- .../jewel/bridge/SwingBridgeService.kt | 9 +- .../org/jetbrains/jewel/bridge/SwingLafKey.kt | 12 - .../jewel/bridge/ToolWindowExtensions.kt | 2 +- .../actionSystem/DataProviderElement.kt | 3 +- .../bridge/actionSystem/DataProviderNode.kt | 18 +- .../jewel/bridge/actionSystem/ProvideData.kt | 31 +- .../jewel/bridge/theme/BridgeGlobalColors.kt | 6 +- .../jewel/bridge/theme/BridgeGlobalMetrics.kt | 2 +- .../bridge/theme/BridgeThemeColorPalette.kt | 25 +- .../jewel/bridge/theme/IntUiBridge.kt | 775 ++++++++++-------- .../jewel/bridge/theme/SwingBridgeTheme.kt | 2 +- .../bridge/actionSystem/ProvideDataTest.kt | 18 +- .../IntUiDecoratedWindowResourceResolver.kt | 11 +- .../jewel/intui/window/IntUiTheme.kt | 37 +- .../styling/IntUiDecoratedWindowStyling.kt | 20 +- .../window/styling/IntUiTitleBarStyling.kt | 150 ++-- int-ui/int-ui-standalone/build.gradle.kts | 4 +- .../jewel/intui/standalone/InterFont.kt | 25 +- .../jewel/intui/standalone/PainterProvider.kt | 6 +- .../StandalonePainterHintsProvider.kt | 127 +-- .../standalone/styling/IntUiButtonStyling.kt | 188 ++--- .../styling/IntUiCheckboxStyling.kt | 47 +- .../standalone/styling/IntUiChipStyling.kt | 146 ++-- .../styling/IntUiCircularProgressStyling.kt | 13 +- .../standalone/styling/IntUiDividerStyle.kt | 8 +- .../styling/IntUiDropdownStyling.kt | 244 +++--- .../styling/IntUiGroupHeaderStyling.kt | 20 +- .../IntUiHorizontalProgressBarStyling.kt | 49 +- .../styling/IntUiIconButtonStyling.kt | 20 +- .../styling/IntUiLabelledTextFieldStyling.kt | 0 .../styling/IntUiLazyTreeStyling.kt | 84 +- .../standalone/styling/IntUiLinkStyling.kt | 64 +- .../standalone/styling/IntUiMenuStyling.kt | 154 ++-- .../styling/IntUiRadioButtonStyling.kt | 64 +- .../styling/IntUiScrollbarStyling.kt | 26 +- .../standalone/styling/IntUiTabStyling.kt | 253 +++--- .../styling/IntUiTextAreaStyling.kt | 110 +-- .../styling/IntUiTextFieldStyling.kt | 110 +-- .../standalone/styling/IntUiTooltipStyling.kt | 30 +- .../standalone/theme/IntUiGlobalColors.kt | 46 +- .../standalone/theme/IntUiGlobalMetrics.kt | 4 +- .../intui/standalone/theme/IntUiTheme.kt | 147 ++-- samples/ide-plugin/build.gradle.kts | 21 +- .../src/main/kotlin/icons/JewelIcons.kt | 6 +- .../samples/ideplugin/ComponentShowcaseTab.kt | 55 +- .../ideplugin/JewelDemoToolWindowFactory.kt | 8 +- .../releasessample/ChannelIndication.kt | 14 +- .../ideplugin/releasessample/ContentItem.kt | 31 +- .../ideplugin/releasessample/ContentSource.kt | 565 ++++++------- .../ideplugin/releasessample/DetailsPanel.kt | 38 +- .../ideplugin/releasessample/FoilModifier.kt | 37 +- .../releasessample/ImageComponent.kt | 67 +- .../releasessample/ReleaseChannel.kt | 30 +- .../releasessample/ReleasesSampleCompose.kt | 137 ++-- .../releasessample/ReleasesSamplePanel.kt | 124 +-- .../releasessample/ReleasesSampleService.kt | 12 +- .../releasessample/UiInspectorUtil.kt | 2 +- samples/standalone/build.gradle.kts | 4 +- .../jewel/samples/standalone/IntUiThemes.kt | 21 +- .../jewel/samples/standalone/Main.kt | 10 +- .../standalone/StandaloneSampleIcons.kt | 2 +- .../samples/standalone/components/Icons.kt | 0 .../standalone/view/component/Borders.kt | 24 +- .../standalone/view/component/Buttons.kt | 18 +- .../standalone/view/component/Checkboxes.kt | 61 +- .../standalone/view/component/ChipsAndTree.kt | 29 +- .../standalone/view/component/Dropdowns.kt | 59 +- .../standalone/view/component/Links.kt | 11 +- .../standalone/view/component/ProgressBar.kt | 30 +- .../standalone/view/component/RadioButtons.kt | 2 +- .../samples/standalone/view/component/Tabs.kt | 28 +- .../standalone/view/component/TextAreas.kt | 25 +- .../standalone/view/component/TextFields.kt | 16 +- .../standalone/view/component/Tooltips.kt | 2 +- .../main/resources/fonts/Roboto/LICENSE.txt | 2 +- ui/api/ui.api | 2 +- ui/build.gradle.kts | 3 +- .../jetbrains/jewel/ui/ComponentStyling.kt | 14 +- .../jetbrains/jewel/ui/DisabledColorFilter.kt | 40 +- .../org/jetbrains/jewel/ui/NoIndication.kt | 2 +- .../org/jetbrains/jewel/ui/Orientation.kt | 14 +- .../kotlin/org/jetbrains/jewel/ui/Outline.kt | 25 +- .../jetbrains/jewel/ui/component/Button.kt | 66 +- .../jetbrains/jewel/ui/component/Checkbox.kt | 133 +-- .../org/jetbrains/jewel/ui/component/Chip.kt | 98 +-- .../ui/component/CircularProgressIndicator.kt | 53 +- .../jewel/ui/component/ContextMenu.kt | 34 +- .../jetbrains/jewel/ui/component/Divider.kt | 27 +- .../jetbrains/jewel/ui/component/Dropdown.kt | 116 +-- .../jewel/ui/component/GroupHeader.kt | 2 +- .../org/jetbrains/jewel/ui/component/Icon.kt | 107 ++- .../jewel/ui/component/IconButton.kt | 28 +- .../jewel/ui/component/InputField.kt | 85 +- .../jewel/ui/component/LabelledTextField.kt | 0 .../jetbrains/jewel/ui/component/LazyTree.kt | 27 +- .../jewel/ui/component/LinearProgressBar.kt | 92 ++- .../org/jetbrains/jewel/ui/component/Link.kt | 99 +-- .../org/jetbrains/jewel/ui/component/Menu.kt | 211 ++--- .../jewel/ui/component/MenuManager.kt | 25 +- .../org/jetbrains/jewel/ui/component/Popup.kt | 98 ++- .../jewel/ui/component/RadioButton.kt | 110 +-- .../jewel/ui/component/Scrollbars.kt | 65 +- .../jewel/ui/component/SplitLayout.kt | 222 ++--- .../jetbrains/jewel/ui/component/TabStrip.kt | 91 +- .../org/jetbrains/jewel/ui/component/Tabs.kt | 90 +- .../org/jetbrains/jewel/ui/component/Text.kt | 47 +- .../jetbrains/jewel/ui/component/TextArea.kt | 73 +- .../jetbrains/jewel/ui/component/TextField.kt | 94 ++- .../jetbrains/jewel/ui/component/Tooltip.kt | 112 +-- .../ui/component/styling/ButtonStyling.kt | 129 +-- .../ui/component/styling/CheckboxStyling.kt | 60 +- .../jewel/ui/component/styling/ChipStyling.kt | 208 ++--- .../styling/CircularProgressStyle.kt | 14 +- .../ui/component/styling/DividerStyling.kt | 26 +- .../ui/component/styling/DropdownStyling.kt | 172 ++-- .../component/styling/GroupHeaderStyling.kt | 26 +- .../styling/HorizontalProgressBarStyling.kt | 40 +- .../ui/component/styling/IconButtonStyling.kt | 74 +- .../ui/component/styling/InputFieldStyling.kt | 145 ++-- .../styling/LabelledTextFieldStyling.kt | 0 .../ui/component/styling/LazyTreeStyling.kt | 82 +- .../jewel/ui/component/styling/LinkStyling.kt | 115 +-- .../jewel/ui/component/styling/MenuStyling.kt | 172 ++-- .../component/styling/RadioButtonStyling.kt | 66 +- .../ui/component/styling/ScrollbarStyling.kt | 36 +- .../jewel/ui/component/styling/TabStyling.kt | 232 +++--- .../ui/component/styling/TextAreaStyling.kt | 20 +- .../ui/component/styling/TextFieldStyling.kt | 20 +- .../ui/component/styling/TooltipStyling.kt | 65 +- .../jewel/ui/painter/BadgePainter.kt | 17 +- .../ui/painter/BasePainterHintsProvider.kt | 30 +- .../jewel/ui/painter/DelegatePainter.kt | 6 +- .../jetbrains/jewel/ui/painter/PainterHint.kt | 98 +-- .../jewel/ui/painter/PainterHintsProvider.kt | 32 +- .../jewel/ui/painter/PainterProvider.kt | 25 +- .../ui/painter/ResourcePainterProvider.kt | 82 +- .../jewel/ui/painter/badge/BadgeShape.kt | 8 +- .../jewel/ui/painter/badge/DotBadgeShape.kt | 41 +- .../jetbrains/jewel/ui/painter/hints/Badge.kt | 14 +- .../jetbrains/jewel/ui/painter/hints/Dark.kt | 0 .../jetbrains/jewel/ui/painter/hints/HiDpi.kt | 2 +- .../jewel/ui/painter/hints/Override.kt | 11 +- .../jewel/ui/painter/hints/Palette.kt | 60 +- .../jewel/ui/painter/hints/Selected.kt | 13 +- .../jewel/ui/painter/hints/Stateful.kt | 2 +- .../jewel/ui/painter/hints/Stroke.kt | 0 .../jetbrains/jewel/ui/theme/JewelTheme.kt | 111 +-- .../jewel/ui/util/ColorExtensions.kt | 17 +- .../org/jetbrains/jewel/ui/util/Debug.kt | 6 +- .../jewel/ui/util/ModifierExtensions.kt | 12 +- .../ui/util/SpinnerProgressIconGenerator.kt | 87 +- .../org/jetbrains/jewel/BasicJewelUiTest.kt | 3 +- .../org/jetbrains/jewel/PainterHintTest.kt | 71 +- 239 files changed, 7251 insertions(+), 6777 deletions(-) delete mode 100644 ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/SwingLafKey.kt create mode 100644 int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiLabelledTextFieldStyling.kt create mode 100644 samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/components/Icons.kt create mode 100644 ui/src/main/kotlin/org/jetbrains/jewel/ui/component/LabelledTextField.kt create mode 100644 ui/src/main/kotlin/org/jetbrains/jewel/ui/component/styling/LabelledTextFieldStyling.kt create mode 100644 ui/src/main/kotlin/org/jetbrains/jewel/ui/painter/hints/Dark.kt create mode 100644 ui/src/main/kotlin/org/jetbrains/jewel/ui/painter/hints/Stroke.kt diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 5383e2d02f..23d15b1d51 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -17,6 +17,7 @@