Commit Graph

25 Commits (3fd9e23851a0077e2ab571c0f72f5be7ed67d960)

Author SHA1 Message Date
Karoline Pauls 10642d0e04 Paragraph: word wrapping 6 years ago
Karoline Pauls 1802cf8dbc Improve wrapping of double-width characters 6 years ago
Karoline Pauls 03bfcde147 [widgets][paragraph]: Truncate long lines when wrap is false 6 years ago
Antoine Büsch e42ab1fed8 Move Text to widgets/mod.rs 6 years ago
Antoine Büsch 0544c023f5 Rename Text::{Data -> Raw, StyledData -> Styled} 6 years ago
Antoine Büsch ff47f9480b Introduce builder methods for Text to make it more ergonomic 6 years ago
Antoine Büsch 70561b7c54 Fix examples and doctests 6 years ago
Antoine Büsch 559c9c75f3 Make Text accept both borrowed and owned strings 6 years ago
Florian Dehau 13e194cd26 refactor: update widgets
* all widgets use the consumable builder pattern
* `draw` on terminal expect a closure that take a frame as only arg
6 years ago
Florian Dehau d6016788ef refactor: clippy + rustfmt 6 years ago
Florian Dehau ad602a54bf refactor(widgets): replace text rendering in Paragraph
* remove custom markup language
* add Text container for both raw and styled strings
6 years ago
Robin Nehls 3f8a9079ee [widgets] implement text alignment for paragraph widget 6 years ago
Florian Dehau 36a5eb2110 Format code 6 years ago
Xavier Bestel f4052e0e71 fix colors use, add missing Blue 6 years ago
Florian Dehau 36dea8373f [widgets][paragraph] Fix text wrapping 6 years ago
Florian Dehau 151d7e8a1c [src] Update dependencies
* Update all dependencies to their latest versions
* Change border to Borders to match v1.0 of bitflags
7 years ago
Florian Dehau 1f285fbac0 [src] Run cargo fmt 7 years ago
Florian Dehau 71545a0aa8 Run cargo fmt 7 years ago
Florian Dehau b1737ce667 Update Widget Trait
The draw function now take a &mut reference to the widget, allowing the
widget to modify itself when drawn. This change the semantic of the draw
call since the widget should now be considered "consumed" after it.
7 years ago
Florian Dehau b2bb24b9d2 Fix rustfmt and clippy errors 7 years ago
Sebastian Woetzel 81cedbd6f2
fixes scroll handling for paragraph widget 7 years ago
Florian Dehau 116ee4439a Improve Paragraph widget
* Add the possibility to disable the markup rendering
* Fix parser error
8 years ago
Florian Dehau 5efc52e03d Fix parser in paragraph 8 years ago
Florian Dehau 662e2dd102 Fix examples 8 years ago
Florian Dehau 224eb2d8e0 Add support for text styling 8 years ago