Commit c51e182
fix(widgets): table row selection shows full background color
When selection_mode = Row, the entire row should display the selection
background color. Previously, only the vertical border characters (│)
showed the selection color because:
1. assemble_columns() applied themed_border to each vline separator
2. Each themed_border adds ANSI codes with \033[0m reset suffix
3. themed_selection wraps the assembled row, but reset codes inside
clear the selection background
4. Result: only vlines show selection; cell content loses background
Fix: Pass ~is_selected flag to assemble_columns. When true, vlines are
rendered without themed_border styling, allowing them to inherit the
selection background applied to the full row.
This affects both wrapped and non-wrapped table rendering paths.
BREAKING CHANGE: Bumps version to 0.4.1 for bug fix release.1 parent efa0ce3 commit c51e182
File tree
4 files changed
+24
-12
lines changed- .github/workflows
- example/demos/table
- src/miaou_widgets_display
4 files changed
+24
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 63 | + | |
71 | 64 | | |
72 | 65 | | |
73 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
277 | 280 | | |
278 | 281 | | |
279 | 282 | | |
| |||
296 | 299 | | |
297 | 300 | | |
298 | 301 | | |
299 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
300 | 306 | | |
301 | 307 | | |
302 | 308 | | |
| |||
347 | 353 | | |
348 | 354 | | |
349 | 355 | | |
350 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
351 | 362 | | |
352 | 363 | | |
353 | 364 | | |
| |||
0 commit comments