From 18a1d10f7383f4979cdf9ea4bf5943ef47fb8c98 Mon Sep 17 00:00:00 2001 From: fscarponi Date: Thu, 22 Feb 2024 14:52:42 +0100 Subject: [PATCH] Update build dependencies to fix cpu usage from TexField caret animation --- gradle/libs.versions.toml | 2 +- samples/ide-plugin/build.gradle.kts | 2 ++ ui/api/ui.api | 1 - .../kotlin/org/jetbrains/jewel/ui/component/Tooltip.kt | 8 +------- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4ec77a500..d9c8ddb16 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] commonmark = "0.21.0" -composeDesktop = "1.6.0-dev1397" +composeDesktop = "1.6.0-dev1440" detekt = "1.23.4" dokka = "1.8.20" idea = "241.12662.62-EAP-SNAPSHOT" diff --git a/samples/ide-plugin/build.gradle.kts b/samples/ide-plugin/build.gradle.kts index ce2585cc3..6ee74b96a 100644 --- a/samples/ide-plugin/build.gradle.kts +++ b/samples/ide-plugin/build.gradle.kts @@ -17,7 +17,9 @@ repositories { maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") maven("https://www.jetbrains.com/intellij-repository/releases") maven("https://cache-redirector.jetbrains.com/intellij-dependencies") + google() mavenCentral() + } dependencies { diff --git a/ui/api/ui.api b/ui/api/ui.api index 462ae6a42..858533397 100644 --- a/ui/api/ui.api +++ b/ui/api/ui.api @@ -737,7 +737,6 @@ public final class org/jetbrains/jewel/ui/component/TooltipPlacement : androidx/ public static final field $stable I public synthetic fun (JLandroidx/compose/ui/Alignment$Horizontal;Landroidx/compose/ui/unit/Density;FILkotlin/jvm/internal/DefaultConstructorMarker;)V public synthetic fun (JLandroidx/compose/ui/Alignment$Horizontal;Landroidx/compose/ui/unit/Density;FLkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun positionProvider (Landroidx/compose/runtime/Composer;I)Landroidx/compose/ui/window/PopupPositionProvider; public fun positionProvider-9KIMszo (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/ui/window/PopupPositionProvider; } diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Tooltip.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Tooltip.kt index 5fd315955..c7766bb3d 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Tooltip.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Tooltip.kt @@ -89,13 +89,7 @@ public class TooltipPlacement( ) : TooltipPlacement { @Composable - @Suppress("OVERRIDE_DEPRECATION") - override fun positionProvider(): PopupPositionProvider { - error("Not supported") - } - - @Composable - override fun positionProvider(cursorPosition: Offset): PopupPositionProvider = + public override fun positionProvider(cursorPosition: Offset): PopupPositionProvider = rememberTooltipPositionProvider( cursorPosition = cursorPosition, contentOffset = contentOffset,