From 481912092d8298a24b6f4988fcccb0cf35c467a3 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Tue, 3 Aug 2021 21:29:00 +0300 Subject: [PATCH] Move to rc5 --- examples/codeviewer/build.gradle.kts | 2 +- .../kotlin/org/jetbrains/codeviewer/platform/Mouse.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/codeviewer/build.gradle.kts b/examples/codeviewer/build.gradle.kts index 751200e9c6..94ecc6876d 100644 --- a/examples/codeviewer/build.gradle.kts +++ b/examples/codeviewer/build.gradle.kts @@ -8,7 +8,7 @@ buildscript { dependencies { // __LATEST_COMPOSE_RELEASE_VERSION__ - classpath("org.jetbrains.compose:compose-gradle-plugin:1.0.0-alpha1-rc3") + classpath("org.jetbrains.compose:compose-gradle-plugin:1.0.0-alpha1-rc5") classpath("com.android.tools.build:gradle:4.0.1") // __KOTLIN_COMPOSE_VERSION__ classpath(kotlin("gradle-plugin", version = "1.5.21")) diff --git a/examples/codeviewer/common/src/desktopMain/kotlin/org/jetbrains/codeviewer/platform/Mouse.kt b/examples/codeviewer/common/src/desktopMain/kotlin/org/jetbrains/codeviewer/platform/Mouse.kt index 793c816723..fbd688bcae 100644 --- a/examples/codeviewer/common/src/desktopMain/kotlin/org/jetbrains/codeviewer/platform/Mouse.kt +++ b/examples/codeviewer/common/src/desktopMain/kotlin/org/jetbrains/codeviewer/platform/Mouse.kt @@ -8,7 +8,7 @@ import androidx.compose.ui.ExperimentalComposeUiApi import androidx.compose.ui.Modifier import androidx.compose.ui.composed import androidx.compose.ui.geometry.Offset -import androidx.compose.ui.input.pointer.awtCursor +import androidx.compose.ui.input.pointer.PointerIcon import androidx.compose.ui.input.pointer.pointerIcon import androidx.compose.ui.input.pointer.pointerMoveFilter import java.awt.Cursor @@ -27,7 +27,7 @@ actual fun Modifier.cursorForHorizontalResize(): Modifier = composed { onEnter = { isHover = true; true }, onExit = { isHover = false; true } ).pointerIcon( - awtCursor( + PointerIcon( if (isHover) { Cursor(Cursor.E_RESIZE_CURSOR) } else { @@ -35,4 +35,4 @@ actual fun Modifier.cursorForHorizontalResize(): Modifier = composed { } ) ) -} \ No newline at end of file +}