From 5a83875dadfcc18c4a70c1cdf336e3f93db4839f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E6=96=97=E5=AD=90?= <53157536+ZIDOUZI@users.noreply.github.com> Date: Tue, 1 Mar 2022 18:03:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dcompose=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E5=A4=A7=E9=87=8F=E7=AD=89=E5=8F=B7?= =?UTF-8?q?=E5=92=8CcomposeOption=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/zdz/groovyconvertkts/ui/main/MainScreen.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/zdz/groovyconvertkts/ui/main/MainScreen.kt b/src/main/kotlin/zdz/groovyconvertkts/ui/main/MainScreen.kt index 3912b4e..5dc813e 100644 --- a/src/main/kotlin/zdz/groovyconvertkts/ui/main/MainScreen.kt +++ b/src/main/kotlin/zdz/groovyconvertkts/ui/main/MainScreen.kt @@ -16,6 +16,7 @@ import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import androidx.compose.ui.window.Notification +import androidx.compose.ui.window.rememberNotification import zdz.groovyconvertkts.ChooseMode import zdz.groovyconvertkts.ExtendFileDialog import zdz.groovyconvertkts.Title @@ -72,7 +73,7 @@ fun MainScreen(ws: MainWindowState) { } TextField(value = value, onValueChange = { value = it }) - Text(text = "tip1: 选择文件夹时请选择src目录哦", color = Color.Gray, fontSize = 12.sp) + Text(text = "tip1: 选择文件夹时请选择root目录哦", color = Color.Gray, fontSize = 12.sp) Text(text = "tip2: 转换输入后会直接输出到剪贴板", color = Color.Gray, fontSize = 12.sp) } @@ -100,7 +101,7 @@ fun MainScreen(ws: MainWindowState) { ws.path = it.path.substring(0..it.path.lastIndexOf("\\")) print(ws.path) } - Notification("Groovy转换kts", "转换成功") + rememberNotification("Groovy转换kts", "转换成功") }, negativeResult = { ws.path = it.path }, )