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:57:26 -0300 Message-ID: <874jeuoaqh.fsf@gmail.com> References: <87il3enr9u.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20154"; 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:58:07 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 1rUuFD-00050j-4g for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Jan 2024 20:58:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUuF1-0007WY-Go; Tue, 30 Jan 2024 14:57: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 1rUuEz-0007Sp-I1 for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 14:57:53 -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 1rUuEz-0002mz-9b for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 14:57:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUuF8-0003xh-98 for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 14:58:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87il3enr9u.fsf@gmail.com> Resent-From: "Rahul M. Juliato" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jan 2024 19:58: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.170664466715202 (code B ref 68766); Tue, 30 Jan 2024 19:58:02 +0000 Original-Received: (at 68766) by debbugs.gnu.org; 30 Jan 2024 19:57:47 +0000 Original-Received: from localhost ([127.0.0.1]:36906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUuEs-0003x7-Fw for submit@debbugs.gnu.org; Tue, 30 Jan 2024 14:57:46 -0500 Original-Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:44336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUuEq-0003ws-Qd for 68766@debbugs.gnu.org; Tue, 30 Jan 2024 14:57:45 -0500 Original-Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-6daf694b439so2077325b3a.1 for <68766@debbugs.gnu.org>; Tue, 30 Jan 2024 11:57:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706644649; x=1707249449; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=xhPbnPScCfAG3vBHWhOQE7dFAtlasqxvX+twdt/b0DU=; b=TYAK0AxoP6Ife81ShHwKFSQ6LnVwhzj2JaXpYMpxIdhK0iqoSn//Ld8WC8f91mAR1r X4MqVXeVpm9g25vuh9kKUhg5GD4kEGUHtA6mFUrZ8yiDkzkwU8jFYZFQR9awy+kc+NvF 4uWeElDnRrYWbVZG12heZ/6xMBhlNmgTyniLsNTbO/5lukm1QQQ9U+7u+cKDMmoCyewB C7o5Ki0Ee7a6jiPlY6qzkV9k8s2GT1B7e/3OFQqXAwzuKHBK+dZBt6zIaT6FoKyIpNKC 7ibEBFgCoR9mAgQtyekhlFagpob2PZOUXKgHoC+kWrS0RbEQY6pZEY26VayfXvguPfKz XlMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706644649; x=1707249449; h=mime-version:user-agent:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xhPbnPScCfAG3vBHWhOQE7dFAtlasqxvX+twdt/b0DU=; b=LODPyVAXtcKPPD7IBGf1xCwnnfjhECBIbwDSzhv06PVPFcAfkUWYylRCLGqZRJFodu Bp1wzS0lc4yw22aOy53w5EuYWCCsdy9DokiFJPPuLWD2uuM+5l8fj31s8Ibm4Q5S+S8t 1iv7kAMfQexkKw4BwY3uqQpcaE6fPzsOukprn3/F4DVaDQ637Bf5ORtZ49Zh9DCMERpd F5lFdWRLq+4+4gOY1GM16imYO8rQfW2k4h7TYGonS1wkrLY4RWSMpZqnvif1Tq7H4YRD i+u8adx05GKd2aeAw4W7p5OWzKbDVFJSJZWjuE+0EASHRyOY74fJYO9srwm3EdlfCCEA gVWQ== X-Gm-Message-State: AOJu0Yx6jAGSKQXcCP4aMZn9dQs+s4MbAVN8pZX/dJnZ1qXmYLGYHI2B MJVq3BfO2SUMHFoyxyyREqu3IX/GvcPMhQ4YK5KAoUzXlQWbspyA1YmlMmEL X-Google-Smtp-Source: AGHT+IGtJwGNc4OMLwH4k/DCQrm96deADnd8SncEIlLWrNQxrTy7U3wnu+dSiS/0sLlplmm3MOAb1g== X-Received: by 2002:aa7:91ce:0:b0:6de:a1b:a122 with SMTP id z14-20020aa791ce000000b006de0a1ba122mr189798pfa.12.1706644649567; Tue, 30 Jan 2024 11:57:29 -0800 (PST) Original-Received: from debian ([2804:7f0:9181:5bbe:6d6b:5989:d41d:aad8]) by smtp.gmail.com with ESMTPSA id i8-20020a056a00004800b006ddc40fd1easm8547584pfk.173.2024.01.30.11.57.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 11:57:29 -0800 (PST) X-Google-Original-From: "Rahul M. Juliato" 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:279203 Archived-At: Hello there again! 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