RRick van Hattemfix(widgets): restore the Bar fill's default gradient
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(widgets): restore the Bar fill's default gradient Bar declared fg=colors.gradient and bg=None as plain class attributes that nothing reads: the color machinery only consults _gradient_colors, which stayed all-None, so the default bar fill rendered colorless on every terminal while Percentage and SimpleProgress (via ColoredMixin) colored correctly. The fill now sweeps the red to green gradient with progress, as the dead attributes always intended. Fallout handled with it: - render_demos: classify progress lines against SGR-stripped text. PERCENT_RE finds no word boundary in '...39m100%' and BAR_RE cannot match a fill with color codes woven through it, so the colored 100% finish line misclassified as log output and the log-window demos never showed their bars completing. - tests: same stripping for the BAR_RE-based assertions, a regression test for the gradient default, and a colors-opted-out test keeping the no-colors branch covered. - 35 demo SVGs re-rendered with the gradient fill, and the benchmark race's plain progressbar2 lane now colors its fill the same way the real default does. | 24 天前 | |
fix(docs): escape the apostrophe that broke worker.js The editorial punctuation sweep replaced the curly apostrophe in the MultiBar thread message with a plain one inside a single-quoted string, a syntax error that stopped the Pyodide worker from loading at all: every Run click reported 'Failed to start Python'. The console smoke test caught it in CI (it is opt-in and had not run locally since the sweep). | 25 天前 | |
docs: accuracy and editorial pass over docs and docstrings Correct factual claims found in review (force=True gate semantics, width allocator, poll-interval types, unit_scale is IEC base-1024, terminal detection ordering, dead easy_install install path), rewrite the cookiecutter-era CONTRIBUTING instructions for ruff/pytest/uv and GitHub Actions, dedupe explanations repeated across pages, trim template filler from the widget pages and docstrings, and normalize punctuation to ASCII per house style. | 26 天前 |