From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Detecting changes between dark and light mode on Mac OS Date: Mon, 22 Mar 2021 21:07:53 +0100 Message-ID: <87v99jeyue.fsf@gnus.org> References: <345983B0-C75E-46FF-870C-5FBD3D7381B9@nonceword.org> <87h7l5j8hg.fsf@gnus.org> <3B7287EE-B559-4E3B-A24E-7ABD71EFEB6F@nonceword.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26259"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Daphne Preston-Kendal Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 22 21:10:59 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 1lOQt8-0006gQ-QI for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Mar 2021 21:10:58 +0100 Original-Received: from localhost ([::1]:47804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOQt7-0006IX-SC for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Mar 2021 16:10:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOQqL-0004jZ-Mc for emacs-devel@gnu.org; Mon, 22 Mar 2021 16:08:07 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:36562) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOQqG-00019L-4r for emacs-devel@gnu.org; Mon, 22 Mar 2021 16:08:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ZuWUT4zXbQJ3hriHJPnf6seY9RyHbJAyPOUbzK/eyno=; b=ElJdImgvt/0KoAQwc+noiwalW4 +7axQP59mr6YbivBDvktMuzOXCuTQkdMeVgeg9uIt4qGnMnKLyuNReP1ovL9mwZQ9rhCerKjELi6l VQ6UVDZEtnQFiAV+qbcNo0iFY/ne4XACWe1bJftr2gssYKf8VVPSC+c3fryUejH0/8Ps=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOQqB-0001jS-1r; Mon, 22 Mar 2021 21:07:57 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEUCAQIcFiFGNUGx hnv///8kfBkOAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UDFhMZLA83itAAAAGrSURBVDjLjVMLjsQg CAV7AZALKFzAyv3vtmBnpp/ZTZakNfJ7PECAJQgESPFHBiaOG1TtRVWrctean3ZVbuHceqmtV1BK h4br7JGkhVNE1HBMf+U4S0YQUmRmDowEC6wDthL8LtiB94eOCXpkgvg/nKE4UAn87zwTDsD/Cf6l 1V8NXlpm/jKaL9byYMBhkAwo+DTInHmA3A2FxFftQfAiBN5kMWvyaIaD9MDWtiIu/cVtGsG2i887 USyDobq6X8uVdB5UA55wXJDZWSb1w/ksFxUmyl7bKrTOj2ELRbNYj1RVryfC7NLNaU3NhpyF7s2q elsR1uxsax+utL0M0bEXO7Wpn+K35MFH93bbNx8vutXszaNMG9o+lc9zgCT7W9+L3AabF8wV3IsT PCTmrYDu7aLjXLuYt1X3ewRlCRAD8dlvakK1zhb+952SeG6uYZh6n7eWod5jr/YF8O4u5g5GhM0F jHKuT8w/8x+92OxMF6MI/RFQ7VIAenGXRY3TA/IlMxPaytTjGqcqHQas3v1gHHGTLgDePOe6CI5L RUtiY6Msnw+1N/RlOBL9ANSoPGHnxH7sAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTAzLTIyVDE5 OjI1OjQ0KzAwOjAwP6SCzQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wMy0yMlQxOToyNTo0NCsw MDowME75OnEAAAAASUVORK5CYII= X-Now-Playing: Tuxedomoon's _Suite En Sous-Sol-Time To Lose-Short Stories_: "Blind" In-Reply-To: <3B7287EE-B559-4E3B-A24E-7ABD71EFEB6F@nonceword.org> (Daphne Preston-Kendal's message of "Sun, 21 Mar 2021 11:22:43 +0100") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:266814 Archived-At: Daphne Preston-Kendal writes: > Okay, well, if there are plans to support similar functionality > cross-platform, surely it=E2=80=99s okay to add it just for Mac OS for no= w? > There=E2=80=99s already quite a few Mac OS specific features in nsterm.m = and > nsfns.m. The ns-appearance property on frames, which already provides > a limited form of integration with this Mac OS feature (you can set > the theme to light or dark on a per-frame basis, but it doesn=E2=80=99t t= ell > you what the system sets it to by default, which my patch fixes) is > one of them! Some non-free system specific things have snuck in over the years, but we try not to. > Or is your suggestion that I simply rename this hook to > dark-mode-changed-hook without the ns- prefix, notwithstanding that it > doesn=E2=80=99t currently work on any platform other than Mac OS? No, the project policy is that features like this should also have an implementation on free systems, too, before support for non-free systems are added, unfortunately. So support for dark mode on GNU/Linux has to be added first (or at the same time). --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no