Simplify theming for TextEditor widget

This commit is contained in:
Héctor Ramón Jiménez 2024-03-06 15:20:10 +01:00
parent 69bc1df252
commit 68c8f23f02
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 105 additions and 185 deletions

View file

@ -224,7 +224,7 @@ pub fn text_editor<Message, Theme, Renderer>(
) -> TextEditor<'_, core::text::highlighter::PlainText, Message, Theme, Renderer>
where
Message: Clone,
Theme: text_editor::StyleSheet,
Theme: text_editor::Style,
Renderer: core::text::Renderer,
{
TextEditor::new(content)