GNU bug report logs -
#57639
[PATCH] Add new command 'toggle-theme'
Previous Next
Reported by: Philip Kaludercic <philipk <at> posteo.net>
Date: Wed, 7 Sep 2022 07:20:01 UTC
Severity: wishlist
Tags: patch
Done: Philip Kaludercic <philipk <at> posteo.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs <at> gnu.org> writes:
> If it's automatically switching between dark and light themes, then
> style_changed_cb is probably not the right place. It's mostly vestigial
> code from when we used to update the region face along with the GTK
> stylesheet. Instead, TRT used to be to listen for changes to the
> `gtk-application-prefer-dark-theme' property of the GtkSettings object.
>
> However, that has been superseeded by a dbus based interface in recent
> versions of GNOME. I do not understand the details, but it seems like
> it could be implemented in Lisp:
>
> https://flatpak.github.io/xdg-desktop-portal/#gdbus-org.freedesktop.portal.Settings
Definitely. Example D-Bus code is at <https://github.com/doomemacs/doomemacs/issues/6027>.
And if I understand
<https://github.com/flatpak/xdg-desktop-portal/blob/main/README.md>,
this is not restricted to GTK only.
Best regards, Michael.
This bug report was last modified 2 years and 215 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.