Commit 1b79f1f
committed
feat(dialog): WidgetData setListItemColors / listItemColors
Add a per-item foreground-color channel to the WidgetData dialog
protocol so plugins can color source-list entries to match the curve
colors in the plot. The Filter Editor toolbox uses it to render the
source-curve list with the same colors as the plot.
- widget_data.hpp: setListItemColors(name, colors).
- widget_data_view.hpp: listItemColors(name) accessor mirrored on the
host side so the dialog engine can read it back when rebuilding the
Qt model.
ABI: additive, no field reorder, no struct shrink. Existing plugins
that do not set the new channel see a default-empty optional and
render with the inherited foreground color. No host or plugin
recompile needed.
Test plan
- Existing widget_data_view_test still passes.
- Filter Editor (downstream) consumes the new channel; manual smoke
shows source-list items in plot colors.1 parent 0c3aa51 commit 1b79f1f
2 files changed
Lines changed: 11 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
96 | 104 | | |
97 | 105 | | |
98 | 106 | | |
| |||
0 commit comments