Skip to content

Honor opaque content view backgrounds - #8372

Open
tospakX wants to merge 2 commits into
mitmproxy:mainfrom
tospakX:agent/opaque-contentview-background
Open

Honor opaque content view backgrounds#8372
tospakX wants to merge 2 commits into
mitmproxy:mainfrom
tospakX:agent/opaque-contentview-background

Conversation

@tospakX

@tospakX tospakX commented Aug 12, 2026

Copy link
Copy Markdown

Description

Fixes #8070.

Syntax-highlighted content contains unstyled segments represented by an empty attribute name. The console palette now maps that attribute to the normal text colors, so opaque palettes apply their configured background while transparent palettes continue using the terminal background.

Validation:

  • uv run pytest test/mitmproxy/tools/console/test_palettes.py test/mitmproxy/tools/console/test_flowview.py (8 passed)
  • uv run tox -e lint

Checklist

  • I have updated tests where applicable.
  • I have added an entry to the CHANGELOG.

@tospakX
tospakX marked this pull request as ready for review August 12, 2026 16:31
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.

Flow details partially ignores "console_palette_transparent: false"

1 participant