# editor: Fix bracket color change when system theme changes \(\#47505\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5d8fd87953488e5246097a33995eeb0c413473e0)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 5d8fd87953488e5246097a33995eeb0c413473e0

Requested commit: 5d8fd87953488e5246097a33995eeb0c413473e0

Commit: 5d8fd87953488e5246097a33995eeb0c413473e0

Tree: 2da22acb7940064a754e1631eb7e21fbafd70579

Author: Smit Chaudhary

Committer: GitHub

## Message

```
editor: Fix bracket color change when system theme changes (#47505)

Closes #47503 

I added an observer for `GlobalTheme` changes that check if the accent
colors have changed or not. I thought this was closest to the patterns
and style in the codebase. I also considered triggering a
`SettingsStore` notification on theme reload but that seemed incorrect
since the settings didn't really change, even if it would solve the
problem (as the editor already observes `SettingsStore` to detect theme
changes.

Release Notes:

- Fixed Bracket color not updating when system theme changes
```

## Parents

- [30f8841d0480156f4fdf5b8202d05e17ca2da4cf](https://git.cafe/gitcafe/zed/commit/30f8841d0480156f4fdf5b8202d05e17ca2da4cf?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5d8fd87953488e5246097a33995eeb0c413473e0?format=markdown)
