Commit Graph

17 Commits (master)

Author SHA1 Message Date
Amjad Alsharafi c35a1dd79f
feat(widgets/canvas): added type Block in canvas markers (#350)
This allows for clearer colors than using Dot, especially when
decreasing the size of the terminal font in order to increase the
resolution of the canvas
4 years ago
Florian Dehau bc2a512101 feat: add missing `Clone` and `Copy` on types 4 years ago
Florian Dehau 584e1b0500 refactor(widgets/canvas): allow canvas to render with a simple dot character instead of braille patterns
This change allows developers to gracefully degrade the output if the targeted
terminal does not support the full range of unicode symbols.
4 years ago
Florian Dehau cee65ed283 feat: allow BarChart and Sparkline to use a more portable set of symbols
Add `BarChart::bar_set` and `Sparkline::bar_set` methods to customize
the set of symbols used to display the data. The new set should give
a better looking output on terminal that do not support a wide range
of unicode symbols.
4 years ago
Loïc Girault d987225ac8 Add thick lines and line::Set struct
Add a new style of line and use a struct to avoid duplication of
matching
4 years ago
Florian Dehau 9085c81e76 refactor: clean up border type for blocks
* Merge line symbols in a single module.
* Replace set_border_type with border_type to match other builder methods.
* Remove unecessary branching.
4 years ago
Matthew Stevenson a72389b28c revert to single Block struct; add set_border_type method and BorderType enum 4 years ago
Matthew Stevenson 578560766d add round corners and double lines to symbols 4 years ago
Kyle Ruzic b8d0f947e8 Added a verticle 'cross' to the symbols as it was missing for no real reason 5 years ago
Joseph Knight 8649ce4c78 fixed typo in symbols.rs 5 years ago
Florian Dehau ba80889333 [clippy] Fix warnings 7 years ago
Florian Dehau 20465f2159 Change dot symbol for line chart 8 years ago
Florian Dehau 7a427c06d4 Update chart widget and fix colors in all widgets 8 years ago
Florian Dehau fde0ba95dd Remove cache system and add unicode segmentation 8 years ago
Florian Dehau bd404f0238 Cleanup code and add chart widget 8 years ago
Florian Dehau d11dedd864 Add sparkline widget and fix warnings 8 years ago
Florian Dehau 5b5d37ee69 Add gauge, fix rendering and cleanup code 8 years ago