# windows: Prefer \`WM_SETTINGCHANGE\` when handing theme changed events \(\#23727\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e083679e0d255f601427c2ae2916257a35dc5c88

Requested commit: e083679e0d255f601427c2ae2916257a35dc5c88

Commit: e083679e0d255f601427c2ae2916257a35dc5c88

Tree: a255bae28ee4f073caf1b09896a7fcc2cca072ab

Author: 张小白

Committer: GitHub

## Message

```
windows: Prefer `WM_SETTINGCHANGE` when handing theme changed events (#23727)

I recently noticed that on my Windows 11 machine, Zed no longer receive
the `WM_DWMCOLORIZATIONCOLORCHANGED` message when the system theme
changes. This functionality was present in the past. While this change
might be unexpected, it's understandable given Microsoft's history of
system updates.

This pull request proposes an alternative approach using the
`WM_SETTINGCHANGE` message to handle theme changes.

Release Notes:

- N/A
```

## Parents

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

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