From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rudolf Schlatte Newsgroups: gmane.emacs.bugs Subject: bug#68766: 29.2; Windows dark/light mode changes does not reflect on Emacs Title bar/Scrollbar Date: Tue, 30 Jan 2024 12:57:45 +0100 Message-ID: References: <87il3enr9u.fsf@gmail.com> <86y1ca55er.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10938"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 68766@debbugs.gnu.org Cancel-Lock: sha1:fIBlpKP8PrAfnbMPCa8AtjMHYcY= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 30 12:59:13 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1rUmlk-0002ap-Rg for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Jan 2024 12:59:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUmlT-0001pZ-VC; Tue, 30 Jan 2024 06:58:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUmlR-0001om-QQ for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 06:58:54 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUmlR-00024l-ID for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 06:58:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUmla-00077W-65 for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 06:59:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87il3enr9u.fsf@gmail.com> Resent-From: Rudolf Schlatte Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jan 2024 11:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68766 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170661589527316 (code B ref -1); Tue, 30 Jan 2024 11:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jan 2024 11:58:15 +0000 Original-Received: from localhost ([127.0.0.1]:34483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUmko-00076W-Ju for submit@debbugs.gnu.org; Tue, 30 Jan 2024 06:58:14 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:40074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUmkm-00076H-JG for submit@debbugs.gnu.org; Tue, 30 Jan 2024 06:58:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUmkY-0001MR-9v for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 06:57:58 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUmkW-0001om-CM for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 06:57:57 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1rUmkT-0000cM-Fp for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 12:57:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.248, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279164 Archived-At: Stefan Kangas writes: > Eli Zaretskii writes: > >> It's "by design", in the sense that this is how the Dark theme support >> is implemented in Emacs. If someone submits changes to react to theme >> change immediately for all the frames, we can consider that for >> inclusion. > > I think that would be a useful feature, indeed. > > AFAIU, the point of light/dark mode for many users is that they want to > use different settings depending on the time of day. This needs the > Emacs frame to react to it when the time switches (as most programs in > desktop environments like Gnome, or even macOS, do). This is what I have in my init file, conditionalized on (eq window-system 'mac). It's not the nicest API, but maybe serves as an inspiration for a better-designed, more general hook. (add-hook 'mac-effective-appearance-change-hook #'(lambda () (pcase (plist-get (mac-application-state) :appearance) ("NSAppearanceNameDarkAqua" (load-theme 'ef-night t)) ("NSAppearanceNameAqua" (load-theme 'ef-frost t)))))