Skip to content

Bracket coloring does not respect theme change like syntax highlighting does #47503

@smitchaudhary

Description

@smitchaudhary

Reproduction steps

  1. Have different themes for Light and Dark modes.
  2. Change the system theme light <-> dark.

The syntax highlighting correctly gets updated but the brackets in the current pane do not get updated.

Current vs. Expected behavior

Image Image

See these 2 images. When the theme changes, the bracket colors should have changed as well.

Likewise for the dark to light mode:

Image Image

The red color belongs in the light mode and the blue one in the dark mode. But here, they get mixed.

Zed version and system specs

Zed: v0.220.3+stable.127.3d02817699175909ee72bf28305997094c5cef9d (Zed)
OS: macOS 26.2
Memory: 8 GiB
Architecture: aarch64

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json
"theme": {
    "mode": "system",
    "dark": "Ayu Dark",
    "light": "Gruvbox Light Hard",
  },
"colorize_brackets": true,

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:editor/bracketsrainbow bracketsfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagemeta:easy repro stepsSteps to reproduce are easypriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:needs reproNeeds reproduction steps / someone to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions