Jeffas
94877f4e7e
Use constraints for table column widths
...
This allows table column widths to be adapted more and scale with the
UI.
The constraints are solved using the Cassowary solver. An added
constraint for fitting them all in the width is added.
2019-10-31 09:18:24 +01:00
Joe Ardent
85f74dd802
Fix typo in table example.
2019-07-16 06:16:14 +02:00
David Flemström
b7664a4108
Support several modifiers and indexed colors at once
2019-03-10 15:56:56 +01:00
Sven-Hendrik Haase
144bfb71cf
Upgrade to 2018 edition
2019-01-13 14:35:51 +00:00
Karoline Pauls
228816f5f8
Frame: provide consistent size for rendering
2018-12-07 21:32:00 +01:00
Karoline Pauls
8522e028f1
Run cargo fmt
with the new Rust stable toolchain (1.31.0)
2018-12-07 19:54:13 +01:00
Karoline Pauls
8cdfc883b9
Feature: Autoresize
...
It basically never makes sense to render without syncing the size.
Without resizing, if shrinking, we get artefacts. If growing, we may get
panics (before this change the Rustbox sample (the only one which didn't
handle resizing on its own) panicked because the widget would get an
updated size, while the terminal would not).
2018-12-04 08:39:32 +01:00
Florian Dehau
7b4d35d224
feat: restore the cursor state on terminal drop
2018-09-24 08:03:52 +02:00
Florian Dehau
08ab92da80
refactor: clean examples
...
* Introduce a common event handler in order to focus on the drawing part
* Remove deprecated custom termion backends
2018-09-23 20:59:51 +02:00
Florian Dehau
6c69160d6b
feat: remove unecessary borrows of Style
2018-09-07 22:24:52 +02:00
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
2018-09-04 22:23:44 +02:00
Florian Dehau
d6016788ef
refactor: clippy + rustfmt
2018-09-04 22:23:44 +02:00
Florian Dehau
7181970a32
feat: split layout from rendering
...
* remove layout logic from Terminal
* replace Group with Layout
* add Frame intermediate object
2018-09-04 22:23:44 +02:00
Florian Dehau
df7493fd33
style: Run rustfmt
2018-06-09 11:26:59 +02:00
Florian Dehau
36146d970a
[style] rustfmt
2018-05-25 07:57:00 +02:00
Florian Dehau
36a5eb2110
Format code
2018-05-06 15:54:47 +02:00
Florian Dehau
24dc73912b
[examples] Update table example
...
Modify example to use variables outside of the closure scope
2018-05-06 11:49:32 +02:00
Florian Dehau
c3c5109c5a
[src] Fix build and tests
2017-12-26 21:45:46 +01:00
Florian Dehau
151d7e8a1c
[src] Update dependencies
...
* Update all dependencies to their latest versions
* Change border to Borders to match v1.0 of bitflags
2017-12-26 21:45:46 +01:00
Florian Dehau
af16518650
[src] Run rustfmt
2017-12-26 21:45:46 +01:00
Florian Dehau
f24517bc5a
[examples] Run cargo fmt
2017-10-30 23:14:57 +01:00
Florian Dehau
af6d589459
[examples] Fix Table example
2017-09-11 07:43:19 +02:00
Florian Dehau
bb61028e0c
Fix examples
2017-09-07 08:32:08 +02:00
Florian Dehau
b2bb24b9d2
Fix rustfmt and clippy errors
2017-05-21 12:49:12 +02:00
Sebastian Woetzel
7652cc440d
fixes panic when terminal was resized
2017-05-08 21:34:41 +02:00
Florian Dehau
feefa5d54f
Convert backends to conditionnal features for compilation
2016-11-28 09:52:51 +01:00
Florian Dehau
f025cb0221
Update README and examples
2016-11-08 10:19:28 +01:00