-
-
Notifications
You must be signed in to change notification settings - Fork 801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_appearance toggling skips first change when starting in dark mode #4985
Comments
I also tried this on gnome using the quick settings toggle to change back and forth, and the issue is present there as well. |
Apparently introduced with 3eaba4e. wezterm/window/src/os/wayland/connection.rs Line 161 in 22424c3
and falls back to the default. wezterm/window/src/connection.rs Lines 66 to 69 in 22424c3
→ #5135 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
What Operating System(s) are you seeing this problem on?
Linux Wayland
Which Wayland compositor or X11 Window manager(s) are you using?
Sway
WezTerm version
20240203-110809-5046fc22
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, the toggling didn't work at all.
Describe the bug
I'm using
get_appearance
as shown here to toggle between a like and dark theme. When I start a new process (i.e., when there aren't any wezterm windows open or if I runwezterm start --always-new-process
) and I am already in dark mode, switching my desktop to light mode does not change wezterm's appearance. If I then switch back to dark mode, and switch again to light mode, wezterm's appearance is updated. Subsequent changes work correctly.This does not happen when I start wezterm and am already in light mode. In this instance, changing to dark mode immediately switches to dark mode, and subsequent changes work correctly.
I am using
darkman
as my colors-scheme switcher.To Reproduce
This is easily reproduced under sway using darkman.
darkmanctl set dark
to get into dark modedarkmanctl toggle
(nothing will happen to wezterm)darkmanctl toggle
darkmanctl toggle
(wezterm is now using the light theme)Configuration
Expected Behavior
The theme is changed to light theme immediately
Logs
Nothing shows up in the logs
Anything else?
I tried this using nightly, but nightly didn't seem to work at all with
get_appearance
. The theme was always the light theme no matter what I did. I tried this on the nightly appimage and by building it from source.The text was updated successfully, but these errors were encountered: