Browse Source

Move to rc5

pull/994/head
Nikolay Igotti 3 years ago
parent
commit
481912092d
  1. 2
      examples/codeviewer/build.gradle.kts
  2. 6
      examples/codeviewer/common/src/desktopMain/kotlin/org/jetbrains/codeviewer/platform/Mouse.kt

2
examples/codeviewer/build.gradle.kts

@ -8,7 +8,7 @@ buildscript {
dependencies { dependencies {
// __LATEST_COMPOSE_RELEASE_VERSION__ // __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") classpath("com.android.tools.build:gradle:4.0.1")
// __KOTLIN_COMPOSE_VERSION__ // __KOTLIN_COMPOSE_VERSION__
classpath(kotlin("gradle-plugin", version = "1.5.21")) classpath(kotlin("gradle-plugin", version = "1.5.21"))

6
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.Modifier
import androidx.compose.ui.composed import androidx.compose.ui.composed
import androidx.compose.ui.geometry.Offset 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.pointerIcon
import androidx.compose.ui.input.pointer.pointerMoveFilter import androidx.compose.ui.input.pointer.pointerMoveFilter
import java.awt.Cursor import java.awt.Cursor
@ -27,7 +27,7 @@ actual fun Modifier.cursorForHorizontalResize(): Modifier = composed {
onEnter = { isHover = true; true }, onEnter = { isHover = true; true },
onExit = { isHover = false; true } onExit = { isHover = false; true }
).pointerIcon( ).pointerIcon(
awtCursor( PointerIcon(
if (isHover) { if (isHover) {
Cursor(Cursor.E_RESIZE_CURSOR) Cursor(Cursor.E_RESIZE_CURSOR)
} else { } else {
@ -35,4 +35,4 @@ actual fun Modifier.cursorForHorizontalResize(): Modifier = composed {
} }
) )
) )
} }

Loading…
Cancel
Save