RRick van Hattemfix(widgets): restore the Bar fill's default gradient
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Modernize README demos and progress features | 2 个月前 | |
docs: rebuild the documentation as an interactive Diataxis site Tutorial, how-to, reference and explanation sections with tested, runnable demos: SVG animations rendered from real bar output and an in-browser Pyodide console (vendored xterm.js, wheels built at docs build time) covered by a playwright smoke-test suite. LaTeX/PDF/ePub builds stay green under fail_on_warning. | 27 天前 | |
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(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 天前 |