From unknown Sat Aug 16 19:14:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11590: [PATCH]: lisp function for gtk-application-prefer-dark-theme Resent-From: Antono Vasiljev Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 May 2012 16:13:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11590 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: "Antono Vasiljev" Cc: 11590@debbugs.gnu.org, emacs-devel@gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, emacs-devel@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.133839437917710 (code B ref -1); Wed, 30 May 2012 16:13:03 +0000 Received: (at submit) by debbugs.gnu.org; 30 May 2012 16:12:59 +0000 Received: from localhost ([127.0.0.1]:50482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZlW6-0004bZ-Mu for submit@debbugs.gnu.org; Wed, 30 May 2012 12:12:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33225) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZjhp-0001BH-GQ for submit@debbugs.gnu.org; Wed, 30 May 2012 10:17:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZjgC-0007mT-KI for submit@debbugs.gnu.org; Wed, 30 May 2012 10:15:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZjgC-0007mO-Gz for submit@debbugs.gnu.org; Wed, 30 May 2012 10:15:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZjg6-0006iQ-5G for bug-gnu-emacs@gnu.org; Wed, 30 May 2012 10:15:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZjg3-0007i8-Pv for bug-gnu-emacs@gnu.org; Wed, 30 May 2012 10:15:09 -0400 Received: from antono.info ([50.19.243.116]:45721 helo=mail.antono.info) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZjg3-0007cd-Lb; Wed, 30 May 2012 10:15:07 -0400 Received: by mail.antono.info (Postfix, from userid 1003) id E7F6763D3B; Wed, 30 May 2012 14:16:15 +0000 (UTC) Received: from libero.antono.info (unknown [178.120.49.50]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: antono) by mail.antono.info (Postfix) with ESMTPSA id F395060989; Wed, 30 May 2012 14:16:07 +0000 (UTC) From: Antono Vasiljev References: <87d35r9ek5.fsf@antono.info> User-agent: mu4e 0.9.8.5-dev3; emacs 24.1.50.15 In-reply-to: <87d35r9ek5.fsf@antono.info> Date: Wed, 30 May 2012 17:14:54 +0300 Message-ID: <87k3ztoiw1.fsf@antono.info> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Mailman-Approved-At: Wed, 30 May 2012 12:12:56 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) --=-=-= Content-Type: text/plain Antono Vasiljev writes: > Hello, > > I would like to be able setup emacs to use dark GTK theme variant[0]. > > 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). Replying to myself with initial patch implementing application-prefer-dark-theme ARG See it in action: https://vimeo.com/43078091 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Implemented-lisp-function-application-prefer-dark-th.patch Content-Description: application-prefer-dark-theme implementation >From 7679c96fb785bc682b086f08482411311d12f84a Mon Sep 17 00:00:00 2001 From: Antono Vasiljev Date: Wed, 30 May 2012 16:56:42 +0300 Subject: [PATCH] Implemented lisp function application-prefer-dark-theme * src/xsettings.c: GtkSetting and function definition * src/xsettings.h: EXFUN macro for application-prefer-dark-theme --- src/xsettings.c | 32 ++++++++++++++++++++++++++++++++ src/xsettings.h | 1 + 2 files changed, 33 insertions(+) diff --git a/src/xsettings.c b/src/xsettings.c index 69ef22f..d8c01c7 100644 --- a/src/xsettings.c +++ b/src/xsettings.c @@ -201,6 +201,7 @@ struct xsettings /* The single GSettings instance, or NULL if not connected to GSettings. */ static GSettings *gsettings_client; +static GtkSettings *gtk_settings; /* Callback called when something changed in GSettings. */ @@ -824,6 +825,8 @@ init_gsettings (void) g_signal_connect (G_OBJECT (gsettings_client), "changed", G_CALLBACK (something_changed_gsettingsCB), NULL); + gtk_settings = gtk_settings_get_default (); + val = g_settings_get_value (gsettings_client, GSETTINGS_TOOL_BAR_STYLE); if (val) { @@ -1004,6 +1007,30 @@ known style. Otherwise return image. */) return Qimage; } +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. */) + (Lisp_Object arg) +{ + gboolean result = FALSE; + +#ifdef HAVE_GSETTINGS + if (NILP (arg) || (NUMBERP(arg) && (XINT(arg) < 0))) { + result = FALSE; + } else { + result = TRUE; + } + + g_object_set (G_OBJECT (gtk_settings), + "gtk-application-prefer-dark-theme", result, NULL); +#endif + + return result ? Fmake_symbol (build_string ("t")) : Qnil; +} + void syms_of_xsettings (void) { @@ -1012,6 +1039,7 @@ syms_of_xsettings (void) first_dpyinfo = NULL; #ifdef HAVE_GSETTINGS gsettings_client = NULL; + gtk_settings = NULL; #endif #ifdef HAVE_GCONF gconf_client = NULL; @@ -1041,6 +1069,10 @@ If this variable is nil, Emacs ignores system font changes. */); #endif #endif +#ifdef HAVE_GSETTINGS + defsubr (&Sapplication_prefer_dark_theme); +#endif + current_tool_bar_style = Qnil; DEFSYM (Qtool_bar_style, "tool-bar-style"); defsubr (&Stool_bar_get_system_style); diff --git a/src/xsettings.h b/src/xsettings.h index d6b0c09..83b5cfc 100644 --- a/src/xsettings.h +++ b/src/xsettings.h @@ -21,6 +21,7 @@ along with GNU Emacs. If not, see . */ #define XSETTINGS_H EXFUN (Ftool_bar_get_system_style, 0); +EXFUN (Fapplication_prefer_dark_theme, 1); extern void xsettings_initialize (struct x_display_info *dpyinfo); extern void xft_settings_event (struct x_display_info *dpyinfo, -- 1.7.9.5 --=-=-= Content-Type: text/plain -- http://shelr.tv - plain text screencasts for unix ninjas --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 30 14:43:50 2012 Received: (at control) by debbugs.gnu.org; 30 May 2012 18:43:50 +0000 Received: from localhost ([127.0.0.1]:50720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZns6-0000Uc-Az for submit@debbugs.gnu.org; Wed, 30 May 2012 14:43:50 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:35972 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZnrm-0000U9-7q for control@debbugs.gnu.org; Wed, 30 May 2012 14:43:48 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SZnqJ-0005GA-N2 for control@debbugs.gnu.org; Wed, 30 May 2012 14:41:59 -0400 Date: Wed, 30 May 2012 14:41:59 -0400 Message-Id: Subject: control message for bug 11590 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) forwarded 11590 http://lists.gnu.org/archive/html/emacs-devel/2012-05/msg00480.html From unknown Sat Aug 16 19:14:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11590: [PATCH]: lisp function for gtk-application-prefer-dark-theme Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jun 2019 15:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11590 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Antono Vasiljev Cc: 11590@debbugs.gnu.org Received: via spool by 11590-submit@debbugs.gnu.org id=B11590.156164898332345 (code B ref 11590); Thu, 27 Jun 2019 15:24:01 +0000 Received: (at 11590) by debbugs.gnu.org; 27 Jun 2019 15:23:03 +0000 Received: from localhost ([127.0.0.1]:39271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgWEp-0008Pd-8y for submit@debbugs.gnu.org; Thu, 27 Jun 2019 11:23:03 -0400 Received: from quimby.gnus.org ([80.91.231.51]:43866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgWEm-0008P3-3C for 11590@debbugs.gnu.org; Thu, 27 Jun 2019 11:23:01 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgWEi-0006zq-7j; Thu, 27 Jun 2019 17:22:58 +0200 From: Lars Ingebrigtsen References: <87d35r9ek5.fsf@antono.info> <87k3ztoiw1.fsf@antono.info> Date: Thu, 27 Jun 2019 17:22:56 +0200 In-Reply-To: <87k3ztoiw1.fsf@antono.info> (Antono Vasiljev's message of "Wed, 30 May 2012 17:14:54 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Antono Vasiljev 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). Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Antono Vasiljev 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 From unknown Sat Aug 16 19:14:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11590: [PATCH]: lisp function for gtk-application-prefer-dark-theme Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Nov 2019 14:40:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11590 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Antono Vasiljev Cc: 11590@debbugs.gnu.org Received: via spool by 11590-submit@debbugs.gnu.org id=B11590.15745199766026 (code B ref 11590); Sat, 23 Nov 2019 14:40:04 +0000 Received: (at 11590) by debbugs.gnu.org; 23 Nov 2019 14:39:36 +0000 Received: from localhost ([127.0.0.1]:56039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iYWZR-0001Z2-Qe for submit@debbugs.gnu.org; Sat, 23 Nov 2019 09:39:34 -0500 Received: from quimby.gnus.org ([95.216.78.240]:36990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iYWZ7-0001YT-M6 for 11590@debbugs.gnu.org; Sat, 23 Nov 2019 09:39:16 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iYWYx-0006DU-Qb; Sat, 23 Nov 2019 15:39:06 +0100 From: Lars Ingebrigtsen References: <87d35r9ek5.fsf@antono.info> <87k3ztoiw1.fsf@antono.info> Date: Sat, 23 Nov 2019 15:39:03 +0100 In-Reply-To: (Lars Ingebrigtsen's message of "Thu, 27 Jun 2019 17:22:56 +0200") Message-ID: <87sgmelks8.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > 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... A complication here is that some settings are boolean and others aren't, so it's not that trivial, perhaps. Anyway, I tried to redo the patch, but when I try it on my Debian laptop (with Gnome, as far as I know), nothing happens, which is disappointing. Is anything more needed to get dark themes working? diff --git a/src/xsettings.c b/src/xsettings.c index c23a5dc72c..bcdc0a12cb 100644 --- a/src/xsettings.c +++ b/src/xsettings.c @@ -1024,6 +1024,36 @@ DEFUN ("tool-bar-get-system-style", Ftool_bar_get_system_style, return Qimage; } +DEFUN ("set-toolkit-dark-theme", + Fset_toolkit_dark_theme, + Sset_toolkit_dark_theme, + 0, 1, 0, + doc: /* Alter the toolkit \"dark theme\" setting. +If ARG is a positive number, switch the dark theme on; otherwise, switch +it off. + +If the GUI toolkit used does not support altering the dark theme, an +error will be signalled. */) + (Lisp_Object arg) +{ +#ifdef HAVE_GSETTINGS + gboolean dark = FALSE; + GtkSettings *settings = gtk_settings_get_for_screen + (gdk_display_get_default_screen + (gdk_display_get_default ())); + + if (NUMBERP (arg) && XFLOATINT (arg) > 0) + dark = TRUE; + + g_object_set (G_OBJECT (settings), + "gtk-application-prefer-dark-theme", dark, NULL); + + return Qnil; +#else + user_error ("The toolkit doesn't support altering \"dark theme\" settings"); +#endif +} + void syms_of_xsettings (void) { @@ -1066,6 +1096,10 @@ syms_of_xsettings (void) #endif #endif +#ifdef HAVE_GSETTINGS + defsubr (&Sset_toolkit_dark_theme); +#endif + current_tool_bar_style = Qnil; DEFSYM (Qtool_bar_style, "tool-bar-style"); defsubr (&Stool_bar_get_system_style); -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun May 03 20:56:49 2020 Received: (at control) by debbugs.gnu.org; 4 May 2020 00:56:49 +0000 Received: from localhost ([127.0.0.1]:58623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVPPd-0005WP-1r for submit@debbugs.gnu.org; Sun, 03 May 2020 20:56:49 -0400 Received: from mail-yb1-f174.google.com ([209.85.219.174]:33843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVPPc-0005WE-Br for control@debbugs.gnu.org; Sun, 03 May 2020 20:56:48 -0400 Received: by mail-yb1-f174.google.com with SMTP id q206so7203728ybg.1 for ; Sun, 03 May 2020 17:56:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CecgrCJ5P25Ce+ShB/ssGwcLLtZPLcSN9utWYpbFJe0=; b=kQZ4038TRmnLB08Xg59DbFETbVNFRtaK6v7YYcKhP3+aRig0icP+tmcekfO2dtwjaJ T5/iHwAONv5E2DP0LCi92pAVNWPxXageNG7KswKzMtserzLEPAu3RHJ6STlQqnGzU8yC h1906CIRHM+8kVLGAAYdAs/zadohUCNDl7aMfyzrkXS4TjvjktgNgOO/sZT7CmMmwfox DontTcmzjtJtNMqKls18PZZJP8pjaI1HPQc/5uA8aqs5SF2r5l2WM1XXqHJBP84OjwFG xIGwKyBxySXJ7JsIiYd/By7VlEJTXCCUa1XFoWhcVCnJdwxBprT+K9GE/4Sj6rwtEfKR McTg== X-Gm-Message-State: AGi0PuaVyOuEKwjVilIC6r6oOn79QgyX5oeO6c7ZTDgAoBH77JsMEHjj LK5W6uKRJWg50nxRsFGEnz7Djshb1l2fP79NM93KK5ebZqw= X-Google-Smtp-Source: APiQypJzQHMcBkjG8Vl1l1Vw1ma+vWSpQBRLt9Q65jUuO0boXPMefOIaaSVULDdur45Ifw1/inx0VxJcbUva6TLVLkE= X-Received: by 2002:a5b:9d1:: with SMTP id y17mr3214576ybq.129.1588553802566; Sun, 03 May 2020 17:56:42 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Mon, 4 May 2020 02:56:31 +0200 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: # there is a patch, but it doesn't seem to be working. tags 11590 - patch thanks Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.174 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.174 listed in wl.mailspike.net] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: # there is a patch, but it doesn't seem to be working. tags 11590 - patch thanks Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.174 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.174 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 2.0 BLANK_SUBJECT Subject is present but empty # there is a patch, but it doesn't seem to be working. tags 11590 - patch thanks From unknown Sat Aug 16 19:14:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11590: [PATCH]: lisp function for gtk-application-prefer-dark-theme Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Oct 2020 15:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11590 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Antono Vasiljev Cc: 11590@debbugs.gnu.org Received: via spool by 11590-submit@debbugs.gnu.org id=B11590.160277424717066 (code B ref 11590); Thu, 15 Oct 2020 15:05:02 +0000 Received: (at 11590) by debbugs.gnu.org; 15 Oct 2020 15:04:07 +0000 Received: from localhost ([127.0.0.1]:56200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kT4nX-0004RC-DM for submit@debbugs.gnu.org; Thu, 15 Oct 2020 11:04:07 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kT4nV-0004QV-Gg for 11590@debbugs.gnu.org; Thu, 15 Oct 2020 11:04:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UHHlnJJax2JwrqsE0Ns4QRwr28u8DTvPbGg3nmyKBuw=; b=hFZ6fvh8hmjpQWpS4CSKs8aUAu wTO0nMJj/yREsIDT/KNuyy2/b6XeyikydxDDWSIo7Q7svgapBvKWsvr6Whedzl8a1WnZQkLz2jWA6 JfH8Pg2iZ3g1DiSSJzhU3DpatAw1G69VfbmtwqSJyNGhkSGgGL9DDy6tdU/R86dnFZrU=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kT4nK-0005Ws-NJ; Thu, 15 Oct 2020 17:03:59 +0200 From: Lars Ingebrigtsen References: <87d35r9ek5.fsf@antono.info> <87k3ztoiw1.fsf@antono.info> <87sgmelks8.fsf@gnus.org> X-Now-Playing: Juana Molina's _WED 21_: "Final feliz" Date: Thu, 15 Oct 2020 17:03:53 +0200 In-Reply-To: <87sgmelks8.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 23 Nov 2019 15:39:03 +0100") Message-ID: <87362fwmxy.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Anyway, I tried to redo the patch, but when I try it on my Debian laptop > (with Gnome, as far as I know), nothing happens, which is disappointing. > > Is anything more needed to get dark themes wor [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Anyway, I tried to redo the patch, but when I try it on my Debian laptop > (with Gnome, as far as I know), nothing happens, which is disappointing. > > Is anything more needed to get dark themes working? Actually, I had it kinda backwards here, and this patch doesn't seem to be needed (any more): Emacs switches to dark mode (for the Gtk stuff line menus and toolbars) fine now, as far as I can see. And being able to notify Gtk about this from Emacs (instead of the other way around) probably doesn't make sense anyway? So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 15 11:04:14 2020 Received: (at control) by debbugs.gnu.org; 15 Oct 2020 15:04:14 +0000 Received: from localhost ([127.0.0.1]:56203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kT4ne-0004RV-M0 for submit@debbugs.gnu.org; Thu, 15 Oct 2020 11:04:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kT4nd-0004RJ-0B for control@debbugs.gnu.org; Thu, 15 Oct 2020 11:04:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Q+6EOtTGqCF9TzSARp5CSHWpf5bbrvRuPfGEF9ZoqEo=; b=bJeKwBz3be+rk3UQnujSXdIVar EJcJuFZ3sC1aGolMiK1r43XatKoaKdqE4GrJiSiKuQjeW/7L9n6EUo9ZNWcSXDcS7znz18z0/ue5n EXoapROoFmpNhyw4ksWVnOuEIxwV4kcyPIq2Ec4egJvtwYDtPQh2l+IN/fhwnHkSuIvs=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kT4nV-0005X4-8n for control@debbugs.gnu.org; Thu, 15 Oct 2020 17:04:07 +0200 Date: Thu, 15 Oct 2020 17:04:04 +0200 Message-Id: <871rhzwmxn.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11590 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 11590 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 11590 quit