From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Dark mode on Windows Date: Mon, 25 Oct 2021 15:52:48 +0300 Message-ID: <83tuh51d27.fsf@gnu.org> References: <87mtmx3nsx.fsf@yahoo.com> <835ytl2u9h.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32470"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, salvino@coderedcorp.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 25 15:05:52 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mezfk-0008Dp-Qq for ged-emacs-devel@m.gmane-mx.org; Mon, 25 Oct 2021 15:05:52 +0200 Original-Received: from localhost ([::1]:46452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mezfj-00040L-Hd for ged-emacs-devel@m.gmane-mx.org; Mon, 25 Oct 2021 09:05:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mezTF-0008V4-NZ for emacs-devel@gnu.org; Mon, 25 Oct 2021 08:52:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40766) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mezTE-0006tx-Jp; Mon, 25 Oct 2021 08:52:56 -0400 Original-Received: from [87.69.77.57] (port=2735 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mezTC-0003mA-9o; Mon, 25 Oct 2021 08:52:56 -0400 In-Reply-To: (message from Stefan Monnier on Mon, 25 Oct 2021 08:22:43 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:277742 Archived-At: > From: Stefan Monnier > Cc: Po Lu , salvino@coderedcorp.com, emacs-devel@gnu.org > Date: Mon, 25 Oct 2021 08:22:43 -0400 > > Eli Zaretskii [2021-10-25 14:55:54] wrote: > >> From: Po Lu > >> Cc: "emacs-devel@gnu.org" > >> Date: Mon, 25 Oct 2021 09:17:50 +0800 > >> > >> Vince Salvino writes: > >> > >> > Here is a work in progress, which seemingly works quite well, but > >> > needs a bit more work. Would anyone be able to help, or possibly help > >> > get such a feature merged in? > >> > >> Is this feature available on free operating systems? > >> > >> The X11+GTK port, which runs on free operating systems, needs this > >> feature. > > > > AFAIK, in the GTK build the GTK itself determines how the decorations > > look, and it does that according to the system theme. We also support > > GSettings. > > But we still need to re-set the `frame-background-mode` when the > environment changes from dark to light and vice-versa, right? Nothing a timer cannot handle, AFAIU. Btw, what about D-bus: doesn't it already allow us to act upon such events?