Skip to content

Commit 50734db

Browse files
committed
修复深色模式下看不清光标的问题
1 parent 36e9bee commit 50734db

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

app/src/main/java/com/xjyzs/aiapi/MainActivity.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ import androidx.compose.ui.focus.FocusRequester
8787
import androidx.compose.ui.focus.focusRequester
8888
import androidx.compose.ui.graphics.Color
8989
import androidx.compose.ui.graphics.RectangleShape
90+
import androidx.compose.ui.graphics.SolidColor
9091
import androidx.compose.ui.graphics.vector.ImageVector
9192
import androidx.compose.ui.layout.onSizeChanged
9293
import androidx.compose.ui.platform.LocalContext
@@ -529,6 +530,7 @@ fun MessageInputBar(
529530
textStyle = LocalTextStyle.current.copy(
530531
color = MaterialTheme.colorScheme.onSurface
531532
),
533+
cursorBrush = SolidColor(MaterialTheme.colorScheme.primary),
532534
maxLines = 7,
533535
decorationBox = { innerTextField ->
534536
Box(
@@ -538,7 +540,7 @@ fun MessageInputBar(
538540
color = MaterialTheme.colorScheme.outline,
539541
shape = RoundedCornerShape(18.dp)
540542
)
541-
.padding(vertical = 5.dp, horizontal = 8.dp)
543+
.padding(vertical = 5.dp, horizontal = 10.dp)
542544
) {
543545
if (msg.isEmpty()) {
544546
Text(

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
agp = "8.9.3"
2+
agp = "8.10.1"
33
gson = "2.13.1"
44
kotlin = "2.1.20"
55
coreKtx = "1.16.0"

0 commit comments

Comments
 (0)