Browse Source

TextComposer: Fix preview color.

pull/3758/head
Benoit Marty 2 days ago
parent
commit
f1050b783e
  1. 6
      libraries/textcomposer/impl/src/main/kotlin/io/element/android/libraries/textcomposer/TextComposer.kt

6
libraries/textcomposer/impl/src/main/kotlin/io/element/android/libraries/textcomposer/TextComposer.kt

@ -505,11 +505,13 @@ private fun aTextEditorStateMarkdownList() = persistentListOf(
) )
private fun aTextEditorStateRichList() = persistentListOf( private fun aTextEditorStateRichList() = persistentListOf(
aTextEditorStateRich(), aTextEditorStateRich(initialFocus = true),
aTextEditorStateRich(initialText = "A message"), aTextEditorStateRich(initialText = "A message", initialFocus = true),
aTextEditorStateRich( aTextEditorStateRich(
initialText = "A message\nWith several lines\nTo preview larger textfields and long lines with overflow", initialText = "A message\nWith several lines\nTo preview larger textfields and long lines with overflow",
initialFocus = true
), ),
aTextEditorStateRich(initialText = "A message without focus", initialFocus = false),
) )
@PreviewsDayNight @PreviewsDayNight

Loading…
Cancel
Save