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.bugs Subject: bug#68766: 29.2; Windows dark/light mode changes does not reflect on Emacs Title bar/Scrollbar Date: Tue, 30 Jan 2024 15:15:04 +0200 Message-ID: <86fryf2c9z.fsf@gnu.org> References: <87il3enr9u.fsf@gmail.com> <86y1ca55er.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31379"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68766@debbugs.gnu.org To: Rudolf Schlatte Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 30 14:17:17 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 1rUnzJ-0007wy-2C for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Jan 2024 14:17:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUnz1-0001Zd-Sh; Tue, 30 Jan 2024 08:16:59 -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 1rUnyw-0001Z5-50 for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 08:16: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 1rUnyv-0002d4-Sf for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 08:16:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUnz4-0003Tu-Hb for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 08:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jan 2024 13:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68766 X-GNU-PR-Package: emacs Original-Received: via spool by 68766-submit@debbugs.gnu.org id=B68766.170662056913284 (code B ref 68766); Tue, 30 Jan 2024 13:17:02 +0000 Original-Received: (at 68766) by debbugs.gnu.org; 30 Jan 2024 13:16:09 +0000 Original-Received: from localhost ([127.0.0.1]:34571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUnyC-0003SB-Ut for submit@debbugs.gnu.org; Tue, 30 Jan 2024 08:16:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUnyA-0003Ri-JO for 68766@debbugs.gnu.org; Tue, 30 Jan 2024 08:16:07 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUnxv-0002Vz-GZ; Tue, 30 Jan 2024 08:15:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ybddSojpFjvUAQgVdTEFOccN6o4hLZMGfI9GtJh7FNM=; b=pv6JwqOHYxtV S3jqUtkd/8qbAzIQQbBtz6/2xWrOsXUe51F+59PyZ5WRh4WZ4WaW41qw4czKDZVNrV5K0WZ/c1WMj H/XuyT5i5jyInXEl0kpvXWR4o2m9iUKtCZW2DLQvpMYc0J9RMXB9p4XrK8Kc1pVISqkIStl/FtFc2 n2NfRz1MwJHzDA8jSGacVV1TSXO+K4Q5EDrUiuVuoPatMGP/9AoIb13mJa7q00IhX7dbj7uAGnCt/ SQRg4SdmcDCBP7isILL0jwEt7eVMLK4LbdVO/Yng3CQVJfiIz0iUVpwZk5SxqBKyIlorVf+D1IKHj J+fg/W5KGJSgvITD5YSKgA==; In-Reply-To: (message from Rudolf Schlatte on Tue, 30 Jan 2024 12:57:45 +0100) 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:279174 Archived-At: > From: Rudolf Schlatte > Date: Tue, 30 Jan 2024 12:57:45 +0100 > > 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))))) Thanks, but the original report was about MS-Windows, not macOS.