From: Lars Ingebrigtsen <larsi@gnus.org>
To: Antono Vasiljev <self@antono.info>
Cc: 11590@debbugs.gnu.org
Subject: bug#11590: [PATCH]: lisp function for gtk-application-prefer-dark-theme
Date: Thu, 27 Jun 2019 17:22:56 +0200 [thread overview]
Message-ID: <m3r27f59yn.fsf@gnus.org> (raw)
In-Reply-To: <87k3ztoiw1.fsf@antono.info> (Antono Vasiljev's message of "Wed, 30 May 2012 17:14:54 +0300")
Antono Vasiljev <self@antono.info> writes:
>> GTK apps usually provide such possibliity via GSettings property
>> gtk-application-prefer-dark-theme[1]. I wonder how can it be binded to
>> elisp function (best file for such function).
[...]
> +DEFUN ("application-prefer-dark-theme",
> + Fapplication_prefer_dark_theme,
> + Sapplication_prefer_dark_theme,
> + 0, 1, 0,
> + doc: /* Set dark theme variant for application if supported by
> +GUI toolkit and ARG is not nil. */)
[...]
> + g_object_set (G_OBJECT (gtk_settings),
> + "gtk-application-prefer-dark-theme", result, NULL);
Dark mode is very trendy now, so it would be nice if Emacs had support
for telling gtk about that. But I wonder -- would it make sense to
expose setting gtk_settings stuff more generally to the Emacs Lisp work?
And then just have a (gtk-settings "gtk-application-prefer-dark-theme")
call or something...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2019-06-27 15:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87d35r9ek5.fsf@antono.info>
2012-05-30 14:14 ` [PATCH]: lisp function for gtk-application-prefer-dark-theme Antono Vasiljev
2019-06-27 15:22 ` Lars Ingebrigtsen [this message]
2019-11-23 14:39 ` bug#11590: " Lars Ingebrigtsen
2020-10-15 15:03 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3r27f59yn.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=11590@debbugs.gnu.org \
--cc=self@antono.info \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).