Is there an existing issue for this?
Problem
automatically enable/disable recolor (dark mode) based on the system-wide light/dark preference. This is a commonplace feature in many apps from chrome to ghostty to codex. People care about this existing generally.
zathura already has everything needed to display documents in "dark mode" and the only missing piece is reacting to the system preference.
this can be worked around as follows, of course:
for pid in $(pidof zathura); do
busctl --user call org.pwmt.zathura.PID-$pid /org/pwmt/zathura \
org.pwmt.zathura ExecuteCommand s "set recolor true"
done
Expected behavior
Add a boolean option, e.g. recolor-follow-system (default false) that subscribes to the XDG desktop portal and listens to its SettingChanged signal.
This portal approach is desktop-agnostic (GNOME, KDE, etc.) and is the same signal GTK4/libadwaita uses internally. Also, zathura already uses GDBus.
I am willing to work on this.
Thanks for the great software!
Is there an existing issue for this?
Problem
automatically enable/disable
recolor(dark mode) based on the system-wide light/dark preference. This is a commonplace feature in many apps from chrome to ghostty to codex. People care about this existing generally.zathura already has everything needed to display documents in "dark mode" and the only missing piece is reacting to the system preference.
this can be worked around as follows, of course:
Expected behavior
Add a boolean option, e.g. recolor-follow-system (default false) that subscribes to the XDG desktop portal and listens to its SettingChanged signal.
This portal approach is desktop-agnostic (GNOME, KDE, etc.) and is the same signal GTK4/libadwaita uses internally. Also, zathura already uses GDBus.
I am willing to work on this.
Thanks for the great software!