From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Rahul M. Juliato" 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 16:52:16 -0300 Message-ID: <878r46oaz3.fsf@gmail.com> References: <87il3enr9u.fsf@gmail.com> <86v87e5582.fsf@gnu.org> Regarding the side discussion Stefan and Eli were commenting on (and if I am polluting this thread, please tell me where we can take this conversation). I'd be more than happy if `auto-dark-mode` or some version of it gets added to Emacs or some other more "official" package archive than MELPA. I am also happy to help on any other matter I can contribute. Just to be clear of what the package does: - User sets a variable with "dark-mode" theme name; - The same for "light-mode" - Starts the minor mode either manually or on boot (auto-dark-mode) - Emacs changes between these themes whenever system changes its dark/light mode internal state - Also works with Doom Emacs and Spacemacs Systems supported by the detection mechanism: - macos: using `emacs-plus` (faster detection method) or any other emacs build falling back to osascript (a little slower detection method) - gnu/linux: trough dbus with Gnome or gnome modules installed booting another WM, such as Sway or i3 - android: using `Termux` - windows: through powershell or winreg I am currently working on: - nil themes: if the user wants to keep the original Emacs appearance, and/or set both themes to nil, and use only the detection mechanism with auto-dark post detection hooks to do something else. (Done, committed it today). - macos: emacs-mac build trough a faster detection method since someone pointed me there's a similar function to execute applescript than i've used for `emacs-plus` build. - docs: I plan to work shortly on a walk-trough install guide, some development tips and a FAQ If you'd like to keep auto-dark as is today, I think we could add another detection mechanism option such as *emacs-internal-auto-dark*, that may be fed by some internally calculated status into a global elisp variable in which we could use some event/or polling function to keep track of it during the execution of the minor-mode. The tricky part here would be assuring that all graphical toolkits in all OSes can feed the OS system status to Emacs. On either Linux and macOS it seems to be "automatically done"; Windows, as the bug originally described might be harder. Also the source code can be found here: https://github.com/LionyxML/auto-dark-emacs Thank you for the opportunity to share it with you and discuss this matter. Rahul M. Juliato Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37787"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 68766@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 30 20:54:06 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 1rUuBJ-0009dn-9S for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Jan 2024 20:54:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUuBA-0006dz-El; Tue, 30 Jan 2024 14:53:56 -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 1rUuB8-0006ap-CD for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 14:53: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 1rUuB8-0001vc-2u for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 14:53:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUuBG-0003rm-JN for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 14:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Rahul M. Juliato" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jan 2024 19:54: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.170664438714793 (code B ref 68766); Tue, 30 Jan 2024 19:54:02 +0000 Original-Received: (at 68766) by debbugs.gnu.org; 30 Jan 2024 19:53:07 +0000 Original-Received: from localhost ([127.0.0.1]:36902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUuAM-0003qX-PQ for submit@debbugs.gnu.org; Tue, 30 Jan 2024 14:53:07 -0500 Original-Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:52539) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUuAK-0003q1-As for 68766@debbugs.gnu.org; Tue, 30 Jan 2024 14:53:04 -0500 Original-Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1d8e7df6abcso15557005ad.1 for <68766@debbugs.gnu.org>; Tue, 30 Jan 2024 11:52:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706644369; x=1707249169; darn=debbugs.gnu.org; h=user-agent:message-id:date:references:in-reply-to:subject:cc:to :mime-version:from:from:to:cc:subject:date:message-id:reply-to; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; b=SzIgz8esK4PSjvlKYkh1gUkI+Jm5iQtrBNhmlbmzHChns7XN9Q7hFyXTpPfkDbKagH sSijkqM6dwvpgHi8X0MplYt3+UhaSw6T4PzyrEW8uiQdVw9OjNAuPwcY/wtugDdb7O4P zK3nG/TWABz6Yo/ZZ6DPNV8TBfVHoBq+xO3iDI2RjH3/POncg8lPXVqR2Nxj+3lHskT5 26bppz8r/fT1NL4MXRVoPEaRyCX0paloW/wL1nQv7JbVYB29SWLFbGU2Xeda+ejyOuAm 1peAa3ImR1EGIyS/c1PO2HdPf1vX1YvC0R5s8eR29R5WBZkAsWTfHIby3FE+mh1W3wzv JLJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706644369; x=1707249169; h=user-agent:message-id:date:references:in-reply-to:subject:cc:to :mime-version:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; b=uhpTA/Fo4s1ZX9GFkJ2JAQjwWrYkWA9jscVeoXLrkM3B/TKArUFluGF0bcOGiOZ0jN c1fesMrYq+acA9Wc6HVpdc9sQoho09x0BvpySbSyuzGavcYer3Tf41fp3sWW9E6C87es RHlZ9idcoucOY9RAPQDY7wvqc394agSvvl2PccyeVMHE4rmbnR6AbZhzDqjm9EhubCrC VU5JcdChM36s6paJ+cBUX4h32Jyc5nRhtkt8G9FZW2K7N4Hz7rsUQ5yPt9SKBMLntqsr k9y2d6qD7I0MJuogvJvIhWlKvUZUEPk/Y6ZQ2aYUN7MtJDevyvTwFFIEnRXVyQOd8pxR SqcQ== X-Gm-Message-State: AOJu0YwAI6lXCO+jxH/MeBzxx0Hm6DOcg+kn8kou6MLQkuCPRBqDNyzm KPETXx2hFbywKNqhnD3n5+MIATTVKGPFAeUUu4xtdLDtIjnc6oGRolux0w58 X-Google-Smtp-Source: AGHT+IGw1fvDznqGlMKZV/qjAWgphPu78L0iDVi2wAgtrc1hjzoxtOCTBisHcNI6LJSr0EhnH4xFLw== X-Received: by 2002:a17:902:e849:b0:1d9:1b55:a1f with SMTP id t9-20020a170902e84900b001d91b550a1fmr1707222plg.64.1706644368933; Tue, 30 Jan 2024 11:52:48 -0800 (PST) Original-Received: from debian ([2804:7f0:9181:5bbe:6d6b:5989:d41d:aad8]) by smtp.gmail.com with ESMTPSA id w8-20020a170902a70800b001d911dd145esm1450406plq.219.2024.01.30.11.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 11:52:48 -0800 (PST) X-Google-Original-From: "Rahul M. Juliato" In-Reply-To: <86v87e5582.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 28 Jan 2024 08:42:21 +0200") 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:279202 Archived-At: