`BasicTextField`'s `cursorBrush` parameter default...
# compose-desktop
d
`BasicTextField`'s
cursorBrush
parameter defaults to
SolidColor(Color.Black)
I think it should default to some MaterialTheme value ... otherwise it is very hard to spot in darkModes 🙂 (btw is this chat the right place to report such things??)
✅ 1
o
Use Google’s issue tracker, problem looks generic
d
Do ya have a pointer for me, please? ... so that I create it for the right Project (probably not compose-desktop!?)
d
Component 742043: Material ?? (too many to choose from 🙂
probably more: "Component 612128: Jetpack Compose" ?
done: https://issuetracker.google.com/issues/189233793 (hope it's at the right place)
a
BasicTextField
is in foundation so it shouldn't depend on material.
âž• 1
If you want a material themed text field use
TextField
.
âž• 1
d
I know, but I need BasicTextField's
onTextLayout: (TextLayoutResult) -> Unit = {},
a
I'm saying that there's no theming in foundation and this is expected. It's used to build your own design.
c
Yes @Albert Chang is correct -
BasicTextField
is in foundation, so it intentionally doesn’t depend on Material and MaterialTheme
You are free to add that theming dependency though in your project. For example, I create my own TextInput Composable that I reuse throughout my app: https://github.com/c5inco/Compose-Modifiers-Playground/blob/main/src/main/kotlin/com/c5inco/modifiers/ui/controls/Inputs.kt#L491