Skip to content

System Theme #941

Description

@barrettruth

Is there an existing issue for this?

  • I have searched the existing issues

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions