Commit Graph

18 Commits

Author SHA1 Message Date
Rodrigo Girão Serrão
4148b1d450 Implement a Progress Bar widget. (#2333)
* First prototype of PB.

* Repurpose UnderlineBar.

* Factor out 'Bar' widget.

* Revert "Factor out 'Bar' widget."

This reverts commit 0bb4871adf.

* Add Bar widget.

* Cap progress at 100%.

* Add skeleton for the ETA label.

[skip ci]

* Add ETA display.

* Improve docstrings.

* Directly compute percentage.

* Watch percentage changes directly.

[skip ci]

* Documentation.

* Make reactive percentage private.

Instead, we create a public read-only percentage property.

* Update griffe to fix documentation issue.

Related issues: #1572, https://github.com/mkdocstrings/griffe/issues/128.
Related PRs: https://github.com/mkdocstrings/griffe/pull/135.

* Add example and docs.

* Address review feedback.

[skip ci]

* More documentation.

* Add tests.

* Changelog.

* More tests.

* Fix/fake tests.

* Final tweaks.
2023-04-26 15:25:39 +01:00
Darren Burns
9287f64a66 Add isort pre-commit hook, sort imports in src and test directories 2023-02-09 13:28:08 +00:00
Darren Burns
d632091d93 Test ensuring text isnt rendered when text-opacity 0 2022-09-14 18:02:48 +01:00
Darren Burns
367b3287bf Add opacity support 2022-08-31 15:01:50 +01:00
Will McGugan
caaf44b738 Added focusable_children property 2022-05-04 13:50:05 +01:00
Darren Burns
8674269010 Add a test for clickable bar ranges 2022-02-17 13:53:26 +00:00
Darren Burns
4e61770a7c Unroll tab headers into single renderable, more parameterisation of tabs, more examples 2022-02-17 12:20:44 +00:00
Will McGugan
baa72e1dff Merge pull request #272 from Textualize/render-opacity
Render opacity
2022-02-10 10:44:08 +00:00
Darren Burns
42b1f7ef4a Rename module, use positional args for Segment, rename value -> opacity in Opacity 2022-02-10 09:56:06 +00:00
Darren Burns
3b67444911 Update Sparkline.summary_func -> summary_function 2022-02-09 16:32:49 +00:00
Darren Burns
7109ec0796 Use render instead of render_lines in Opacity, add tests 2022-02-09 11:33:01 +00:00
Darren Burns
3b0cab6f79 Caching color blending in Opacity, ignoring ANSI colors 2022-02-09 10:14:41 +00:00
Darren Burns
2648cc0305 Add test plan, add TODO about ignoring ansi colors 2022-02-08 18:15:33 +00:00
Darren Burns
06749bf7af Create outline for Opacity renderable 2022-02-08 17:17:03 +00:00
Darren Burns
8f95afd6c8 Implement Sparkline renderable 2022-02-08 16:41:09 +00:00
Darren Burns
65eb1b0b4f Using console.get_style, adding test ensuring style applies 2022-01-31 14:13:49 +00:00
Darren Burns
776284ddd0 Ensure we clamp range properly, passing Styles directly 2022-01-31 14:02:16 +00:00
Darren Burns
5651e97a64 Underline bar renderable 2022-01-31 13:03:48 +00:00