Open pspmoe opened 1 month ago
Thank you for the report, this is because Storytale currently uses a separate Theme for the Gallery App, but does not apply the MaterialTheme
to the story component
Thank you for the report, this is because Storytale currently uses a separate Theme for the Gallery App, but does not apply the
MaterialTheme
to the story component
Explicitly specifying the colors doesn't work either, is this for the same reason?
fun main() = application {
Window(
onCloseRequest = ::exitApplication,
title = "Example"
) {
TextField(
value = "ABCDEFG",
onValueChange = {},
colors = TextFieldDefaults.colors(
focusedTextColor = Color.Red,
unfocusedTextColor = Color.Red
)
)
}
}
Display:
val `TextField Story` by story {
TextField(
value = "ABCDEFG",
onValueChange = {},
colors = TextFieldDefaults.colors(
focusedTextColor = Color.Red,
unfocusedTextColor = Color.Red
)
)
}
Display:
The same Compose widget displays differently in
Compose Desktop
andStorytale
:Display:
Display:
The
SupportingText
colors of the two are different. The expected color is red, but the actual color is black.Also, specifying
TextFieldDefaults.colors()
in theTextField
has no effect either, all colors remain as they are.