File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ import kotlinx.coroutines.delay
5555import top.yukonga.miuix.kmp.icon.MiuixIcons
5656import top.yukonga.miuix.kmp.icon.basic.Search
5757import top.yukonga.miuix.kmp.icon.basic.SearchCleanup
58+ import top.yukonga.miuix.kmp.theme.LocalContentColor
5859import top.yukonga.miuix.kmp.theme.MiuixTheme
5960
6061/* *
@@ -198,7 +199,9 @@ fun InputField(
198199 val focusRequester = remember { FocusRequester () }
199200 val focusManager = LocalFocusManager .current
200201
201- val inputTextStyle = MiuixTheme .textStyles.main.copy(fontWeight = FontWeight .Bold )
202+ val textColor = LocalContentColor .current
203+ val inputTextStyle = MiuixTheme .textStyles.main.copy(fontWeight = FontWeight .Bold , color = textColor)
204+
202205 val cursorBrush = SolidColor (MiuixTheme .colorScheme.primary)
203206 val labelText by remember(query, expanded, label) {
204207 derivedStateOf { if (! (query.isNotEmpty() || expanded)) label else " " }
You can’t perform that action at this time.
0 commit comments