Skip to content

✨ feat(mq-run): enhance table color output with theme and border support#1616

Merged
harehare merged 2 commits intomainfrom
feat/enhance-table-color
Apr 20, 2026
Merged

✨ feat(mq-run): enhance table color output with theme and border support#1616
harehare merged 2 commits intomainfrom
feat/enhance-table-color

Conversation

@harehare
Copy link
Copy Markdown
Owner

No description provided.

- Add `ansi` feature to `tabled` so ANSI codes are accounted for in
  column width calculations, fixing alignment in colored nested tables
- Replace `color_output: bool` with `Option<&ColorTheme>` in
  `runtime_values_to_table`, aligning table colors with `MQ_COLORS`
  config used by Markdown output
- Apply `theme.heading` to header rows and key labels, `theme.link_url`
  to boolean values, `theme.horizontal_rule` to `None` values
- Color all borders (including inner separators) via
  `Segment::all()` + `BorderColor::filled` using `theme.table_separator`
  (dim/gray), preventing the "bolder intersection" artifact that occurred
  when only the outer frame was colored
- Propagate theme through nested table helpers (`build_nested_table`,
  `format_cell_value`, `format_markdown_children`, `format_markdown_node`)
@harehare harehare merged commit 1640dab into main Apr 20, 2026
4 checks passed
@harehare harehare deleted the feat/enhance-table-color branch April 20, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant