ZIm/crates/zed
Kirill Bulatov 7ba2b258de
Fix a panic on Linux theme appearance change (#26019)
Closes https://github.com/zed-industries/zed/issues/26009


21484a2e9d/crates/gpui/src/platform/linux/platform.rs (L517-L519)

`with_common` panicked at `borrow_mut` which is the way it's implemented
for X11, Wayland and Headless Linux counterparts.


21484a2e9d/crates/gpui/src/platform/linux/wayland/client.rs (L722-L724)

By accessing the appearance global instead of a `RefCell` with it, the
panic goes away with one notable side-effect, on Linux only: the first
global's value on `Dark` appearance would be `Light`: it becomes normal
instantly, thanks to


21484a2e9d/crates/workspace/src/workspace.rs (L1083-L1090)

Things work without flickering:


[linux_theme_toggle.webm](https://github.com/user-attachments/assets/0e39ddc0-b4ff-4475-93ff-7b2bd7233628)


Release Notes:

- Fixed a panic on Linux theme appearance change
2025-03-04 14:47:27 +02:00
..
contents Fix bundle script 2023-11-17 17:44:41 -08:00
resources Remove unnecessary icon field from snapcraft.yaml (#25200) 2025-02-19 15:47:46 -07:00
src Fix a panic on Linux theme appearance change (#26019) 2025-03-04 14:47:27 +02:00
build.rs chore: Remove duplicate lines in crates/zed/build.rs (#22500) 2024-12-30 11:52:40 +00:00
Cargo.toml Bump Zed to v0.178 (#25939) 2025-03-03 12:48:51 -05:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
RELEASE_CHANNEL Restore the default release channel (#23671) 2025-01-26 09:19:24 +00:00