From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: toggle-light-dark-mode Date: Thu, 17 Sep 2020 16:34:51 +0200 Message-ID: References: <20200910102000.2t6tsju745xutg7u@Ergus> <20200910110832.ko66gqnqo4l664d6@Ergus> <20200911134225.zhnlq7cdhmu2iraj@Ergus> <20200911221435.go7b5kz2zcvxp2ft@Ergus> <20200912153723.ymnq3i5pugqf7lsy@Ergus> <20200912194652.nrcx2fjg7n4j54ns@Ergus> <87blia32b7.fsf@gmail.com> <871rj30vzq.fsf@gmail.com> <87d02mop87.fsf@mail.linkov.net> <87tuvyztq5.fsf@gmail.com> <87imce0zbr.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30288"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: casouri@gmail.com, Caio Henrique , spacibba@aol.com, emacs-devel@gnu.org, "Alfred M. Szmidt" , monnier@iro.umontreal.ca, ghe@sdf.org, tecosaur@gmail.com To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 17 16:36:39 2020 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 1kIv1a-0007nv-Qd for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Sep 2020 16:36:38 +0200 Original-Received: from localhost ([::1]:53506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIv1Z-0007bp-Q7 for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Sep 2020 10:36:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIv02-00060f-5X for emacs-devel@gnu.org; Thu, 17 Sep 2020 10:35:02 -0400 Original-Received: from mail-db8eur06olkn2031.outbound.protection.outlook.com ([40.92.51.31]:63187 helo=EUR06-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIuzw-0005TA-BR; Thu, 17 Sep 2020 10:35:01 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Aaq6NpMa4nu+/KT+KfEE5Et+VKNtXsk7tQYub2qPLO4HYtrrwaA7iSdbVjbPli46pOhnw3PmVNhHnTi7Lq8B4bvhegn/n42zO5stCPT4u+8tawkZAmjltFSqgz8GZS1AjGM7av9KG2VDWXej8fO9PI2fssw7w5Rnh38jxZ5Zf93wcdT7HvIxsknoEZzxMUSvLnjsFPGx4QsHTsaNUtdhjF6+ndjFGiI3GDhEzVljN4bWxQmw04fSwCOrL8jSzAZ/Hn9tXKjGDkHUuWqHjA0H0jXsWzzFybrLldhXgYKsxHUT99/6zHo1Hq4dWTHKdjhLAer5h5VT2FQbnj2sn0pULQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XuD56bmvVXcNqNT0qtC0Zx3xw0cs3X7gA1mbYrCSpr4=; b=VibgBbMM52Ryc0dkQFwPttxUQZ5UjotWb0SnOuXmuJmT2GM7Y71HzLGGmfN96RAtckW+WHiTSd1QU6YnbjRyc9YzKIvu5B7K2bfyWGL3NXf/ZUNF8KWou3UZUEb+XEkb9rvZPX4NND9fcqDiK3y4i0uHW/XeAeInIXwGR5QaHiMY0uWMdOrqS9tt1FmrbCfgvTpBvBn1o08BMac+2/MB97SOQmx0RM8pCBZ4y/616Tkax8I1NXLV1h1cZKAzW6FQQppUEgVZIC8Tr1GShzDCiOGphffPsuIbHXuqhZKBn8BBewhfPMRrVCt7p+024An5QVA+PN/SJ7ZfclWkut7+iQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XuD56bmvVXcNqNT0qtC0Zx3xw0cs3X7gA1mbYrCSpr4=; b=vJAJVFlWXSohJ7kH01qsqKUM8c5yJjgfOuAjuERawL54ZJMU9nqRfW96WdbokvmlZQPfPHba8XxF9qajtTKLcsfGnuD25C/W5somVRNTlgITtnsFtSkfZWxKBu8mrtDIAQQTN40PsF7GXxizNthE9GzXn+Snqw3TT2m9lsELUieMZQF69vmnCixO3QCSf0flQcUR+EVZWpuUoJ3ySCi8sf0NGWGKdYRSY4JnW5mU0vhVvj0WPQYVBwZNk1q51DLTYh1VrLWABeHOYClvn2IFhQ5LTBnAWusZ1MOs5k9v9CdKmgwQA/lttnRx6xshpmsPqeSpzr20v1bC/VjrUEx9wQ== Original-Received: from DB8EUR06FT021.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc35::4c) by DB8EUR06HT153.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc35::165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.15; Thu, 17 Sep 2020 14:34:53 +0000 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:fc35::47) by DB8EUR06FT021.mail.protection.outlook.com (2a01:111:e400:fc35::185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.15 via Frontend Transport; Thu, 17 Sep 2020 14:34:52 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:8D6F63935DD96199DAA85C0CCCF840FBB527C897520205DC9BCD6CF04AC3AAEF; UpperCasedChecksum:84678012ADB00DCACCFF5EA16899F1BBF2718B65F6EC2B22DD71315DB35F4C9E; SizeAsReceived:8249; Count:47 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::b547:51cd:16c5:4487]) by VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::b547:51cd:16c5:4487%7]) with mapi id 15.20.3370.019; Thu, 17 Sep 2020 14:34:52 +0000 In-Reply-To: <87imce0zbr.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 16 Sep 2020 22:31:20 +0300") X-ClientProxiedBy: AM6P193CA0114.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:85::19) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87een0ii9g.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM6P193CA0114.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:85::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.11 via Frontend Transport; Thu, 17 Sep 2020 14:34:51 +0000 X-Microsoft-Original-Message-ID: <87een0ii9g.fsf@live.com> X-TMN: [mOx8Ra8S2HtQhg9fV5w+GeCAXhTfBHyp] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: fa1cfb4b-fddc-419b-d947-08d85b16d6bc X-MS-TrafficTypeDiagnostic: DB8EUR06HT153: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ckAONkSUC4nW7r2kSklr/Q5sKJgqtw0MlcyE7h1eLkHC/qN/GI9K3YuwCll3MhUY/MFTQctgBM/X17coNmL8KsJ8Ti6X0Pj6p8TDhCq7Zlfu9c2nmJm8nBi796jvyezhAzGG4ZyAkfyO3GnIrKfQu9rgbZogumK8RfdTS4jdt/z1dta2dpaF1nxmIX+i1hv2edUaaNafYjJWpxmypCZlNGFsy0CGNj9Dvmit7e+LNtbK68troltreuzA2aiT9F8s X-MS-Exchange-AntiSpam-MessageData: kX1K3XCwZAPs2M3uvEzWRvhmQKYrZqN1JE8M5F8khMDlq/uC4W0dPnWBV67hWbkDkXvB21O6VGXlV1tThLul6inuOJ97XJ93HOgoyLJ2LgcL3rXpZef7dCZiuiatUxkW3Vg8Hn85QhQlsnFilfxXiA== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa1cfb4b-fddc-419b-d947-08d85b16d6bc X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2020 14:34:52.9050 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB8EUR06FT021.eop-eur06.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR06HT153 Received-SPF: pass client-ip=40.92.51.31; envelope-from=arthur.miller@live.com; helo=EUR06-DB8-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/17 10:34:53 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] 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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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:256004 Archived-At: Juri Linkov writes: > I wonder why other themes don't support both modes? For example, why there > is separate light tango-theme and tango-dark-theme, but not one tango-theme > supporting dark and light modes? And why separate light modus-operandi-theme > and dark modus-vivendi-theme, but not one modus-theme with both modes? It is not easy to define a set of colors that go well with each other in inverted scenario, especially if you would like to obey some other criteria, like say equal contrast (as in Solarized) or very low-, high contrast. Personally I don't think every theme need to have both, since not everyone is switching their themes based on dayoftime. By the way, the code you posted in another message is interested. Wonder if one could get some input from a webcam, analyze light intensity and switch dark/light Emacs or even pick theme shades based on the image recorded; similar as they do here https://github.com/makuto/auto-base16-theme It would be a bit like modern TVs with background LED lightning; no idea if it would be usable at all; but fun? :-)