GNU bug report logs - #51404
Support system dark mode on Windows 10

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Vince Salvino <salvino@HIDDEN>; dated Tue, 26 Oct 2021 06:58:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) patch. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 29 Jan 2022 20:28:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 29 15:28:01 2022
Received: from localhost ([127.0.0.1]:34916 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nDuKG-0001BG-Rv
	for submit <at> debbugs.gnu.org; Sat, 29 Jan 2022 15:28:01 -0500
Received: from mail-co1nam11on2064.outbound.protection.outlook.com
 ([40.107.220.64]:61889 helo=NAM11-CO1-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <salvino@HIDDEN>) id 1nDuKE-0001B2-9y
 for 51404 <at> debbugs.gnu.org; Sat, 29 Jan 2022 15:27:58 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=Vg/fYFDp8ZZeDo8dbiGmcPPzeGbTfiQIvNw2h3L7DyzYtKf98CIBrBVTBKzfqVAtpLEy/+m0xsmVzKGiLRG8wN25wOOnPD8yENG2CUT5ZWGOvUxMe/s4o+w/NKbO6IXsBM9l0DQywOd2YFvr8I1y3cWlnzewr2f3XZBHETtW//r2AGfLO0iEafYzoMHuHmzylCrkP47R/2DtU75OmtPg1CQaNbl6mWBMsfbFAMyuRtAU49cyvjsD0eAtHcTGBNK8HQ7SwB48dED1IDAyQ6e92a2CnKrwBPEhbTLy6bAcgjPqFNqLDFdtidn1fvSXwokqwdel46uVbp4HnjjBvKqErg==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=kXekQL6z4RHHG1mwIlBk446xCCYqa2KeI6trVOwqGRs=;
 b=HiflI4usMjAs5zza35EvUklt+o1L64E7g81fbl8ne2kcXalpDm3x5FV/tsQaqIHFJrSY+VPBsZqpWCmOHFTiRIv2DfIJ+w9t/3LNJTAd7/LubX3zQ293rQDtms2NdzZbwLGrc3ZfPqMiLzuSYmSBMKX3iSgcvsXRlTfSvTNWiBHtDjpEc0CYb+ofi6a67QVihzFEHAEFotKaWJ5/Vwa7YDesyXbN0K3BY30LHoxSXe1H42rxbrHtDxP4UIFSgyX2J+77FZGbAUjji56MSD8sY7z2bcVuqWRIzBZbxDIkPha7LPyduzPL30Gc8q/NXLqLH3KYE3oCngxwWRtb8bYG/Q==
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=coderedcorp.com;
 s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=kXekQL6z4RHHG1mwIlBk446xCCYqa2KeI6trVOwqGRs=;
 b=azBEtlAiYu90F+2L6cJ2zzD9yEbpqzLLYWTDHCX0Mg9Lovkcb6rOYpPo1zlKK7x5HJNXfYJaBlsrEdklRVT18w+OV1WmIQZjQbYW1IIrzWiCIOnBZSX8rk7E7teObXVh5dyYdQolBNY8J2S2WEdHkZv5pdlYvzdVAMYp36a1/cE=
Received: from CH2PR12MB4231.namprd12.prod.outlook.com (2603:10b6:610:7d::24)
 by MWHPR12MB1871.namprd12.prod.outlook.com (2603:10b6:300:10b::23)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.20; Sat, 29 Jan
 2022 20:27:49 +0000
Received: from CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::859e:5a4f:dd62:bb26]) by CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::859e:5a4f:dd62:bb26%9]) with mapi id 15.20.4930.020; Sat, 29 Jan 2022
 20:27:48 +0000
From: Vince Salvino <salvino@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: RE: Support system dark mode on Windows 10
Thread-Topic: Support system dark mode on Windows 10
Thread-Index: AQHYFOvZ0/7dj/k/mkqKHdz/Yv5G2ax6YMTw
Date: Sat, 29 Jan 2022 20:27:48 +0000
Message-ID: <CH2PR12MB4231CFB23C02AB61B8FD8C14A5239@HIDDEN>
References: <CH2PR12MB42312B6F6237B1FBC6C67D3CA55D9@HIDDEN>
 <CH2PR12MB4231B48AB2971B11106E3E9FA5239@HIDDEN>
 <83r18raqam.fsf@HIDDEN>
In-Reply-To: <83r18raqam.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
authentication-results: dkim=none (message not signed)
 header.d=none;dmarc=none action=none header.from=coderedcorp.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 27205593-80d7-49ff-4109-08d9e365d110
x-ms-traffictypediagnostic: MWHPR12MB1871:EE_
x-microsoft-antispam-prvs: <MWHPR12MB1871412C8C482408DC5C6F1EA5239@HIDDEN>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: MlZaacb3JcrPISdbMaVYgLa1l4qBuZdKuo+CxYMfWjX6Sd6SkvKaGLBoccMsokSOmkzerwFCdzNp8rgKSJG7I+1yNwiqo2F237DbvZOvKOyGw2CqnnDQLR5XWRNMKKr8nVTy1ReGpYGBTHkCZOU7z9MLVIZqEHFyUnNwZFlMYOTkxfNsJ/Ef+wZs0Z/l7YDU+OiR3OqAkvqO2NDrztfdoZRktkPn9wnXob3HGYrFGSyIsy3o4bdVc+dAnDd/ycsV+CNehTYZuyOSOAXku679SWdtdUDJAAnbKXXm9jinY4bnh9hzx9UkP/tlnROx0UHKAeBpMLIIZovu24oY3OQgJ9tEDCuXDhm/YcXw5a3CYuoAXGR6oQWd0QGA+FECm4csSOfkzho/LAmIRLVlSbDCdkwBKwT0BOE9J9vZCgco52e9HZcre9tlzR2JDqJSL9EG/QllPmYztj7F8CFAbvRzMgvX/UtIID8saRAOruO/z+zP0kV0NdQIcGgUHhVgWYqcO3MWn4QohX6ylDPrEqaiyHxn77KLg31lCjaPAUrkDLiqUP7y7xloXdHrEi1Cb95QAS6BinCOVVYIjnKvYuJSv5P4yB0O0e5AVIXQGDavPyiGad/j/Y6mBQvLUV5bZso5zkUNLRrv6Od3a+6mdPSj8u/630eBco1Yl+1LKS4Wn1OwQu7sUipF+Udif3GvvoXl3v4Vhf9WvDHfuhziRwJO41Fw/jGHy3POEHBB3jgHDfI//sdApGG9Qq3wZjQzcz7ge1eqtXHiq/mjzBYqYbhdaL4Mfyd3pteonhmYNAUtBPg=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:CH2PR12MB4231.namprd12.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(13230001)(366004)(396003)(346002)(376002)(136003)(39830400003)(86362001)(76116006)(6916009)(966005)(508600001)(38070700005)(66946007)(66446008)(66476007)(66556008)(8936002)(8676002)(4326008)(55016003)(52536014)(64756008)(122000001)(5660300002)(99936003)(316002)(38100700002)(6506007)(9686003)(7696005)(71200400001)(2906002)(33656002)(83380400001)(186003)(26005)(20210929001);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkc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239CH2PR12MB4231namp_"
MIME-Version: 1.0
X-OriginatorOrg: coderedcorp.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4231.namprd12.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 27205593-80d7-49ff-4109-08d9e365d110
X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jan 2022 20:27:48.7403 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 9c94adb1-2ce8-484f-be82-c9b5127d4cb1
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: XkATNaQS6JpYFSaw02pUKMc4OtU6lhHLRO6bMRbta5BjWJxWYhICbMp/K1WREccFDP0i7HP6cs4lzdsk05+FjQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1871
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 51404
Cc: "51404 <at> debbugs.gnu.org" <51404 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--_002_CH2PR12MB4231CFB23C02AB61B8FD8C14A5239CH2PR12MB4231namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Thanks for the review. Attached is the revised patch, minus one thing speci=
fically:

> I see where you add windows to the list, but I don't see where you remove=
 deleted windows from the list.  Does that mean the list will always grow i=
ndefinitely through an Emacs session, even if windows are deleted?

I also had this concern but found it a bit sticky. I can't quite find a way=
 to know if a HWND is destroyed. Windows seems to keep the HWNDs in memory,=
 and even reuses them if a window is destroyed and new one is created. The =
win32 API seems to be designed around this behavior as calling functions wi=
th a HWND that is destroyed or that is not owned by the program will not ha=
ve any adverse effects.

I experimented with WM_EMACS_DESTROYWINDOW but that seems to only be trigge=
red on the titlebar destroy, not the other "windows" such as scrollbars, me=
nu, etc.

To answer your question, yes the current implementation will grow indefinit=
ely. Practically speaking the memory overhead is quite small though - as a =
marathon emacs session creating and destroying thousands of frames repeated=
ly might add up to few kilobytes memory overhead on supported Win 10 system=
s (each entry is 16 bytes). It's definitely sloppy programming, but I will =
have to continue to learn more about win32 to figure out the solution, give=
n enough free time in the future.

A few items of note:
* https://stackoverflow.com/questions/2344233/validate-hwnd-using-win32-api
* I'm still digging through the code to figure out if emacs has a parent/ch=
ild relationship for HWNDs, in which case this might be relevant (especiall=
y EnumChildWindows to loop through children and purge them from the list): =
https://docs.microsoft.com/en-us/windows/win32/winmsg/using-windows


Vince Salvino

--_002_CH2PR12MB4231CFB23C02AB61B8FD8C14A5239CH2PR12MB4231namp_
Content-Type: application/octet-stream;
	name="0002-Support-MS-Windows-light-dark-mode-theme-change-duri.patch"
Content-Description:  0002-Support-MS-Windows-light-dark-mode-theme-change-duri.patch
Content-Disposition: attachment;
	filename="0002-Support-MS-Windows-light-dark-mode-theme-change-duri.patch";
	size=7706; creation-date="Sat, 29 Jan 2022 20:24:44 GMT";
	modification-date="Sat, 29 Jan 2022 20:27:48 GMT"
Content-Transfer-Encoding: base64

RnJvbSBhYjliYmY0NzM1M2ZjYzdiNTViZDkzZWF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c3lzdGVtIHRoZW1lICh3aGljaCBpcyBhbHNvIHVzZXItY29uZmlndXJhYmxlIGluCi0JIFdp
bmRvd3Mgc2V0dGluZ3M7IHNlZSBNUy1XaW5kb3dzIHNlY3Rpb24gaW4gRW1hY3MgbWFudWFsKS4g
Ki8KLSAgICAgIExQQllURSB2YWwgPQotCXczMl9nZXRfcmVzb3VyY2UgKCJTb2Z0d2FyZVxcTWlj
cm9zb2Z0XFxXaW5kb3dzXFxDdXJyZW50VmVyc2lvblxcVGhlbWVzXFxQZXJzb25hbGl6ZSIsCi0J
CQkgICJBcHBzVXNlTGlnaHRUaGVtZSIsCi0JCQkgIE5VTEwpOwotICAgICAgaWYgKHZhbCAmJiAq
dmFsID09IDApCi0JdzMyX2Rhcmttb2RlID0gVFJVRTsKKyAgICAgIC8qIFNldCB0aGUgcHJlZmVy
cmVkIG1vZGUgZnJvbSBPUyBzZXR0aW5ncy4gICovCisgICAgICB3MzJfZGFya21vZGUgPSB3MzJf
cXVlcnlkYXJrbW9kZSgpOwogICAgIH0KIAogICBleGNlcHRfY29kZSA9IDA7Ci0tIAoyLjM1LjAu
d2luZG93cy4xCgo=

--_002_CH2PR12MB4231CFB23C02AB61B8FD8C14A5239CH2PR12MB4231namp_--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 29 Jan 2022 08:40:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 29 03:40:23 2022
Received: from localhost ([127.0.0.1]:60969 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nDjHS-0000Zz-Rc
	for submit <at> debbugs.gnu.org; Sat, 29 Jan 2022 03:40:23 -0500
Received: from eggs.gnu.org ([209.51.188.92]:58054)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1nDjHQ-0000Zn-OK
 for 51404 <at> debbugs.gnu.org; Sat, 29 Jan 2022 03:40:21 -0500
Received: from [2001:470:142:3::e] (port=42390 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1nDjHL-0000Ta-4x; Sat, 29 Jan 2022 03:40:15 -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=KBZqnXw5a5Qw0jGZc2GfOBoMUfkN94+GnrOkVXkpvrQ=; b=nK6C98rCXqxm
 Ib51PasvyTyNKPxHsy9WVbnuyvOcjb+RI1O5i9x9SzLpueJPnVzBsPvkTBIxZZP/PX6eJuL0CgxoQ
 kNxvwRw10hWw0ifKl1Xhx59EVS5yu76RzHDgwOct3ZE59WKx8ZNe+s6d1Lt1gMDp94KL25b6C0qYt
 DX6ahZEwhIryUReb00X/PgjsuJz4rt6EIpHvEHjdvz3XSKsnKOh71DIc9B7r1fGscMfSWL6/RXFRj
 1q3+VIwpoRQKALBB1paue05utvPnaBDOnWnjGcovUwq2j0AB0XdEfyxLXoOkuuYdejR0lSMVKiajg
 Z+4nIUOFcOvFQWmRWGTHqA==;
Received: from [87.69.77.57] (port=1750 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1nDjHG-0000du-Qu; Sat, 29 Jan 2022 03:40:14 -0500
Date: Sat, 29 Jan 2022 10:40:01 +0200
Message-Id: <83r18raqam.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Vince Salvino <salvino@HIDDEN>
In-Reply-To: <CH2PR12MB4231B48AB2971B11106E3E9FA5239@HIDDEN>
 (message from Vince Salvino on Sat, 29 Jan 2022 03:34:32 +0000)
Subject: Re: Support system dark mode on Windows 10
References: <CH2PR12MB42312B6F6237B1FBC6C67D3CA55D9@HIDDEN>
 <CH2PR12MB4231B48AB2971B11106E3E9FA5239@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51404
Cc: 51404 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Vince Salvino <salvino@HIDDEN>
> CC: Eli Zaretskii <eliz@HIDDEN>
> Date: Sat, 29 Jan 2022 03:34:32 +0000
> 
> Update: I improved the previous patch to use a linked list to track the window handles during runtime, and am reasonably happy with it. If this looks good please go ahead and install the attached patch 0002 to master. Thanks!

Thanks.  A few comments below, mostly about minor stylistic issues.

> From a8c2f353372d8f015538804e17682e72e40af222 Mon Sep 17 00:00:00 2001
> From: Vince Salvino <salvino@HIDDEN>
> Date: Fri, 28 Jan 2022 22:25:13 -0500
> Subject: [PATCH] Support MS-Windows light/dark mode theme change during
>  runtime. (Bug#51404)

Please provide a ChangeLog-style description of changes (see
CONTRIBUTE for the details of the format we prefer).

> -/* If the OS is set to use dark mode.  */
> +/* If the OS supports light/dark mode. */
                                        ^^
Our style is to leave 2 spaces after the final period of the comment
(here and elsewhere in your patch).

> +/* Simple linked list to track window handles during runtime so they
> +   can be updated if the Windows light/dark mode theme is changed. */
> +struct HWND_NODE
> +{
> +  HWND hwnd;
> +  struct HWND_NODE *next;
> +};
> +struct HWND_NODE *g_hwnd_root;

I see where you add windows to the  list, but I don't see where you
remove deleted windows from the list.  Does that mean the list will
always grow indefinitely through an Emacs session, even if windows are
deleted?

>  /* Applies the Windows system theme (light or dark) to the window
> -   handle HWND.  */
> +   handle HWND. `track` should generally be TRUE to keep a reference
                 ^^
Two spaces between sentences there.  Also, our style of quoting in
comments is 'like this', not MD-style `like this`.

> +      /* After applying the theme, add the HWND to our global list so
> +	 it can be changed later if the OS light/dark mode theme is
> +	 changed. */
> +      if(track)
> +	{
> +	  struct HWND_NODE *curr = malloc(sizeof(struct HWND_NODE));

Please use xmalloc, not malloc, to allocate memory.

Also, our style is to leave one space between a function name and the
opening parenthesis that follows it.

> +	      /* Loop through all known HWNDs and apply theme */
                                                            ^^
Each comment should end with a period (and 2 spaces).

> +	      struct HWND_NODE *curr = g_hwnd_root;
> +	      while ( curr != NULL )
                     ^^^^^^^^^^^^^^
Our style is NOT to leave a space after the opening parenthesis and
before the closing parenthesis.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 29 Jan 2022 03:34:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 28 22:34:43 2022
Received: from localhost ([127.0.0.1]:60829 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nDeVe-000702-UR
	for submit <at> debbugs.gnu.org; Fri, 28 Jan 2022 22:34:43 -0500
Received: from mail-dm6nam08on2081.outbound.protection.outlook.com
 ([40.107.102.81]:7520 helo=NAM04-DM6-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <salvino@HIDDEN>) id 1nDeVd-0006zq-6z
 for 51404 <at> debbugs.gnu.org; Fri, 28 Jan 2022 22:34:41 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=UvxwNiAfS9JG9JFiNcmrBpzbPk9+HQEfo96PEdirezPMYjr3Natu/zK9PnOcQKadsS88MAnOE2v+8EHlf6wRaaiCP7NcGI5z8tjK98/5leuHQlehNpatoUa7URMISWscgUmGisR8VPs4cH1gwb7X5Y4VgGqfhSKRdcLLm2b5I3jAGjoXFjh72tTtkZflstLgUXjGrwBM7vgUSGz3/06m/xZD7iTXePmp/z7mlakaH6a0mYj7i4W8IZdk0uPdqpdMV8MoctwG0ls+9slM9lbXUml7/nCnxrjy/1HE27nZJKuINv+LqF35oU1U0oZqnwr2DuxQnHDEWcvLMLmFAn4ngw==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=wZYkjybWej7/leRlflM6sr5QxgWh2AqoamSXOlJMTcA=;
 b=C7Yuy9j+lhOM1ZD70C/jUJ+0nnjBsa5GyaEmPGhy3+IHBYfOeZy2zwT/qEJz836Fot7PVOvJzchedH1VgiX0Ffg7vrUMtQ9zulU6uAMF7gf91C6e1naUZ41L18QV1KjM/35mzR2SGvZKjUauHuGA/d2oC8qpBG8UW9cmEtXMKQ5riLyzpCiGzVGB2J3tig9+9iseNafovlHBEpH3szuUobhz547UanDSVQfwi2jJURWWCR3xFyBIQgOnSERYbMo10Stoh+QZLf/EnGywm2KRMr5vU6uzAEtLchF9qHzmhWEQEq+tfZSCeMztzkImtm1pWEOaZb+ohnaNLDJp7BOkNQ==
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=coderedcorp.com;
 s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=wZYkjybWej7/leRlflM6sr5QxgWh2AqoamSXOlJMTcA=;
 b=B2TyjOq4DUT/n8d6uzO3X1/uHpoIluCpxDoCx3rYYE+DihZIYkbvIb0k4uv98UJ0eI1IHro0jCBJnWs/DPWCD9oRl20RqBwcyGIweCu97xrDqPt/YsbGkDZDPJb7jbqb28Ayp/atk8qCt9AfSsYxAo8GP189eLQ8mBm38JEgTR8=
Received: from CH2PR12MB4231.namprd12.prod.outlook.com (2603:10b6:610:7d::24)
 by BN6PR12MB1217.namprd12.prod.outlook.com (2603:10b6:404:20::15)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.15; Sat, 29 Jan
 2022 03:34:33 +0000
Received: from CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::859e:5a4f:dd62:bb26]) by CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::859e:5a4f:dd62:bb26%9]) with mapi id 15.20.4930.020; Sat, 29 Jan 2022
 03:34:32 +0000
From: Vince Salvino <salvino@HIDDEN>
To: "51404 <at> debbugs.gnu.org" <51404 <at> debbugs.gnu.org>
Subject: RE: RE: Support system dark mode on Windows 10
Thread-Topic: RE: Support system dark mode on Windows 10
Thread-Index: AdgP6yLz28PvEhmTQP2D0iM80imrRwE1TAeQ
Date: Sat, 29 Jan 2022 03:34:32 +0000
Message-ID: <CH2PR12MB4231B48AB2971B11106E3E9FA5239@HIDDEN>
References: <CH2PR12MB42312B6F6237B1FBC6C67D3CA55D9@HIDDEN>
In-Reply-To: <CH2PR12MB42312B6F6237B1FBC6C67D3CA55D9@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
authentication-results: dkim=none (message not signed)
 header.d=none;dmarc=none action=none header.from=coderedcorp.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: b9eeb48c-8b71-4e01-42e1-08d9e2d843dc
x-ms-traffictypediagnostic: BN6PR12MB1217:EE_
x-microsoft-antispam-prvs: <BN6PR12MB121772C04CC34471D79C68A1A5239@HIDDEN>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: bZ/vCp7Lf8o/reHYP4x+9k1bv/F/8wCG0gdWQ4qXoELVgyHT77djlkOlWtHM5TXhbtFdD3I0x/g24S3aksnnPrBWosa3xImtjJgCr1p2lO5otQeYPBsjayiVEtMH2lvuNfnJqlhSvbD0VOhq/7fjseDPLTtoYl+wn/GxuJiZImIsUkoqLEJ+O7MkrgRazt2YdXo0EDjSTurYPDMK1WC6SwM8adBEDOkeGebAL5tq4zADVN4c9I+vgh2obxellk/ivHuaT44Ab45b9shmM4zYwNhfCBkntt5rtCaNe1gqq8FR09p0FqeSN5EaeNQ47ueX9DUFTliaklnouJuCAWKIQh4zLaTZsSp8wMh5YEyovgsOKt5/Pws2awDMsjC+fw55Ry0sgNKCfm+Qi7VYsrFcJ5CQZgnMxcSuiiNd0XNBLg0m0U5s5sBQu2VOOixdnxTnCrbLO2Fbf/JqY9SkbOp/B58SXlGbRx75tATZaW0TJHfUPHBrD9oFketHZJAdSSQUsN819YGiIF3Yt2JR3TniG5NAuA8UmNsKFoXLYzLQf0C2YNFkfYbn27rbQeRP015gJN55VrvatK3L/zKk6B8xX0ZsCmrTKrWiEJ5RWEnb7k+bl13JRTjRh/c5mLHDYnHfKOsbfJYrhsBu7+4w1S8Mh2FBfrzIZPNcWg7iQxomBEuu1WeMdyrtnSOhN933Zzko2esuOZBJCKXiwCg1Mdf4sw==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:CH2PR12MB4231.namprd12.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(13230001)(346002)(366004)(136003)(39830400003)(396003)(376002)(5660300002)(508600001)(38100700002)(316002)(33656002)(26005)(6916009)(558084003)(186003)(2906002)(99936003)(122000001)(55016003)(86362001)(66476007)(66946007)(66556008)(83380400001)(52536014)(4326008)(71200400001)(8676002)(66446008)(76116006)(8936002)(64756008)(38070700005)(9686003)(7696005)(6506007)(20210929001);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?QVBqe7YuX03VmJ4Y+KHiD+fNpkdx0ayaVbMIYjf8yJDaqXddl2711BV/iuff?=
 =?us-ascii?Q?0KtZpuSc4DNGDRcAnCT3gHUfQJ9m9WM5V7hOz1AwUVpiFRA2kNqsRs41aUEP?=
 =?us-ascii?Q?Obgeq3q7/myX3nU5trZbaBIix54y77OKelO+cxIfKhOEnBTBlnO7tnkHoOtt?=
 =?us-ascii?Q?UZ4GtrjccROZgcHbiZ3bjpOLGVQJlGTXL9ZRjcKdMyQu9ZJZYqY4XT59vKHu?=
 =?us-ascii?Q?AJzWbZvxBrrOqvKJUFYNY7KJDhxLyGEl305HwkfC8yKxZYkoZHX4lazH8w0F?=
 =?us-ascii?Q?g16u2bDE8ConUtz4U5vo7AmYTiGA+fvGhuZaf0sXIh4uqP719ShocgnaoQ4F?=
 =?us-ascii?Q?TNVFKbnwSEiFqLtGLZi3AmhUu27zxFbnmAOIplw1wXiWQH2bGymyHo4Rvk6m?=
 =?us-ascii?Q?tW+tlZXCQXwPlH3TLHCrz6t563Q0AJc/YvZvU+Y/RfbNyvOGiQLd0uJVljfB?=
 =?us-ascii?Q?uOW+hJQjbArO+zFMNfpUPBvlD3XS0EdejqrzrPerTjysAx3Kr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=?us-ascii?Q?B6tqEV3QfdeGtJFlXA+aQoIFQywPBLh6D6YLxPZzl3/JSTAylf5U2gMMpa0c?=
 =?us-ascii?Q?+dyPGhxp+9lOqSK3gYaaWKhNB9M6ZqrzyGR19cebca3PW4oGc2xCrlIz+x5E?=
 =?us-ascii?Q?SFamU7V/RfehZs6AU/RElR18SQ5h6xGryq3kQlVfPjQmDM9k8Kk8068IIQyo?=
 =?us-ascii?Q?oEnJBNLEdflC2o6E0lKFs6oCxZiD7Zv426cc6xzLRCJ2Ca5ob6n/spdsGs7j?=
 =?us-ascii?Q?4A=3D=3D?=
Content-Type: multipart/mixed;
 boundary="_002_CH2PR12MB4231B48AB2971B11106E3E9FA5239CH2PR12MB4231namp_"
MIME-Version: 1.0
X-OriginatorOrg: coderedcorp.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4231.namprd12.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: b9eeb48c-8b71-4e01-42e1-08d9e2d843dc
X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jan 2022 03:34:32.7864 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 9c94adb1-2ce8-484f-be82-c9b5127d4cb1
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: TAofrVEKLfdBmKSX25VOujh1hUpWc0iYZd0AP8JsH9LpCRL/japF+YT0hDWpFi28Pw7bSeNk2pbOsFsIr7h3Wg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1217
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 51404
Cc: Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--_002_CH2PR12MB4231B48AB2971B11106E3E9FA5239CH2PR12MB4231namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Update: I improved the previous patch to use a linked list to track the win=
dow handles during runtime, and am reasonably happy with it. If this looks =
good please go ahead and install the attached patch 0002 to master. Thanks!


Vince Salvino


--_002_CH2PR12MB4231B48AB2971B11106E3E9FA5239CH2PR12MB4231namp_
Content-Type: application/octet-stream;
	name="0002-Support-MS-Windows-light-dark-mode-theme-change-duri.patch"
Content-Description:  0002-Support-MS-Windows-light-dark-mode-theme-change-duri.patch
Content-Disposition: attachment;
	filename="0002-Support-MS-Windows-light-dark-mode-theme-change-duri.patch";
	size=6956; creation-date="Sat, 29 Jan 2022 03:27:25 GMT";
	modification-date="Sat, 29 Jan 2022 03:34:32 GMT"
Content-Transfer-Encoding: base64

RnJvbSBhOGMyZjM1MzM3MmQ4ZjAxNTUzODgwNGUxNzY4MmU3MmU0MGFmMjIyIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBWaW5jZSBTYWx2aW5vIDxzYWx2aW5vQGNvZGVyZWRjb3JwLmNv
bT4KRGF0ZTogRnJpLCAyOCBKYW4gMjAyMiAyMjoyNToxMyAtMDUwMApTdWJqZWN0OiBbUEFUQ0hd
IFN1cHBvcnQgT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BMUEJZVEUgdmFsID0KLQl3MzJfZ2V0X3Jlc291cmNlICgiU29mdHdhcmVcXE1pY3Jvc29mdFxc
V2luZG93c1xcQ3VycmVudFZlcnNpb25cXFRoZW1lc1xcUGVyc29uYWxpemUiLAotCQkJICAiQXBw
c1VzZUxpZ2h0VGhlbWUiLAotCQkJICBOVUxMKTsKLSAgICAgIGlmICh2YWwgJiYgKnZhbCA9PSAw
KQotCXczMl9kYXJrbW9kZSA9IFRSVUU7CisgICAgICAvKiBTZXQgdGhlIHByZWZlcnJlZCBtb2Rl
IGZyb20gT1Mgc2V0dGluZ3MuICovCisgICAgICB3MzJfZGFya21vZGUgPSB3MzJfcXVlcnlkYXJr
bW9kZSgpOwogICAgIH0KIAogICBleGNlcHRfY29kZSA9IDA7Ci0tIAoyLjM1LjAud2luZG93cy4x
Cgo=

--_002_CH2PR12MB4231B48AB2971B11106E3E9FA5239CH2PR12MB4231namp_--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 23 Jan 2022 00:00:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 22 19:00:51 2022
Received: from localhost ([127.0.0.1]:38199 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nBQJF-0002if-Ho
	for submit <at> debbugs.gnu.org; Sat, 22 Jan 2022 19:00:51 -0500
Received: from mail-bn8nam11on2042.outbound.protection.outlook.com
 ([40.107.236.42]:53489 helo=NAM11-BN8-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <salvino@HIDDEN>) id 1nBQJE-0002iS-Dd
 for 51404 <at> debbugs.gnu.org; Sat, 22 Jan 2022 19:00:40 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=cvQDFWYJS6KBT7+fnMBaoBIaFEVKnJosnEp514vXG+6i4Iy1zUrLl0lnKjWftJIEbjNcuaKvgNwV7z5OIj0b6fEP9icf4xTUGJyhLi3Z77AAENBTWJVc3L/zShJYIHv+zfmtsOt6GxD5UGAErPyZUGS/9hyDsnUeuO8PwsgBDs6ivPM6UjpGrSP9GoRfsY8U1BUyu2aNsAxbrcy5aIMy76uQ5uviClOK156eUJpoYfEC47NsPCYk+on3s2Pn4hW15lWtYqY5PAb1BhgbN3uqwLMhNp0oEWn79DhUS7nec3qLms/KZp8f5i8ImHywOX/Rt5PmmJhSNvCkiamdJgjkTg==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=bVZVsi8Cf2TJT1MBjwJv29C1Keo9bIfOoc5blEKptPY=;
 b=QcT8Mzq2nTjaSSpzrszm6zjET1MfLNfQoV7GHXa1tOAIJZxLoMPDuhnz23xRerjx+a8j3qDweyjxTUc5g5Za3QR5PdD2tU1BGQ781NtSFerEWDWUjNuK952Rp3mnyKEuQD24jO7v+2W1NixFZuhBPAn4dBXi7EmNMMED+ICofKZikcqwlDQ867c5Vfjuvt3vNP7WDqmZhijEFaO4lNippi/5rYSaAozsiSG0DH1EAFz498iEGmzrrmXSYlnGd0smmiwWo8YD0Cmc4QmkwTOLU9UJ6UwSo6+xz6QfdzqZQKCUhfqwoWvkvRELn4OaVVlaOwxFxIpt5yJ6tPougBI1Vw==
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=coderedcorp.com;
 s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=bVZVsi8Cf2TJT1MBjwJv29C1Keo9bIfOoc5blEKptPY=;
 b=cLAa+LqmOX6T/KEyq8k3qm9BI45yfyF265zApqkOH60hLeQj3aSmBMhMijIS1lcxGBZ3mHYxi7yIil6TvOBPIWQu6hJoFJ/+WAnFw5+efVAcykBWrkZdrmHkc/7s9XMAepLwQ8l1t8i79w4/1nRDzufdeu/nOmR8+zOK3QjYxh8=
Received: from CH2PR12MB4231.namprd12.prod.outlook.com (2603:10b6:610:7d::24)
 by BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.12; Sun, 23 Jan
 2022 00:00:32 +0000
Received: from CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::859e:5a4f:dd62:bb26]) by CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::859e:5a4f:dd62:bb26%9]) with mapi id 15.20.4909.017; Sun, 23 Jan 2022
 00:00:32 +0000
From: Vince Salvino <salvino@HIDDEN>
To: "51404 <at> debbugs.gnu.org" <51404 <at> debbugs.gnu.org>
Subject: RE: Support system dark mode on Windows 10
Thread-Topic: RE: Support system dark mode on Windows 10
Thread-Index: AdgP6yLz28PvEhmTQP2D0iM80imrRw==
Date: Sun, 23 Jan 2022 00:00:32 +0000
Message-ID: <CH2PR12MB42312B6F6237B1FBC6C67D3CA55D9@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
authentication-results: dkim=none (message not signed)
 header.d=none;dmarc=none action=none header.from=coderedcorp.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 6e6498ad-19a7-49b9-1e3f-08d9de035fd6
x-ms-traffictypediagnostic: BN8PR12MB3587:EE_
x-microsoft-antispam-prvs: <BN8PR12MB358732E9487871B8234F73E0A55D9@HIDDEN>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: FxnF+f3/wt6+gcfhv2mHXBJsE/KHKlgoZnkeLGMAtDV0etr26BHfDAQPA/qeLuEnvaFh43n1GSWemMGEZOMV5s7jVSqPjvCpNF0F6k1BwjMLY6P2nRri9e0TC/HGwnysFqjuVIblUCY5q8+oSH50MjvPQDOfFADWp6LlUr8O4yRUZp7VMH1cDyJepB8vYbZsTHR5vo06FwBI37M+3Iw1hEZjjz/zuGWx/EBzi1FV0vKg3XhDGd/xFvFh1jEYmgvae9OPHFg+SCsZWU+bTke+TuGmvy31q1f0/pEMFGKOJmMD1p9z7ssvo2QLN2EEeQvYLaW2Id1HWMxuaCyqjOhd5a1pOBsX7xDfFfRXy2Ymrsrwm0hC0PBPnY2n6yYDLJU9iqIv4xBvNw/MtOz2RQTJetuaOlDvxRe+tTo6r9wD/4y7SwFC55GrV3gXg/oZwCK80xwMwt9SwMdfxtZvLAg/63GxLapk4x5UAu6zhWN8oar9oMmVdmuQfgL/QqsW3oob0Xw2RBY8+GPHVbgbKQKSN1o8W22jZB06gEhjKjRshJhqsWg0qVjyPfNZY3fYV02Ph/xPbrBFpZVA/DnR+c3xu7EdOrS70H1M/M+/Dred2XZeoCK54uKyQjPog0qPZax+lrA23Qq5LRIAvXPReuhCI94Y25vYcjDcRmyld4MVoE/VKjB2tJYWOPVRAm7D+WWrF4WULqATsWmN7oVin2QEjg==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:CH2PR12MB4231.namprd12.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(396003)(136003)(376002)(39830400003)(346002)(366004)(8936002)(4744005)(33656002)(316002)(2906002)(5660300002)(9686003)(8676002)(186003)(76116006)(6506007)(55016003)(7696005)(66476007)(66556008)(71200400001)(99936003)(38070700005)(38100700002)(86362001)(52536014)(508600001)(66946007)(6916009)(66446008)(64756008)(4326008)(26005)(122000001);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?eLpP1+moDyXnrOXk0zgtwWgMYae2lrSQM0HqdkT9KlqYeei5hbl66OSdvar3?=
 =?us-ascii?Q?TRno084DXv8nEPTbfUyF+cEMNn4hPklagmL/0UrHtdApN+i2GyXHrttbwdci?=
 =?us-ascii?Q?ceD2hIWmTtfxlSw1jNvf85z64FbR8hMo9twRWccfRws25H+aFMT0xtsakwdf?=
 =?us-ascii?Q?5YCLGsOETDrbiNKlHjlJ4SvdtLAoBCLH2xgcUxyXd9VKEDmQDBFc2FuxHceY?=
 =?us-ascii?Q?+UD/tGFqDGzc1P6A+w42rQBY68+j0LtZTr+HRIOyeyGnQRVvkWTxFUt24CGw?=
 =?us-ascii?Q?GfnEim5GAjXaYLq9nu6M8FJy2SArdTE2D0dp9Trhx6QRo4fS6ugeDXtE0zRH?=
 =?us-ascii?Q?XNj93+VVNeXKNBHGHD2GMwRnak4Q+41fgdrgJQqK8OWY8mXHwu1WNEbcUnkC?=
 =?us-ascii?Q?P6cKTJIEcPDe5izVcP4fhF8xGeo3lYwgKyYzfER3Ii0+lq3PYPjn5x7/PK77?=
 =?us-ascii?Q?bG+ztFhpmXcr6562SKrE4a+igHzkMOoXaDpK8F43rxNc7jffYWDoy0cvSdh+?=
 =?us-ascii?Q?hlQsgB00RAjM1F5CRSEVJcooBhI9oD69vB1iPwnfUNlMvMZKQGuZ/qxJzC/T?=
 =?us-ascii?Q?a4+z/0pz1qzX6dHJTx2rkNCKQaeCdoTqIlqFzlPWVggG/hXVLToDTpIfj6B2?=
 =?us-ascii?Q?s6W/zrv/Wm1C16U5hqiEzLOyEX5qwZnbNJymbcRd8mu7dO+f2xwyMqKC2HWQ?=
 =?us-ascii?Q?SRg1/rIGkUorxnWOMnaaIz+WFhReWWGivRIinN7S65dn8WxB4E3H6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5kr?=
 =?us-ascii?Q?Bp+2i/Aff5SPB2/6sQZg4JI=3D?=
Content-Type: multipart/mixed;
 boundary="_002_CH2PR12MB42312B6F6237B1FBC6C67D3CA55D9CH2PR12MB4231namp_"
MIME-Version: 1.0
X-OriginatorOrg: coderedcorp.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4231.namprd12.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 6e6498ad-19a7-49b9-1e3f-08d9de035fd6
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jan 2022 00:00:32.2522 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 9c94adb1-2ce8-484f-be82-c9b5127d4cb1
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: C2MfnzP2w569B7usE9MMqYRNzbByInAg1pQl68JRtpNSm/kuubevkQVfFO0zhQw1it4pzlWaQFFNF9gKQbqgaA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB3587
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 51404
Cc: Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--_002_CH2PR12MB42312B6F6237B1FBC6C67D3CA55D9CH2PR12MB4231namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Attached is a patch which listens to the OS settings change, to dynamically=
 change light/dark GUI during runtime.

Disclaimer here, I am not actually a C nor Win32 developer. I am not curren=
tly happy with the g_hwnds[256] implementation - that is purely a sloppy ha=
ck as a proof of concept. There is probably a much better way to track the =
window handles (all outlined in the TODO comment). However, this works if a=
nyone wants to play around with it.

Vince Salvino


--_002_CH2PR12MB42312B6F6237B1FBC6C67D3CA55D9CH2PR12MB4231namp_
Content-Type: application/octet-stream;
	name="0002-Support-MS-Windows-light-dark-mode-theme-change-duri.patch"
Content-Description:  0002-Support-MS-Windows-light-dark-mode-theme-change-duri.patch
Content-Disposition: attachment;
	filename="0002-Support-MS-Windows-light-dark-mode-theme-change-duri.patch";
	size=7271; creation-date="Sat, 22 Jan 2022 23:50:00 GMT";
	modification-date="Sun, 23 Jan 2022 00:00:32 GMT"
Content-Transfer-Encoding: base64

RnJvbSA4OWVmMzkwY2EwNjM5N2MyMWJlMGRlZWE0MmRjYzVlYjBmOGFjZmFkIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBWaW5jZSBTYWx2aW5vIDxzYWx2aW5vQGNvZGVyZWRjb3JwLmNv
bT4KRGF0ZTogU2F0LCAyMiBKYW4gMjAyMiAxODozOTo0MSAtMDUwMApTdWJqZWN0OiBbUEFUQ0hd
IFN1cHBvcnQgTVMtV2luZG93cyBsaWdodC9kYXJrIG1vZGUgdGhlbWUgY2hhbmdlIGR1cmluZwog
cnVudGltZS4gKEJ1ZyM1MTQwNCkKCi0tLQogc3JjL3czMmZucy5jIHwgMTE2ICsrKysrKysrKysr
KysrKysrKysrKysrKysrKysrKysrKysrKysrKysrLS0tLS0tLS0tLQog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d291bGQgYWxsb3cgdGhlIHVzZXIgdG8g
Zm9yY2libHkKLQkgb3ZlcnJpZGUgdGhlIHN5c3RlbSB0aGVtZSAod2hpY2ggaXMgYWxzbyB1c2Vy
LWNvbmZpZ3VyYWJsZSBpbgotCSBXaW5kb3dzIHNldHRpbmdzOyBzZWUgTVMtV2luZG93cyBzZWN0
aW9uIGluIEVtYWNzIG1hbnVhbCkuICovCi0gICAgICBMUEJZVEUgdmFsID0KLQl3MzJfZ2V0X3Jl
c291cmNlICgiU29mdHdhcmVcXE1pY3Jvc29mdFxcV2luZG93c1xcQ3VycmVudFZlcnNpb25cXFRo
ZW1lc1xcUGVyc29uYWxpemUiLAotCQkJICAiQXBwc1VzZUxpZ2h0VGhlbWUiLAotCQkJICBOVUxM
KTsKLSAgICAgIGlmICh2YWwgJiYgKnZhbCA9PSAwKQotCXczMl9kYXJrbW9kZSA9IFRSVUU7Cisg
ICAgICAvKiBTZXQgdGhlIHByZWZlcnJlZCBtb2RlIGZyb20gT1Mgc2V0dGluZ3MuICovCisgICAg
ICB3MzJfZGFya21vZGUgPSB3MzJfcXVlcnlkYXJrbW9kZSgpOwogICAgIH0KIAogICBleGNlcHRf
Y29kZSA9IDA7Ci0tIAoyLjM0LjEud2luZG93cy4xCgo=

--_002_CH2PR12MB42312B6F6237B1FBC6C67D3CA55D9CH2PR12MB4231namp_--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 14 Jan 2022 06:00:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 14 01:00:21 2022
Received: from localhost ([127.0.0.1]:35268 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8FdN-0006Ll-4Y
	for submit <at> debbugs.gnu.org; Fri, 14 Jan 2022 01:00:21 -0500
Received: from mail-dm6nam10on2066.outbound.protection.outlook.com
 ([40.107.93.66]:48544 helo=NAM10-DM6-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <salvino@HIDDEN>) id 1n8FdI-0006LN-9M
 for 51404 <at> debbugs.gnu.org; Fri, 14 Jan 2022 01:00:20 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=f+rsYW9r5XkDuFd4Vm77akFLAF807OuD2FbOW07sRwfoAEQ0c9Eb7Qk0ODmyn6J53FObR/aStV6QjCK8hd3014vXEAVO+TawdxQrQ822bmamxOLe79Kh++ScI0q0u8fNW57wOs1y5MkaTpgkwJVN8578UZwTN/CCqymM+F8MXLnckwDBZntK+zCMUUPUdk/tk7qnJ+ZlBU19GSoS5kHlHQQNGlJClFUjHL8KvJEN21rfBJHPTQN/+YJFfuquDb8zLSNS9BFvZp27Xefa/CVe7mcQeVEfa5iVFU9K/a2fnY1bqmjHMHN8fLTeQKpw77zXSeovqqhCEz1GmS6yPJAnng==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=GUlrQj1viE6+81yrkqee7H5BmBigl/2ORqq/lGMkruM=;
 b=NEj+dC4UQjhhMIoDHkhpyI8LWvgC49ZZ4Q6/ShkZaSFvG7y8eLjOWKFZO+vA0jh0IPehEvd31gX+u10FE5GMhXXUo5ymxIE8qHEtSJv4uc3lv7iN1q2chYFv5lrpBtXAvO8uKTmCGC5RdMAxBGy6Snhc03eRvS/vwgyjk78VzbgI/cnd6MUXmP16NEDe9MriT6/zG/psTmk8qbvSvoCmBOb79Ye/ZuLW6HOBiBGNNqU4bf32tXQqA77ceyOO+g/LWl+u0n/MQP24f63CL54BQvhPUbB3hlUqTcTnG8eIfgFUESuY49T6gVRaqM5jsYKyOWmXD4LJJkP0Oa4m6S5B3w==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=coderedcorp.com; dmarc=pass action=none
 header.from=coderedcorp.com; dkim=pass header.d=coderedcorp.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coderedcorp.com;
 s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=GUlrQj1viE6+81yrkqee7H5BmBigl/2ORqq/lGMkruM=;
 b=BTdm7DKS6x0bks7/C9rdQrGV/hBlwnqJy/lVwbBRkenoSQnU0W0JjYmbeDCbLOSTVPB5YDx+kDqhL7w6gxroZlmJxUAAoVmHkJzneSfaxPA9cRlZDhDVNcbSaGaCqNs4A6pJ9zWB81QzSP8QhrneDS8DqZw7ChoERgz6GbR+MDY=
Received: from CH2PR12MB4231.namprd12.prod.outlook.com (2603:10b6:610:7d::24)
 by BN6PR12MB1890.namprd12.prod.outlook.com (2603:10b6:404:106::23)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.11; Fri, 14 Jan
 2022 06:00:08 +0000
Received: from CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::859e:5a4f:dd62:bb26]) by CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::859e:5a4f:dd62:bb26%9]) with mapi id 15.20.4888.012; Fri, 14 Jan 2022
 06:00:07 +0000
From: Vince Salvino <salvino@HIDDEN>
To: "51404 <at> debbugs.gnu.org" <51404 <at> debbugs.gnu.org>
Subject: Re: bug#51404: Support system dark mode on Windows 10
Thread-Topic: Re: bug#51404: Support system dark mode on Windows 10
Thread-Index: AdgJCXUnHIWz0hl5QLGKO1c7MQ7Y5A==
Date: Fri, 14 Jan 2022 06:00:07 +0000
Message-ID: <CH2PR12MB4231911F0F61BB71330BCB90A5549@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: dkim=none (message not signed)
 header.d=none;dmarc=none action=none header.from=coderedcorp.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 99c3be87-1f58-42f3-f844-08d9d7231e1e
x-ms-traffictypediagnostic: BN6PR12MB1890:EE_
x-microsoft-antispam-prvs: <BN6PR12MB1890DCB71310CF07D1E70802A5549@HIDDEN>
x-ms-oob-tlc-oobclassifiers: OLM:7691;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 8x9/zDxI6V+jOycWvgPkogoPawDXL1vtyOgBoZwR6aQ7Ya372O8F4SQy/wEKYis4nP8r2ZwdS0L09N7zI+FJwTtAaSLnxKcEuzgundVxLBCori1qSVOYuOYs7A82CaJlGtEjsQ9taat8Eu4lBE5VtrGWYTvgSZYjQqNCdYz7yJfDIyFWSCDK4PNV+Vd6QHGeEF9EmP44oTYLkm9Cblc4bJRb/yrWZmrn3kuSdJUGM2dHA707GGD8+HHbholVVYByz1aoZC38YRzOaBOx41tTnSAR4SnptyxZdr73oAUmuf2AdHpZoeZmgh6/lJiDLz6oX8qtzEpvF7qXxyYUUTcGCTjfpvN8hpmSHcYPVM4BwieNNrqyarAZcmeRdASUwLphzGEW3TQndvt2VFIpnTP8Y7fH9kw4jQKOEcdoJ11+ogs8Z4PWrConeKNhmMVQqKLQMsmccKqtG2+xBqRtQ7m+e2JcYquzotRlWzYYmFK/NVlHgQEG4qo6Aka6p9wKJOYOpHRqw0IbDDgjqxYFU7shPzMSxlhBp5y2uCCSQXthrVsZsAhvRF/smDonmJfcRlQ2JKSZ805VL/WnQV5o2GAgFWGlyJyLU+xUi7F+JU18H4rAzCUvnnNolpAcQTWAIqZAerUE7a0R1u+4pv+wNozXnSCVOsSaOToAgEaWWexPmDCdiyFQs1HNUHR+ZwgUtttHENl+4ECRGc4tB3IkV7QaTQ==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:CH2PR12MB4231.namprd12.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(366004)(39830400003)(136003)(346002)(396003)(376002)(5660300002)(508600001)(9686003)(66556008)(64756008)(66946007)(66476007)(76116006)(66446008)(52536014)(83380400001)(2906002)(122000001)(7696005)(186003)(71200400001)(26005)(33656002)(8676002)(8936002)(38070700005)(86362001)(38100700002)(6916009)(6506007)(316002)(55016003);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?p4xCf9+RC83DuLlJOi3UM8QrfucrzhMgXFKDtKF95w25Yl/pfW5M+c5IpLhi?=
 =?us-ascii?Q?BLq4mvMPXQZr1NiMxRkAJsKm0QtxdKKJtiXYANF2ZMIQ+IDnmjgL1a5+8ZnN?=
 =?us-ascii?Q?SxateWiQZmDJyNI2tfrevya2So0hPKpzfM03j08AFDZGShqY3tIRRj2CJyQG?=
 =?us-ascii?Q?emxlC2T0HFfh4EcpO8e9/d9TcLmbX+cP2Zw8Rh9HSaVEBuNKasv5V3Ws0Ao4?=
 =?us-ascii?Q?Ye9T3Phr285TCdv9MfSc0eTlJy/9+H4pMNphBX7vGkPiah0ErEZsvc6WcXZO?=
 =?us-ascii?Q?ZoTw7do8Q5Mo//nl6RhJXAIDyS244fvkCLo6Vryk4vJpYdVKzC3YYLmNEzvQ?=
 =?us-ascii?Q?J/RZt0xP2ehOUVOgD8LL6Bs4qVTw9WV5u7U01ryBdMj/dmnfk0NdNvJQ4h8k?=
 =?us-ascii?Q?rzrEZ/GlAC3/gwovNaIySTcpQ/1WeQ/S7Mz4cbgiZJ5urEPkXT5UZSxwBD9T?=
 =?us-ascii?Q?lotbENezAWspHA5evOHLQQ0+2kDUOmXkBi38/4IuCVdUbKZ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ascii?Q?Vs2ODJZXc1114vJUr8fdHHJPBU9KPujUyJjroVCC2IhchtggWrAUfWCxi6OU?=
 =?us-ascii?Q?cj3o7VLiTqLzOCdCbMC5MCG4gUStaFuZdIFuswxNjkeXKRFH5kR3KgL7mI7B?=
 =?us-ascii?Q?kZ4Bm6nVvDLoUZHJVSVncNyZktssAH+bfzxr/k8IAT9Y2gFU88292fsOhFWk?=
 =?us-ascii?Q?e335q69/pQz3eUObNZKw+zvO94fElcHZwvIDyIWIaMyMgFQGwp2ueicHEDCk?=
 =?us-ascii?Q?Hz5OxMuWXscbpxEQ8AhL9Yg=3D?=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: coderedcorp.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4231.namprd12.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 99c3be87-1f58-42f3-f844-08d9d7231e1e
X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jan 2022 06:00:07.6935 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 9c94adb1-2ce8-484f-be82-c9b5127d4cb1
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: PletuxCnsixuBm1Q32jQV2aQlrBlyMH+cBACge24GspYeI4KRST5Fhk3hb7hCq4ATP7ZBvx/7ujqTPq3WYzDyQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1890
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 51404
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

So, playing around with the idea of dynamically toggling dark/light modes o=
n-the-fly, rather than only at program initialization as this patch current=
ly does. I got a proof of concept working, however there is one ugly caveat=
. In order to change the theme, we must keep track of every window handle i=
n existence (frame, scroll bar, other UI element) in a global.

The code for this is relatively simple, we can watch for WM_SETTINGCHANGE (=
in w32_wnd_proc) and then call w32_applytheme (which also needs a few modif=
ications) to all of the HWND objects. But it seems like it would get quite =
messy and bloated to be storing references to all of these in globals. We w=
ould probably need some kind of array of references, and then loop through =
them upon receiving the signal.

The pseudo-code is something like:

	// Add every hwnd in existence to this array.
	global_hwnds =3D []

	w32_wnd_proc() {
		...
		case WM_SETTINGCHANGE:
			for each hwnd in global_hwnds {
				w32_applytheme(hwnd);
			}
		...
	}

Thoughts? Is it worth it?

Vince Salvino





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 12 Nov 2021 06:19:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 12 01:19:53 2021
Received: from localhost ([127.0.0.1]:43111 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mlPuj-0004Oc-8x
	for submit <at> debbugs.gnu.org; Fri, 12 Nov 2021 01:19:53 -0500
Received: from eggs.gnu.org ([209.51.188.92]:34572)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1mlPue-0004O2-3L; Fri, 12 Nov 2021 01:19:51 -0500
Received: from [2001:470:142:3::e] (port=33576 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mlPuY-0001om-OP; Fri, 12 Nov 2021 01:19:42 -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=0PBZbzmonAKMntBtIFB81brghKlU32JAMBte4BR9rkE=; b=guusM14171Nu
 uI0IOJMXg1Y7OhRCuYvP4ic6T+hHewiOrxvd2Q6OEaQCVc0/azPQF15el9JSF//1z/SOi+2LJ/J9P
 B3YVDKNztHtfHCV1dHVFeop7m76cC+lf+f+hzrwiXwCNPNzLcpHhTGX9g/sJQ+mybWYCXDJW90mZM
 e9MaR5r8J0sBESCbwJs6lPXh5dOLhUN6L7oPNxugpR+RxoeIi1CUtR/j3cJkiZf1wpPzXDTsgxuYQ
 KIM0pmKRZsS6WhShv2SkkNY0OZGDmacFEwgfLWw4ngOJhdRvRWP82cJQu5Nsl8i3MspwFmq8KcnJb
 75EG1/dnl5jJNhknGk8rbw==;
Received: from [87.69.77.57] (port=2465 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mlPuY-0001Gn-BZ; Fri, 12 Nov 2021 01:19:42 -0500
Date: Fri, 12 Nov 2021 08:19:22 +0200
Message-Id: <83k0hdzyj9.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87czn63wot.fsf@HIDDEN> (message from Lars Ingebrigtsen on Fri, 
 12 Nov 2021 04:00:18 +0100)
Subject: Re: bug#51404: Support system dark mode on Windows 10
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN>
 <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
 <838ryfyawv.fsf@HIDDEN>
 <CH2PR12MB4231BF93A366641B94D7A636A5849@HIDDEN>
 <CH2PR12MB423138F5C432C2BBF330BC6BA5859@HIDDEN>
 <83r1c5tyar.fsf@HIDDEN> <83a6iqpzrv.fsf@HIDDEN>
 <ddm9cg097co1e4d11e8bh6c6.1635613989653@HIDDEN>
 <83k0huo1iy.fsf@HIDDEN> <87wnlf8d9y.fsf@HIDDEN>
 <83wnlf166j.fsf@HIDDEN> <87wnle6g8o.fsf@HIDDEN>
 <83ee7m20iz.fsf@HIDDEN> <87czn63wot.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51404
Cc: salvino@HIDDEN, 51404 <at> debbugs.gnu.org, 47291 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: salvino@HIDDEN,  51404 <at> debbugs.gnu.org,  47291 <at> debbugs.gnu.org
> Date: Fri, 12 Nov 2021 04:00:18 +0100
> 
> > Maybe.  But some expert (which is not me) will have to explain what to
> > do when we receive these messages, or submit patches for that.
> 
> On the Linux side, we convert the messages to input events and then
> react to that event from special-event-map, which seems like a
> reasonable structure.

I mean how to tell what the message wants us to do, i.e. which parts
of the UI to change and in what way.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 12 Nov 2021 03:00:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 11 22:00:43 2021
Received: from localhost ([127.0.0.1]:42746 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mlMny-00074D-Tw
	for submit <at> debbugs.gnu.org; Thu, 11 Nov 2021 22:00:43 -0500
Received: from quimby.gnus.org ([95.216.78.240]:60178)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>)
 id 1mlMnj-00073W-Oc; Thu, 11 Nov 2021 22:00:41 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 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=PTYBUmw8Z7FniTTzeJfyBphpDLoyRK73Gz5KKT0o0qk=; b=iw8PJPNc7aBLoGBdbBqw/QVtS1
 AumCPALCjNtbQrCP7sXI+LWQfoLZ5xNH/tB6/Ot35TZ01NTV4eJYYYFodHh01QKhq4KGn13V/NsN7
 9KCCWvMIpCQAoAbVqENWnG+C6I3Cb9Mr+2EV1a4/ctV12x9qm4iM4rSoJBNesVjUicHY=;
Received: from [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 <larsi@HIDDEN>)
 id 1mlMna-0003N7-Qx; Fri, 12 Nov 2021 04:00:21 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#51404: Support system dark mode on Windows 10
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN>
 <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
 <838ryfyawv.fsf@HIDDEN>
 <CH2PR12MB4231BF93A366641B94D7A636A5849@HIDDEN>
 <CH2PR12MB423138F5C432C2BBF330BC6BA5859@HIDDEN>
 <83r1c5tyar.fsf@HIDDEN> <83a6iqpzrv.fsf@HIDDEN>
 <ddm9cg097co1e4d11e8bh6c6.1635613989653@HIDDEN>
 <83k0huo1iy.fsf@HIDDEN> <87wnlf8d9y.fsf@HIDDEN>
 <83wnlf166j.fsf@HIDDEN> <87wnle6g8o.fsf@HIDDEN>
 <83ee7m20iz.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXf399/foAkJCb/
 //8aMSjyAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+ULDAIxCQtexUAAAAGFSURBVCjPhZLNboJAFIUP
 BIiykkRMOyvTaNLwFEOjXWMiprLqwiZ1noJ20TUuNCkr2ohh7lP2zmDTZWc13z2XOfcH4O+M4KzS
 aOzH4zW8DL6XRojyKDOag+UCqQf4BQGrSEo4G6KcAxyMFR3z0uYVpNexqhu+k2YZ8zxeQyJzNhpI
 sVpyPhKqK1z2Fy35E6JTh8vnyxMLLrWHOQ5EHZcTqBIusg86szJUC6eWMyQHhoHaK8IUQ+PptaKd
 yGnfxFjevamSJFsCAkrrgCounz1vEv0aUGfuEIOwGrmkHiqGrX/LkaOyPrIQQGgrADb0KCEaZUHV
 7yUmTULcCPank0bIQEb55gT3CgkdMziNsMAzyEeD54C4IhAbJJpteyCZkOm+tKCFhcpC5SvJ0PRp
 CA2cLQDBmR/QV8XtemgL84xROtv6Hpgx7Mzy/C33H1Ar7bR2DL6qS2Eg4MX4okBid5chGwZLhBZ2
 rKawSp7zapyvGWI7SLGAJ8cmKeZ53//+PixlI/xzfgA4zIj9xqxzCwAAACV0RVh0ZGF0ZTpjcmVh
 dGUAMjAyMS0xMS0xMlQwMjo0OTowOSswMDowMBA//9wAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEt
 MTEtMTJUMDI6NDk6MDkrMDA6MDBhYkdgAAAAAElFTkSuQmCC
X-Now-Playing: Sonic Youth's _Goo_: "Dirty Boots"
Date: Fri, 12 Nov 2021 04:00:18 +0100
In-Reply-To: <83ee7m20iz.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 11 Nov
 2021 17:08:04 +0200")
Message-ID: <87czn63wot.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: > If that's what people
 want, sure. I'd expect them to want Emacs to go > to dark background on all
 frames. Possibly -- there should probably be a user option, I guess. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 51404
Cc: salvino@HIDDEN, 51404 <at> debbugs.gnu.org, 47291 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

> If that's what people want, sure.  I'd expect them to want Emacs to go
> to dark background on all frames.

Possibly -- there should probably be a user option, I guess.

> Maybe.  But some expert (which is not me) will have to explain what to
> do when we receive these messages, or submit patches for that.

On the Linux side, we convert the messages to input events and then
react to that event from special-event-map, which seems like a
reasonable structure.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 11 Nov 2021 15:08:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 11 10:08:15 2021
Received: from localhost ([127.0.0.1]:41937 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mlBgU-0006pI-QQ
	for submit <at> debbugs.gnu.org; Thu, 11 Nov 2021 10:08:15 -0500
Received: from eggs.gnu.org ([209.51.188.92]:57488)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1mlBgS-0006oy-W3; Thu, 11 Nov 2021 10:08:13 -0500
Received: from [2001:470:142:3::e] (port=56760 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mlBgM-0007VH-Cp; Thu, 11 Nov 2021 10:08:07 -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=Bi9DzzxszVB6DzQl2QhPBI+fVguYZSfHEM/WjOAL138=; b=VCj1P6sEiy5T
 YSYbXFZZM33R9nuqF21XCZPsdGozP9+sp2qHoCZWIIdaHENb+gjoXWZ6ZKIAfVTy9Isxauleg2R5F
 qmBsz+JmJnvV2CsG1fnMvwIiiGvl+pIjnoF8cLeWZbbKL3EtaztypoBBNnJ6TfD94tkbxljCoWZIJ
 wE1poeRluPE1Zv40pC6GkD6hOEcZXn1FeONMCcDXa3j0DKNpkddWzROSxdrS/aq4d4H6HUAl0rdwE
 1QbWyApMX1IVZ+Ej1EyDibuGStkZsikGEXL8vL12uCdFMNt+LNIeo8TRM0UnCMPN2k42rhV+4TSmd
 FYAIqgGqJKqBd2yHQQQCJg==;
Received: from [87.69.77.57] (port=2143 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mlBgL-00071O-RT; Thu, 11 Nov 2021 10:08:06 -0500
Date: Thu, 11 Nov 2021 17:08:04 +0200
Message-Id: <83ee7m20iz.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87wnle6g8o.fsf@HIDDEN> (message from Lars Ingebrigtsen on Thu, 
 11 Nov 2021 13:15:03 +0100)
Subject: Re: bug#51404: Support system dark mode on Windows 10
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN>
 <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
 <838ryfyawv.fsf@HIDDEN>
 <CH2PR12MB4231BF93A366641B94D7A636A5849@HIDDEN>
 <CH2PR12MB423138F5C432C2BBF330BC6BA5859@HIDDEN>
 <83r1c5tyar.fsf@HIDDEN> <83a6iqpzrv.fsf@HIDDEN>
 <ddm9cg097co1e4d11e8bh6c6.1635613989653@HIDDEN>
 <83k0huo1iy.fsf@HIDDEN> <87wnlf8d9y.fsf@HIDDEN>
 <83wnlf166j.fsf@HIDDEN> <87wnle6g8o.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51404
Cc: salvino@HIDDEN, 51404 <at> debbugs.gnu.org, 47291 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: salvino@HIDDEN,  51404 <at> debbugs.gnu.org,  47291 <at> debbugs.gnu.org
> Date: Thu, 11 Nov 2021 13:15:03 +0100
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > I'm not sure unification is possible here, because the functionality
> > is quite different, AFAICT.  At least for the functionality in this
> > bug report, we cannot apply the system theme to an existing frame, we
> > can only apply it at frame creation time.  So having a handler for
> > such changes will be able to affect only the frames created after the
> > change.  Or at least that is my understanding; the code definitely
> > applies the dark/light theme as part of creating a frame.
> 
> Gtk Emacs doesn't respond to dark mode either -- so we have the
> opportunity to decide how to handle these things across the board.
> Perhaps in Gtk Emacs, dynamic-setting-handle-config-changed-event should
> also just set something that will make the next frame creation use
> different colours?

If that's what people want, sure.  I'd expect them to want Emacs to go
to dark background on all frames.

> > Also, having a dynamic thing that tracks changes in these settings
> > would on Windows mean listening and processing a special window-system
> > message, which seems to be WM_THEMECHANGED or maybe WM_SETTINGCHANGE.
> > But that's not what the code installed in this bug report does.
> >
> > So the functionality seems similar, but the details differ.
> 
> But perhaps Windows should be listening to those events, too?

Maybe.  But some expert (which is not me) will have to explain what to
do when we receive these messages, or submit patches for that.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 11 Nov 2021 12:15:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 11 07:15:32 2021
Received: from localhost ([127.0.0.1]:40344 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ml8zM-0007ki-15
	for submit <at> debbugs.gnu.org; Thu, 11 Nov 2021 07:15:32 -0500
Received: from quimby.gnus.org ([95.216.78.240]:53624)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>)
 id 1ml8z3-0007jw-ID; Thu, 11 Nov 2021 07:15:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 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=GP54OdRhE5PVChyqcqHU57Gn/RE/mHzenueTptACiqk=; b=oIX1s7mLR03+ZXsZL5JhzfPlRj
 W8UKQwH/Bxek6BHId76cGvTs9MG8HQuTanbTqaFunrSCTyYLm1iiKBGCwgwF8FyTxNWW+WbK3KN8P
 FpadLexHISXNBkdEWhyUT3sWmcCufuNwWxMZ9/S+b4S1ihMUAsTyR2ePceHiFxSlFtZM=;
Received: from [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 <larsi@HIDDEN>)
 id 1ml8yu-0005Xq-7E; Thu, 11 Nov 2021 13:15:07 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#51404: Support system dark mode on Windows 10
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN>
 <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
 <838ryfyawv.fsf@HIDDEN>
 <CH2PR12MB4231BF93A366641B94D7A636A5849@HIDDEN>
 <CH2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5OjAwKzAwOjAwgbmcCQAAACV0RVh0ZGF0ZTptb2RpZnkA
 MjAyMS0xMS0xMVQxMjowOTowMCswMDowMPDkJLUAAAAASUVORK5CYII=
X-Now-Playing: Hype Williams's _Junt-Deez Ruins You See_: "Infinity"
Date: Thu, 11 Nov 2021 13:15:03 +0100
In-Reply-To: <83wnlf166j.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 11 Nov
 2021 09:51:16 +0200")
Message-ID: <87wnle6g8o.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: > I'm not sure
 unification
 is possible here, because the functionality > is quite different, AFAICT.
 At least for the functionality in this > bug report, we cannot apply the
 system theme to an existin [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 51404
Cc: salvino@HIDDEN, 51404 <at> debbugs.gnu.org, 47291 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

> I'm not sure unification is possible here, because the functionality
> is quite different, AFAICT.  At least for the functionality in this
> bug report, we cannot apply the system theme to an existing frame, we
> can only apply it at frame creation time.  So having a handler for
> such changes will be able to affect only the frames created after the
> change.  Or at least that is my understanding; the code definitely
> applies the dark/light theme as part of creating a frame.

Gtk Emacs doesn't respond to dark mode either -- so we have the
opportunity to decide how to handle these things across the board.
Perhaps in Gtk Emacs, dynamic-setting-handle-config-changed-event should
also just set something that will make the next frame creation use
different colours?

> Also, having a dynamic thing that tracks changes in these settings
> would on Windows mean listening and processing a special window-system
> message, which seems to be WM_THEMECHANGED or maybe WM_SETTINGCHANGE.
> But that's not what the code installed in this bug report does.
>
> So the functionality seems similar, but the details differ.

But perhaps Windows should be listening to those events, too?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 11 Nov 2021 07:51:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 11 02:51:29 2021
Received: from localhost ([127.0.0.1]:40054 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ml4rp-0000KI-1G
	for submit <at> debbugs.gnu.org; Thu, 11 Nov 2021 02:51:29 -0500
Received: from eggs.gnu.org ([209.51.188.92]:37516)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1ml4rl-0000Jw-At; Thu, 11 Nov 2021 02:51:25 -0500
Received: from [2001:470:142:3::e] (port=44676 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ml4rf-0000lW-Pb; Thu, 11 Nov 2021 02:51:19 -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=gJyEuzZTmsxqRlWo3gN/CCJe1XXhDEBWJtg+Sn4tRYo=; b=meeiYWvGJ9z9
 tLy06PmYvrnnqBSv6NoLkmUY8vo+7rLe+UjSxz4IOsNWBHvgYPoA5qKKgKOMZrhVE5U84uhiouQ0A
 ApxGNBqUvpZOSVB2U/6mWjSoJTWqGNvExKjh+etQoJO409w6ND7cIB/DwYRU8ocJyEM8Yi9dwXXUu
 Usss4ut7I6P03rdo6TEaYAsBXKhcWKcT0zyH7+K7MpK1CRy0hiqK6EkInOpiHnV2NumQRQ7n5no8b
 Kabmho6p0u8Gvfni5cXy+Yt2+/+FbHe92n8Wg4YgKmMsG+LtWL72YqgkxKsGA2y4L70A2vDK1I5X+
 fyV8+CCqBWfxlKTTIyA4EQ==;
Received: from [87.69.77.57] (port=3193 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ml4rf-0008OV-BL; Thu, 11 Nov 2021 02:51:19 -0500
Date: Thu, 11 Nov 2021 09:51:16 +0200
Message-Id: <83wnlf166j.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87wnlf8d9y.fsf@HIDDEN> (message from Lars Ingebrigtsen on Thu, 
 11 Nov 2021 06:36:09 +0100)
Subject: Re: bug#51404: Support system dark mode on Windows 10
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN>
 <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
 <838ryfyawv.fsf@HIDDEN>
 <CH2PR12MB4231BF93A366641B94D7A636A5849@HIDDEN>
 <CH2PR12MB423138F5C432C2BBF330BC6BA5859@HIDDEN>
 <83r1c5tyar.fsf@HIDDEN> <83a6iqpzrv.fsf@HIDDEN>
 <ddm9cg097co1e4d11e8bh6c6.1635613989653@HIDDEN>
 <83k0huo1iy.fsf@HIDDEN> <87wnlf8d9y.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51404
Cc: salvino@HIDDEN, 51404 <at> debbugs.gnu.org, 47291 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: Vince Salvino <salvino@HIDDEN>,  51404 <at> debbugs.gnu.org,
>  47291 <at> debbugs.gnu.org
> Date: Thu, 11 Nov 2021 06:36:09 +0100
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > I'm not sure I understand why 'light' necessarily means the old
> > behavior: we didn't set any theme before this change, we just used the
> > Windows default.  So maybe there should be 4 values:
> >
> >   nil: never follow the system theme (use Windows default)
> >   t: always follow the system theme
> >   light: force light theme (currently the same as nil)
> >   dark: force dark theme.
> 
> For a similar bug report, see bug#47291.  And we really should support
> this on GNU/Linux, too, so having three different methods to support
> this seems sub-optimal.

I'm not sure unification is possible here, because the functionality
is quite different, AFAICT.  At least for the functionality in this
bug report, we cannot apply the system theme to an existing frame, we
can only apply it at frame creation time.  So having a handler for
such changes will be able to affect only the frames created after the
change.  Or at least that is my understanding; the code definitely
applies the dark/light theme as part of creating a frame.

Also, having a dynamic thing that tracks changes in these settings
would on Windows mean listening and processing a special window-system
message, which seems to be WM_THEMECHANGED or maybe WM_SETTINGCHANGE.
But that's not what the code installed in this bug report does.

So the functionality seems similar, but the details differ.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 11 Nov 2021 05:36:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 11 00:36:24 2021
Received: from localhost ([127.0.0.1]:39877 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ml2l5-0004Mv-Ox
	for submit <at> debbugs.gnu.org; Thu, 11 Nov 2021 00:36:24 -0500
Received: from quimby.gnus.org ([95.216.78.240]:50206)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>)
 id 1ml2l2-0004MY-NG; Thu, 11 Nov 2021 00:36:21 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 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=mzjntn0LwIWCNzk4cYH++LOQharC2AAiBkT2W6+tp1Q=; b=u5fp25xI3tKkJYi73d3rPITLoQ
 iRWtHX3oFTWw89jHamnfZcbR3SfW24UGWaOt4sjIujP7J1mAzPdikNZeaLNLZinaHZ1lbVkAumSUM
 RONkkXvTuOCOmjAa9lbVn5EDTtVCWXJ/Lf+TSw1qHZeDPj26PQww5oH9OJN7Wn+dky1Q=;
Received: from [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 <larsi@HIDDEN>)
 id 1ml2kt-0002j9-NN; Thu, 11 Nov 2021 06:36:14 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#51404: Support system dark mode on Windows 10
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN>
 <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
 <838ryfyawv.fsf@HIDDEN>
 <CH2PR12MB4231BF93A366641B94D7A636A5849@HIDDEN>
 <CH2PR12MB423138F5C432C2BBF330BC6BA5859@HIDDEN>
 <83r1c5tyar.fsf@HIDDEN> <83a6iqpzrv.fsf@HIDDEN>
 <ddm9cg097co1e4d11e8bh6c6.1635613989653@HIDDEN>
 <83k0huo1iy.fsf@HIDDEN>
X-Now-Playing: King Crimson's _The Complete 1969 Recordings (26): BBC
 Sessions_: "Trees"
Date: Thu, 11 Nov 2021 06:36:09 +0100
In-Reply-To: <83k0huo1iy.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 30 Oct
 2021 20:39:17 +0300")
Message-ID: <87wnlf8d9y.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: > I'm not sure I
 understand
 why 'light' necessarily means the old > behavior: we didn't set any theme
 before this change, we just used the > Windows default. So maybe there should
 be 4 values: > > nil [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51404
Cc: Vince Salvino <salvino@HIDDEN>, 51404 <at> debbugs.gnu.org,
 47291 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

> I'm not sure I understand why 'light' necessarily means the old
> behavior: we didn't set any theme before this change, we just used the
> Windows default.  So maybe there should be 4 values:
>
>   nil: never follow the system theme (use Windows default)
>   t: always follow the system theme
>   light: force light theme (currently the same as nil)
>   dark: force dark theme.

For a similar bug report, see bug#47291.  And we really should support
this on GNU/Linux, too, so having three different methods to support
this seems sub-optimal.

dynamic-setting.el seems like the most likely place to centralise all
this, I think?  I've had a look at what happens when you change the
theme in Gnome, and dynamic-setting-handle-config-changed-event gets
called with an

 (config-changed-event theme-name ":1")

event.  (But not what the event name is -- anybody know how to get at
that?)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 30 Oct 2021 17:39:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 30 13:39:39 2021
Received: from localhost ([127.0.0.1]:58437 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mgsKR-0005NP-EZ
	for submit <at> debbugs.gnu.org; Sat, 30 Oct 2021 13:39:39 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35770)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1mgsKP-0005NA-P6
 for 51404 <at> debbugs.gnu.org; Sat, 30 Oct 2021 13:39:38 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:58976)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mgsKI-0007xt-LF; Sat, 30 Oct 2021 13:39:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=MlGH5S5MW70Bd7hSYQ89LC0wpbEDx9vZeEZbgQkFMwQ=; b=ja+NSrbjYRh2KEDDFQk+
 oasoC1t77MpZfkEJvMAAKReB9mcCbFAir4/9bN3/zQchW0lr5nFq8DGDfvTPSUSf0PsGEeXTT5ExC
 +Yn7Ywm63KoFi6MiBZw+toYv0/On1d/Q+5PL2mm0hZIbUJ5oD0qEwaTnmPTKtCaVyMo5jg6F6uAbW
 REGWWy1Nc0x2K9exfLtALCK27yBmy637r/5KRxRLilWyySwUjUdtLvZFSX69REYRUvi4Q4MxQzogO
 LCyhQqfMH59T4xsEbZiR2xQpiXBXgx4AxKTC6pJjn5ovAYrbgFPgtq1B1M+kdOiWhS2GlqTVz0Vil
 kbWPH5TKhtGHzQ==;
Received: from [87.69.77.57] (port=3561 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mgsKH-0005Z1-Ni; Sat, 30 Oct 2021 13:39:30 -0400
Date: Sat, 30 Oct 2021 20:39:17 +0300
Message-Id: <83k0huo1iy.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Vince Salvino <salvino@HIDDEN>
In-Reply-To: <ddm9cg097co1e4d11e8bh6c6.1635613989653@HIDDEN> (message
 from Vince Salvino on Sat, 30 Oct 2021 17:13:13 +0000)
Subject: Re: bug#51404: Support system dark mode on Windows 10
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN>
 <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
 <838ryfyawv.fsf@HIDDEN>
 <CH2PR12MB4231BF93A366641B94D7A636A5849@HIDDEN>
 <CH2PR12MB423138F5C432C2BBF330BC6BA5859@HIDDEN>
 <83r1c5tyar.fsf@HIDDEN> <83a6iqpzrv.fsf@HIDDEN>
 <ddm9cg097co1e4d11e8bh6c6.1635613989653@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51404
Cc: 51404 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Vince Salvino <salvino@HIDDEN>
> CC: "51404 <at> debbugs.gnu.org" <51404 <at> debbugs.gnu.org>
> Date: Sat, 30 Oct 2021 17:13:13 +0000
> 
>  > define a variable exposed to Lisp using DEFVAR_BOOL; let's call it w32-follow-system-theme
> 
> My thought would be to give the user a bit more control. Rather than saying to follow system theme or not, perhaps they could choose from 3 values: follow theme, light, or dark, e.g.:
> 
> w32-system-theme:
> * nil: follow system theme (default)
> * light: force light mode (the old behavior)
> * dark: force dark mode

I'm not sure I understand why 'light' necessarily means the old
behavior: we didn't set any theme before this change, we just used the
Windows default.  So maybe there should be 4 values:

  nil: never follow the system theme (use Windows default)
  t: always follow the system theme
  light: force light theme (currently the same as nil)
  dark: force dark theme.

> Second, could you provide an existing value from early-init that I
> could follow as an example?

early-init is a file, called literally "early-init.el".  If you have
such a file in your ~/.emacs.d/ directory, Emacs will load it early on
during the startup.

> (I never knew early init was a thing, so I am going to research this - it will probably make my personal init customization a lot better too!)

The recommendation is to move to early-init.el only stuff that cannot
work in the normal init file.  That's because early-init is processed
when some of the infrastructure is not yet set up, so things could
fail there that will work correctly in the init file.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 30 Oct 2021 17:13:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 30 13:13:23 2021
Received: from localhost ([127.0.0.1]:58369 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mgrv1-0004ae-KN
	for submit <at> debbugs.gnu.org; Sat, 30 Oct 2021 13:13:23 -0400
Received: from mail-co1nam11on2080.outbound.protection.outlook.com
 ([40.107.220.80]:3296 helo=NAM11-CO1-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <salvino@HIDDEN>) id 1mgrv0-0004aQ-5Y
 for 51404 <at> debbugs.gnu.org; Sat, 30 Oct 2021 13:13:22 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=ZcmcTEBOMgNhativsPU2dkeUzg0sGXGpzjLu0w/1qpmBtE3GlZOcmP8sN60x5UHN0enauaCT9uYyu2ctLGIbLlFP5jqg6VSaHBz4wUlzConC6EChJBqhUE6DUIRiy5t7ln3j5fdmBSwa7r77mzd8QzgYOLDMnXJFSEy94zB9tM17xrSbeOF38FJIPDxpGSV1+4jr8r0zg84y13mf03rO1GU9yCtAnRBDvwy0LdNJ9AH3CUhH9gwVPh1LJPZJct6qqXgdDrDQzlnJ8NjYUXCxBIcUCFKD930HA/dADPPvJCPMRjLlHHxoCud2KXAxjamqZbfyX1Ry5d1XPgiLeVW3NQ==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=yaHnjaBZWGQz+pj32aRrz29jkN1m1oeDQQyeuqy5ybI=;
 b=BYnDfL3XCbnfCgg8Q6kUMvL4J+K6ATdXuIh7LSS8IjJ8lSMxKco+NUT4vEjNU7v2ixTPMVxmyOQ9Jsiyp/JairFgF8FLswLnc+sTMyWLxrbxELxUiDbzD1DAFi886WI0Hix2Nnd17n8nh5js1g0x+wiQTrz0hwf+6uLI/JOMbTBrbg5SEaTe5vK1ffdP2oatZkPoFDEpsbzRDDKrUzeFv+C2srp8vVBHBASCzxp2KG0pwmNhn5SzEuV26ihlOE5x4nicbuNuvVEg66gO5gX004foPC6hZeSEAAftPP7Uaige5y/N2ZWMn8bwF6vFcj7UINwnTUeSlbRypT8zobBNSQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=coderedcorp.com; dmarc=pass action=none
 header.from=coderedcorp.com; dkim=pass header.d=coderedcorp.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coderedcorp.com;
 s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=yaHnjaBZWGQz+pj32aRrz29jkN1m1oeDQQyeuqy5ybI=;
 b=D6Wmdj9ZrRBX/q3uBprsASH8stMtvG3DnqtL+m+y9XaCYqXsx1z2h36fee0sY28bYTLFOs+LjaxX7VnUxqBBJXYqU0NK0aL/tXbSY77JwOcheqzL5aI8V6Ikgfq1PN7m7U+ugfJ0fTH0aXJbD3GnUalqHyMN5tZert8GlzLkxBw=
Received: from CH2PR12MB4231.namprd12.prod.outlook.com (2603:10b6:610:7d::24)
 by CH2PR12MB3733.namprd12.prod.outlook.com (2603:10b6:610:15::14)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Sat, 30 Oct
 2021 17:13:13 +0000
Received: from CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::55e4:7d22:a6df:970b]) by CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::55e4:7d22:a6df:970b%5]) with mapi id 15.20.4649.018; Sat, 30 Oct 2021
 17:13:13 +0000
From: Vince Salvino <salvino@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#51404: Support system dark mode on Windows 10
Thread-Topic: bug#51404: Support system dark mode on Windows 10
Thread-Index: AdfKJC1fFkosmLKeRpu5RIGxKoA2egATeE0VAAVMuSAAARwnVAACGfogADmStWAAFE6XhABrhkosAA3s1gA=
Date: Sat, 30 Oct 2021 17:13:13 +0000
Message-ID: <ddm9cg097co1e4d11e8bh6c6.1635613989653@HIDDEN>
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN>
 <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
 <838ryfyawv.fsf@HIDDEN>
 <CH2PR12MB4231BF93A366641B94D7A636A5849@HIDDEN>
 <CH2PR12MB423138F5C432C2BBF330BC6BA5859@HIDDEN>
 <83r1c5tyar.fsf@HIDDEN> <83a6iqpzrv.fsf@HIDDEN>
In-Reply-To: <83a6iqpzrv.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: gnu.org; dkim=none (message not signed)
 header.d=none;gnu.org; dmarc=none action=none header.from=coderedcorp.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 1c30ff36-555b-4dc2-6ce9-08d99bc88e78
x-ms-traffictypediagnostic: CH2PR12MB3733:
x-microsoft-antispam-prvs: <CH2PR12MB37337D79823CEB5BF10E0998A5889@HIDDEN>
x-ms-oob-tlc-oobclassifiers: OLM:8273;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: LpBOfgj9nHVoTie/1LdtkZR+d026vuCKfT7/nVjX1+s6lNFo8j3MYib0RXwIee8gNACwFc7z9c5TSqTF1ahLG7B9l++fqARm0+aN1Kp+u12r5elqflFeOSuC8t3aBwyCiOk5VW0wsa8XkbLpvXI0qQ32JHKS7h5dqHYPIl2OE3gjNE8TZ5Dikb1pdrDt3F+Rg4NQtZv1sebzt7h1pkozTqJ5WdqI+iyXW82c1Kd2xnechu8YdeniKDPGxizSKIEv28opQbRsNIZG2w1AZz7zxZ9Nl9V6+EGCOVECdyo9jjUrbz+V0LMhIPIxWnobN/RII2quYwla68P+imf4Ev2O9ZRpo/xqzvOz3g0l0xVtv4xjoFfn7iZFDCKGYJeAGRW2G7FtsX8YRaxmj526N5H6uxziiCO+v9LdrrL3CuyUDYnjwKpMl+enmiRY1y4FvJlLjrBGaGSMPR64npuDW53i6Z+A0GTx44890dR+lJKuI7UYo3uKKfRGzXXxtoo7anj2CvxhBJjYcPY/0+VPyH1MPk3fs8+TNSf/7E3gGigpfbPyNQc9JERN36Rg9TsQIxuO88MUHEYhs0H3g6ObBN6HE7BxMtnm40S20+V2fFSBmAKmFJ6TUADO4vQgIp9CJx0XKCmrupmALubLkPG3Hfiw+Ab/6cMhDfmWvtkFWG/0sBJBso39Br/Nsy6wDlSg7fV5WHzeotzXcHOWRsF2nMICsw==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:CH2PR12MB4231.namprd12.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(366004)(39830400003)(136003)(396003)(376002)(346002)(6512007)(8936002)(71200400001)(36756003)(2616005)(4326008)(6506007)(8676002)(6486002)(86362001)(4744005)(64756008)(38070700005)(508600001)(2906002)(5660300002)(38100700002)(66946007)(122000001)(316002)(6916009)(66446008)(76116006)(26005)(66476007)(186003)(66556008);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?utf-8?B?QS9JZjJadXFSM3NXVTN3YmJKNG1yY29pSXlWT29Kbnc3QnlqOWo3WUluMVU0?=
 =?utf-8?B?OTJBYlB0Zlpub29xb1V4YitRQkUzQ2ZlUExlb0J5K0xVV0tpejBPaU9YK2I0?=
 =?utf-8?B?bXNrYW5OYVNTSk91anphS1YrVFJ4S2J6THE4UW5kRkFXN1VjSTJzL2FKcGNx?=
 =?utf-8?B?dDhsUi9yVEdUa21FZDEwNDNOc2RIeEFBS205MEhKRFFHT0FaSm5GS0RGQ1hH?=
 =?utf-8?B?SlRUUTJQdE5IeU5MdEsvcUM3OER6d0U4OVVrbHN6SzRCTmxTNE5ZcFgvSmFk?=
 =?utf-8?B?dXZMNHVRZjVKWW96YjQwNzFNUVJseDNSS0FiTVpqdk5DbHBzRjFzV2lFeGZG?=
 =?utf-8?B?WlNGL0J3TEZHdW5uNENwMmpTRDBkYXQ2MTRIRmZkU0tEN05COU8vbFNnM2F1?=
 =?utf-8?B?UjN0M1p4RVVMTUtpaFFIQkJna2RiejJHTHhKcXpFQitPV2pac0cramNqaGxt?=
 =?utf-8?B?LzB6SlJ2Q0ZWdG9jdStsVW16VHVzZVJoQnljMmZBWWlIblo3R3QyV2psOUZa?=
 =?utf-8?B?dW5DTVVYYW9ROTZuRzk5dGhWVjMxTXVJRytBVHYwSldzQnpMdWFUTzBRc0NB?=
 =?utf-8?B?K3I1TDhmdE5GaHBwOWhkRUFYOVZaeEo1cUt6b29FNUZ6Q21UdWwraVpiTzZv?=
 =?utf-8?B?N2VLckF0Z3pYa3R0OFJQaWRPZEdoRmpwY0lDWmpaTXZhMHRxZFEybWV2Z05K?=
 =?utf-8?B?cDJsU0NSZThrbF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TG9Rb0pKZTg2T1U4?=
 =?utf-8?B?NW1kRmVnV200anI2V1haMTdzVUVwYTNwNUpyVW04STNlZjUvSjl2WjZjVkVo?=
 =?utf-8?B?Nkd6QWk4amFGRnMrTU5VNUxEbC9ITkl2TlJoTlEzZFd4MC8xUEROaFFPYjli?=
 =?utf-8?B?VmZFSHVQMDB3b3B2RER5L1EyNVhSNzY5NDdnRUdJMHRIWGMxWTRkZHdIWUtz?=
 =?utf-8?B?NU50UnNGNzB4NUlTWE9kMk5rMXYvYVV2OSt2ajRNV2ZIdXpVc3YveXdwVndX?=
 =?utf-8?B?eVppbzMwanMyYll1WnoyZ2IvSmp2ekJxSFA0YitYWHNGZFZVenlFN1UvSm1S?=
 =?utf-8?B?RG0xTlpuM3AwMGVrQzZmY2pWMklldyt4SFhOcno1Z1VKdXNzK0t5YytocHEz?=
 =?utf-8?B?c3FDZENQNVhUcWVxM1R1VVZkd1JNeHZCL0NZVkhpNXJPODJZeVdTWVJFOGNh?=
 =?utf-8?B?aFVpbFlRTHhOMlhLZHAyUS8yMlV3VXBTWGIyQWxZNkRJcy9UTnoyd2lpWXJ5?=
 =?utf-8?B?b2g2QXd3ekVSY0JqN1ZaS0FabEV4STRxM3M0MVZPR1pxVjh5c1ZJa1c1bHpv?=
 =?utf-8?Q?pjRsN5X4X15GutZGWhgcNIc=3D?=
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: coderedcorp.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4231.namprd12.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 1c30ff36-555b-4dc2-6ce9-08d99bc88e78
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Oct 2021 17:13:13.3765 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 9c94adb1-2ce8-484f-be82-c9b5127d4cb1
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: owZJ62vf/pt0h4MKmjiWWd/8Y2XrVDYD27ztuDCKU4JVT9JYMuqsUEtoqh0VxET3Xnzc8WbjdqntlMKDRlysVA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB3733
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 51404
Cc: "51404 <at> debbugs.gnu.org" <51404 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

wqA+IGRlZmluZSBhIHZhcmlhYmxlIGV4cG9zZWQgdG8gTGlzcCB1c2luZyBERUZWQVJfQk9PTDsg
bGV0J3MgY2FsbCBpdMKgdzMyLWZvbGxvdy1zeXN0ZW0tdGhlbWUKCk15IHRob3VnaHQgd291bGQg
YmUgdG8gZ2l2ZSB0aGUgdXNlciBhIGJpdCBtb3JlIGNvbnRyb2wuIFJhdGhlciB0aGFuIHNheWlu
ZyB0byBmb2xsb3cgc3lzdGVtIHRoZW1lIG9yIG5vdCwgcGVyaGFwcyB0aGV5IGNvdWxkIGNob29z
ZSBmcm9tIDMgdmFsdWVzOiBmb2xsb3cgdGhlbWUsIGxpZ2h0LCBvciBkYXJrLCBlLmcuOgoKdzMy
LXN5c3RlbS10aGVtZToKKiBuaWw6IGZvbGxvdyBzeXN0ZW0gdGhlbWUgKGRlZmF1bHQpCiogbGln
aHQ6IGZvcmNlIGxpZ2h0IG1vZGUgKHRoZSBvbGQgYmVoYXZpb3IpCiogZGFyazogZm9yY2UgZGFy
ayBtb2RlCgpTZWNvbmQsIGNvdWxkIHlvdSBwcm92aWRlIGFuIGV4aXN0aW5nIHZhbHVlIGZyb20g
ZWFybHktaW5pdCB0aGF0IEkgY291bGQgZm9sbG93IGFzIGFuIGV4YW1wbGU/IChJIG5ldmVyIGtu
ZXcgZWFybHkgaW5pdCB3YXMgYSB0aGluZywgc28gSSBhbSBnb2luZyB0byByZXNlYXJjaCB0aGlz
IC0gaXQgd2lsbCBwcm9iYWJseSBtYWtlIG15IHBlcnNvbmFsIGluaXQgY3VzdG9taXphdGlvbiBh
IGxvdCBiZXR0ZXIgdG9vISkKClZpbmNlIFNhbHZpbm8=




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 30 Oct 2021 10:34:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 30 06:34:35 2021
Received: from localhost ([127.0.0.1]:56698 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mglh4-0002MO-T3
	for submit <at> debbugs.gnu.org; Sat, 30 Oct 2021 06:34:35 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53532)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1mglh0-0002M6-LW
 for 51404 <at> debbugs.gnu.org; Sat, 30 Oct 2021 06:34:33 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:49874)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mglgu-0007Ld-Sy; Sat, 30 Oct 2021 06:34:25 -0400
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=z7UNLMFNsRInpla7uQ88OznF9QbnYxJoBI3R4fb8c3E=; b=PLJ3dfCltQlO
 Sqtsn8lA+wNsy+/xQFG4/UldUkFZ4xpA95hQq1PLf1ge9PmRpcCYeN08CK/Fhq5N8YSgnj9tJAMUR
 E7MCKNkx4WYkbOW6tPBHK2ry5WU7Z/b1dNlu741NA9ukwEZibGfM3IzT4Fv6mHVMuCcY0Ao16Lleb
 BcbfREB6NwNBPoZZ6VDrc3Bi/RzFT0sdbpenFulKJcQwfCWeEloXZ8mdwwkfJdsDB+dT0E78bLKEY
 cfPz7W2LkzlBqLmz1fZOEJI77q3sDh10MWd5kCOLv1HIh0cHeAS8pilrFRt4Cwru+EHZre2P4THMU
 XJjFsl7ulFfUTxxLyv+otg==;
Received: from [87.69.77.57] (port=4685 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mglgu-0000dM-DY; Sat, 30 Oct 2021 06:34:24 -0400
Date: Sat, 30 Oct 2021 13:34:12 +0300
Message-Id: <83a6iqpzrv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: salvino@HIDDEN
In-Reply-To: <83r1c5tyar.fsf@HIDDEN> (message from Eli Zaretskii on Thu, 28
 Oct 2021 10:15:40 +0300)
Subject: Re: bug#51404: Support system dark mode on Windows 10
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN>
 <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
 <838ryfyawv.fsf@HIDDEN>
 <CH2PR12MB4231BF93A366641B94D7A636A5849@HIDDEN>
 <CH2PR12MB423138F5C432C2BBF330BC6BA5859@HIDDEN>
 <83r1c5tyar.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51404
Cc: 51404 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Thu, 28 Oct 2021 10:15:40 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> Cc: 51404 <at> debbugs.gnu.org
> 
> > From: Vince Salvino <salvino@HIDDEN>
> > CC: "51404 <at> debbugs.gnu.org" <51404 <at> debbugs.gnu.org>
> > Date: Wed, 27 Oct 2021 21:41:05 +0000
> > 
> > Update: I managed to get my hands on an 1809 system and was able to get dark mode working there as well. As far as I can tell 1809 is the absolute minimum as that is when this setting and dark mode Explorer were introduced into Windows.
> > 
> > The advantage is that this will now work on Windows Server 2019 and Windows LTSC 2019, which some folks may be limited to as those are the latest Server and LTSC releases.
> > 
> > Attached patch includes the complete change, with relevant notes etc.
> 
> Thanks.  Your legal paperwork also came through, so I will be
> installing this soon.

Now done, with a few minor adaptations to our style conventions.

Please in the future accompany your changes with ChangeLog-style
commit log messages, as described in CONTRIBUTE.  (I added those for
you in this case.)

Can we now please implement the Emacs-specific user setting that will
allow users to opt in or out of this feature?  Here's what I suggest:

  . define a variable exposed to Lisp using DEFVAR_BOOL; let's call it
    w32-follow-system-theme
  . move the determination of w32_darkmode from globals_of_w32fns to
    w32_term_init, and make it depend on the value of
    w32-follow-system-theme: only set w32_darkmode if the variable is
    non-zero
  . document that users can customize w32-follow-system-theme in their
    early-init file (which is processed before window-system
    initialization that calls x-open-connection)

WDYT?

(Let me know if you need help in making any of the above happen.)

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 28 Oct 2021 07:15:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 28 03:15:48 2021
Received: from localhost ([127.0.0.1]:51210 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mfzdc-00023q-DK
	for submit <at> debbugs.gnu.org; Thu, 28 Oct 2021 03:15:48 -0400
Received: from eggs.gnu.org ([209.51.188.92]:52088)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1mfzda-00023a-9t
 for 51404 <at> debbugs.gnu.org; Thu, 28 Oct 2021 03:15:46 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:39534)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mfzdT-0000tc-Uo; Thu, 28 Oct 2021 03:15:40 -0400
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=s1PIvVbY4fhiz9a4eknRZmYpe0+nTeaghXNa//NEWoQ=; b=Wysjzj7oKwSR
 i5+Fzwy+feWsuHWibuCdlmWF7yUmt/lJNQbaOtLq0vcBTWUFgsB06FFQKcwjfY76cjfeSFqOEOpP+
 1sjvjBImQvpYV97zJEsNI4ZeG9yTqOT/fOXLoxF+qRRVi4MyGjJgV8yYPuIFjRyaA6E12PltdXlDK
 oA//vbJiCIBFg/vrWoWDkbS3pN7hPu9vyB9dGjDC5KAe4T4Zsn8ffWUD+jQsH4mRxVeLDIflNnzb0
 FDym7hPCPuYwPx/MKtCNudDRAC7eof6joGnjcmrfJFJfJr4b7owzHnihavHrGfBH8PDCWfblS1Hyl
 u5emHl5DAs0HwMILOoxzRw==;
Received: from [87.69.77.57] (port=2661 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mfzdT-0008BT-Fw; Thu, 28 Oct 2021 03:15:39 -0400
Date: Thu, 28 Oct 2021 10:15:40 +0300
Message-Id: <83r1c5tyar.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Vince Salvino <salvino@HIDDEN>
In-Reply-To: <CH2PR12MB423138F5C432C2BBF330BC6BA5859@HIDDEN>
 (message from Vince Salvino on Wed, 27 Oct 2021 21:41:05 +0000)
Subject: Re: bug#51404: Support system dark mode on Windows 10
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN>
 <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
 <838ryfyawv.fsf@HIDDEN>
 <CH2PR12MB4231BF93A366641B94D7A636A5849@HIDDEN>
 <CH2PR12MB423138F5C432C2BBF330BC6BA5859@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51404
Cc: 51404 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Vince Salvino <salvino@HIDDEN>
> CC: "51404 <at> debbugs.gnu.org" <51404 <at> debbugs.gnu.org>
> Date: Wed, 27 Oct 2021 21:41:05 +0000
> 
> Update: I managed to get my hands on an 1809 system and was able to get dark mode working there as well. As far as I can tell 1809 is the absolute minimum as that is when this setting and dark mode Explorer were introduced into Windows.
> 
> The advantage is that this will now work on Windows Server 2019 and Windows LTSC 2019, which some folks may be limited to as those are the latest Server and LTSC releases.
> 
> Attached patch includes the complete change, with relevant notes etc.

Thanks.  Your legal paperwork also came through, so I will be
installing this soon.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 27 Oct 2021 21:41:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 27 17:41:17 2021
Received: from localhost ([127.0.0.1]:50735 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mfqfc-0007i3-Tg
	for submit <at> debbugs.gnu.org; Wed, 27 Oct 2021 17:41:17 -0400
Received: from mail-bn8nam12on2084.outbound.protection.outlook.com
 ([40.107.237.84]:17761 helo=NAM12-BN8-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <salvino@HIDDEN>) id 1mfqfa-0007hj-41
 for 51404 <at> debbugs.gnu.org; Wed, 27 Oct 2021 17:41:15 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=RlS7kdsVvnaYRwdE7pmnmV5/SqXb/7skcA4ILrtasTNUhI2ppcy9MyZxpYk67lrru7JJzish8vDukuwHvERJl0vLj/qU+Q8DYybN+vtvg9oCsXP3KLftQooyaLbz3GtEiSHhFUnxhuSoRQCvY9aCRO66CYRhAjaFEwliWK8Fp3VnnJF7jbimRlOIlfm+yjDjkbcqebLuEus63+Gd6sXoYEiy6BEsV8OkaKAaala8PWgDS0bpH6b1lLVXht4QpbZTa4RZ5wxqm5oYvy1EnUFrEZ5E/PW63H8JpY0fqWXIfyKJnSqrITpawddbB4v9qT64Yk8hs8nmvU0sxC7y30IwPg==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=Rd+GxbLR/nYY52lk6QQhnb/vCFkgMTd5R+2DDj8HOFE=;
 b=e9lVOfKXXbqf9flrjF0qx6wbFW+wn7okJUOoTJcbP6DpWDAUKr1s07kUz4cyVaQwpUmdC7IE17Bn4jdBnhix+BYYz66jc9IL3XQPjPPi4teSD30T5RMZmLtbqjO0lHDW3WRaF3VXV9AEclTGZxa994yqtgUpceKsqK98gHd/dpqRqRQg4q7ek4R7JG1ZSwoFWuhhxNfddpmf+EMjLOehNiybyVpDxb8PANcUtIAfwhJeo/o3fwoK7a3SfnmJdNpBLbrZtDISYYaizCmyKlTjKjN5g4/VE8gUL5iB/AeyCjtrpqgXSmRfv4VDEX+sPHPhpkStHqhQR5Ulz5vo5k0n5w==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=coderedcorp.com; dmarc=pass action=none
 header.from=coderedcorp.com; dkim=pass header.d=coderedcorp.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coderedcorp.com;
 s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=Rd+GxbLR/nYY52lk6QQhnb/vCFkgMTd5R+2DDj8HOFE=;
 b=s6pesNRGETHkgl3uvs2aIqZC3vdwhSfjtFOioOxMGLAcZmEH6JuOst+DlS0n7y1TiPlrFw0Z2RhPthAQ2uencupt/zVuwVLFBcLfCDRkKnFfSzC6jHsXheANA8yPoKmrbXXBaaf/auXvw/XgQGlJgUlYztJ3VAKC278guMObBKM=
Received: from CH2PR12MB4231.namprd12.prod.outlook.com (2603:10b6:610:7d::24)
 by CH2PR12MB3829.namprd12.prod.outlook.com (2603:10b6:610:2c::18)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14; Wed, 27 Oct
 2021 21:41:06 +0000
Received: from CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::55e4:7d22:a6df:970b]) by CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::55e4:7d22:a6df:970b%5]) with mapi id 15.20.4649.014; Wed, 27 Oct 2021
 21:41:05 +0000
From: Vince Salvino <salvino@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: RE: bug#51404: Support system dark mode on Windows 10
Thread-Topic: bug#51404: Support system dark mode on Windows 10
Thread-Index: AdfKJC1fFkosmLKeRpu5RIGxKoA2egATeE0VAAVMuSAAARwnVAACGfogADmStWA=
Date: Wed, 27 Oct 2021 21:41:05 +0000
Message-ID: <CH2PR12MB423138F5C432C2BBF330BC6BA5859@HIDDEN>
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN>
 <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
 <838ryfyawv.fsf@HIDDEN>
 <CH2PR12MB4231BF93A366641B94D7A636A5849@HIDDEN>
In-Reply-To: <CH2PR12MB4231BF93A366641B94D7A636A5849@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
authentication-results: gnu.org; dkim=none (message not signed)
 header.d=none;gnu.org; dmarc=none action=none header.from=coderedcorp.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: f5d5bc65-216f-4e09-7885-08d999927b21
x-ms-traffictypediagnostic: CH2PR12MB3829:
x-microsoft-antispam-prvs: <CH2PR12MB3829C09E878361DA4FCCAE7FA5859@HIDDEN>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: MEjFKDryO0130w4JwoyIsIpOggi5EWrfSbo5yylSJ2tCH5kbbzJoq/FOsmzd8hy8+hpi7zi+H9nOddKIUh9wswRcb7yyAxA9y2bbiQaGvoxlFpFhIF3EHqHueZrrvCCgI59l9J+AbM0cEGDYYtGzf6/yyX9jdjEDybCx4JvHH5U+2icScTwo7AXKA/4Uam8DyHQfx/D6N179bgjjk30UzCBOtPj75ImNeXyMI9FkUzqmQPR4xuD3nSmdDiifaBzaMjd7ghhFye4cVajzS6zm2m6xPujbwlKziYmW6pGjsC3G7vJg4lXQiny4BH3aFN53aWzqQpx543sB524c07cTNVktqecWY66QffgM/4uCPnF5L+YxmlfOQ8IbtaYLFS1fEwkEgMR9/yVW+9xxxWM7b5szqLtRomHh6Ka44Han5bhG5EFtadcTDQ99lgD9yBkGC7Fi73YUODuryw4kUvMLr+zRdLYNX7Y04HCddEXpbomoUqHE6onafghrJt+OwyxEJCMEGbJiCHRW6XhhIEXPOJNAbr6DhtsXaav8iy+mkiws7z6DuyXcEydLUHVGXXdbAwEW+mpNRGhrTN+vrv8LYrlFLyF2sCD/lsqB+4tNbrW7fDeNeDikD/lg08lC1K2oYVnDwGoWM2107zOCgz7AcsJscs/hN+BAtOxYH8NR6+rkmILFaAUvv4CQtLpawCaLNpHDsCWfVXOacsotCY34pQ==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:CH2PR12MB4231.namprd12.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(346002)(396003)(366004)(136003)(39830400003)(376002)(186003)(26005)(52536014)(2906002)(38070700005)(316002)(5660300002)(55016002)(4326008)(71200400001)(86362001)(4744005)(508600001)(122000001)(9686003)(38100700002)(33656002)(8936002)(76116006)(8676002)(6916009)(6506007)(7696005)(99936003)(83380400001)(66476007)(66556008)(66446008)(64756008)(66946007);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?PeexX7SW031/fM1+yUD/mZVAwgaF0Qu1ck2KXcTo8iFT2C4hI79TLjxB6rjY?=
 =?us-ascii?Q?RrzTivqZMmuCZuxYoXdFX2g4TCTqMr/bdXR0WxYA4ZTcji2z/Ticojzt1bvI?=
 =?us-ascii?Q?r0XeAgACsk0bUxIKL7rxdLEjk6NHiP0WxiCp3+ckBsbMosLEfBwBEv9LTwS0?=
 =?us-ascii?Q?qW4gdlIzI3ZNMHiz4fcBxucgLFW751R8JUWfP6x0houysn/yt7e84BzXWvWU?=
 =?us-ascii?Q?s40FVUZtBBZ5+KWTLErPfVPlIPPBxPQwxkP8teQ5QAnOziUDEQ9aBzRuuFao?=
 =?us-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BjokSDYX6UvJZqUoEaoQm379TBwvbp5IKKVCGkk?=
 =?us-ascii?Q?q75QDtC/rNacaiUIt/kd385TvEeqWIP+iZWsmD/qst82VLXZIhdtD3ViZyed?=
 =?us-ascii?Q?ijgnzV3jf+ZhDU+W6xYznLwK7QeVnrJaMGUnuXYIArbHkgd9Ghwa/gKkVD7J?=
 =?us-ascii?Q?EdAvAWmqjnFdzEda/G+YgLBq13AMFqb97MtnnXJAqIVbFI4qN16vmZotrALH?=
 =?us-ascii?Q?74EjISoTr8TTajYYdcD9ytGAtkF36qXj+CDJ8kEOkr1UYfcI/hHa5PHPwNWm?=
 =?us-ascii?Q?oIx7o2sLHgdRy2/E6sUE2aa6FeGcRe9b1+0xlFbrlyduOgX9zleYMm493xse?=
 =?us-ascii?Q?w/nq3EttIbboewm5rxXfT8nOhqXtzQ5UpsIvYpkqExuUaScHk/ximJ6X+FO7?=
 =?us-ascii?Q?G/FXIfluZ8ejzbu8bzG1JYFtZ1fpc55JCVVuRJ3kt+RyQ6hqYvDNKDyrnzPv?=
 =?us-ascii?Q?C2FtJ5LknyUo4h9rnVL5zyU=3D?=
Content-Type: multipart/mixed;
 boundary="_002_CH2PR12MB423138F5C432C2BBF330BC6BA5859CH2PR12MB4231namp_"
MIME-Version: 1.0
X-OriginatorOrg: coderedcorp.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4231.namprd12.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: f5d5bc65-216f-4e09-7885-08d999927b21
X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2021 21:41:05.8437 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 9c94adb1-2ce8-484f-be82-c9b5127d4cb1
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 5xdpqDYQ6tmk00CRREA0F6LRKMFLNNKMC7olYvzfMFsLlaLSa9s4EGj7azGmAUnMV5D72/XFS/QsMtYygnULAg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB3829
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 51404
Cc: "51404 <at> debbugs.gnu.org" <51404 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--_002_CH2PR12MB423138F5C432C2BBF330BC6BA5859CH2PR12MB4231namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Update: I managed to get my hands on an 1809 system and was able to get dar=
k mode working there as well. As far as I can tell 1809 is the absolute min=
imum as that is when this setting and dark mode Explorer were introduced in=
to Windows.

The advantage is that this will now work on Windows Server 2019 and Windows=
 LTSC 2019, which some folks may be limited to as those are the latest Serv=
er and LTSC releases.

Attached patch includes the complete change, with relevant notes etc.

Vince Salvino


--_002_CH2PR12MB423138F5C432C2BBF330BC6BA5859CH2PR12MB4231namp_
Content-Type: application/octet-stream;
	name="0001-Support-system-dark-mode-on-Windows-10-version-1809-.patch"
Content-Description:  0001-Support-system-dark-mode-on-Windows-10-version-1809-.patch
Content-Disposition: attachment;
	filename="0001-Support-system-dark-mode-on-Windows-10-version-1809-.patch";
	size=11202; creation-date="Wed, 27 Oct 2021 21:32:16 GMT";
	modification-date="Wed, 27 Oct 2021 21:32:16 GMT"
Content-Transfer-Encoding: base64

RnJvbSA4NTY2MDBjZDg2Y2U2MzA1MDIzYzdkYmI4YTQxNjQ5YzgwZDMwNWUwIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBWaW5jZSBTYWx2aW5vIDxzYWx2aW5vQGNvZGVyZWRjb3JwLmNv
bT4KRGF0ZTogV2VkLCAyNyBPY3QgMjAyMSAxNzozMjowOSAtMDQwMApTdWJqZWN0OiBbUEFUQ0hd
IFN1cHBvcnQgc3lzdGVtIGRhcmsgbW9kZSBvbiBXaW5kb3dzIDEwIHZlcnNpb24gMTgwOSBhbmQK
IGhpZ2hlci4KCi0tLQogZG9jL2VtYWNzL21zZG9zLnRleGkgfCAgNyArKysrCiBldGMvTkVXUyAg
ICAgICAgICAgICB8ICA4ICsrKysKIHNyYy93MzIuYyAgICAgICAgICAgIHwgMjMgKysrKysrKy0t
LS0KIHNyYy93MzIuaCAgICAgICAgICAgIHwgIDUgKystCiBzcmMvdzMyZm5zLmMgICAgICAgICB8
IDkxICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKystCiA1IGZpbGVz
IGNoYW5nZWQsIDEyMiBpbnNlcnRpb25zKCspLCAxMiBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQg
YS9kb2MvZW1hY3MvbXNkb3MudGV4aSBiL2RvYy9lbWFjcy9tc2Rvcy50ZXhpCmluZGV4IDBmOGY0
MjliM2YuLjNjNmM2MTYxM2UgMTAwNjQ0Ci0tLSBhL2RvYy9lbWFjcy9tc2Rvcy50ZXhpCisrKyBi
L2RvYy9lbWFjcy9tc2Rvcy50ZXhpCkBAIC0xMTgxLDYgKzExODEsMTMgQEAgV2luZG93cyBNaXNj
CiBjbGljay10by1mb2N1cyBw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b2RlID0gVFJVRTsK
KyAgICB9CisKICAgZXhjZXB0X2NvZGUgPSAwOwogICBleGNlcHRfYWRkciA9IDA7CiAjaWZuZGVm
IENZR1dJTgotLSAKMi4zMy4wLndpbmRvd3MuMgoK

--_002_CH2PR12MB423138F5C432C2BBF330BC6BA5859CH2PR12MB4231namp_--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) patch. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 26 Oct 2021 18:20:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 26 14:20:46 2021
Received: from localhost ([127.0.0.1]:47538 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mfR42-0007vr-2S
	for submit <at> debbugs.gnu.org; Tue, 26 Oct 2021 14:20:46 -0400
Received: from mail-bn8nam12on2074.outbound.protection.outlook.com
 ([40.107.237.74]:26848 helo=NAM12-BN8-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <salvino@HIDDEN>) id 1mfR40-0007vc-AI
 for 51404 <at> debbugs.gnu.org; Tue, 26 Oct 2021 14:20:44 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=FEmjLJyJQHl8jj8ZvV0wL8/zUFAR4BmYo+4ihdoMg/f5FA4GY2rjq3hhZ4WrCXSQjDgOCEsk6uCxYpVsNnX8b9saGtFD7cu0SWzac1esfWnhju+P2XB6BAQplv++OJyYMeupWZf+Fx+L5MC9LUaTZlKLigWeuyrKZKCOU8EjBnf/6UeICXfmFtCYtTnKD9qu2E/dVtsQ6vivXF9Ix5/Wbf2d12S0PCwiraivE8WOkzser8BPSkK2m2zBzGZ/r4hi1a6rAQgfG//ZdZLMMBZbGy14Y0mBDQ2Mdwv7mDO1KhXttqOeub0Fvn192YJjBa9/ELJPfSsWujFLmLDRElx+8Q==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=tyiGOIAMRL/aMC3rkRXt91XaQBkS4HJ93MopFaTtLH0=;
 b=IpiDsQJ0nIdJho1NVIJuwlxh1sXhH3ju9tnWU7MWGXFo8hNQ0QqsnriAzQFPDnG61LeSt3OlGHY4VN90n7Vw/42+Xc93moZY3Mf9jfco83D1WJ6XnMQ0yc4eXa9W1Zogac0yvvEiDBQX2TV68qqJQ/64wFeSegxbxKM+e8i0WKN7o1FpePGnolO4z5uPwPRh4NXuX8SITzg7Dczn4Evs6nDuDhHOj8q/EOk6eH1pvx/azdeq+DG54aYA6ceBZy48topIWB9+dnCHeqyhjKYMXc5VQqIpClo5tfD0UsJppW/AiONDliFs+jf/Mida6Q8kJatenH5UaQPf+JwqKuwiOw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=coderedcorp.com; dmarc=pass action=none
 header.from=coderedcorp.com; dkim=pass header.d=coderedcorp.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coderedcorp.com;
 s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=tyiGOIAMRL/aMC3rkRXt91XaQBkS4HJ93MopFaTtLH0=;
 b=q8DhPzItlXaEceh/rf/FbzlIS8FvP6K1mFmRggWfdCAPK5aDeU9zSo3p7AAi2kOAslVi2yaDMpodkJHTDj7iBowOKCRe98iZ5VoUkiSWINpRb2BJjrYoLcQZbXoSHRe3dEsKN75KlfBhTrijlJKswW4wyRcRPijmt9jugAP+f14=
Received: from CH2PR12MB4231.namprd12.prod.outlook.com (2603:10b6:610:7d::24)
 by CH2PR12MB4021.namprd12.prod.outlook.com (2603:10b6:610:2b::29)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14; Tue, 26 Oct
 2021 18:20:36 +0000
Received: from CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::55e4:7d22:a6df:970b]) by CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::55e4:7d22:a6df:970b%5]) with mapi id 15.20.4649.014; Tue, 26 Oct 2021
 18:20:36 +0000
From: Vince Salvino <salvino@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: RE: bug#51404: Support system dark mode on Windows 10
Thread-Topic: bug#51404: Support system dark mode on Windows 10
Thread-Index: AdfKJC1fFkosmLKeRpu5RIGxKoA2egATeE0VAAVMuSAAARwnVAACGfog
Date: Tue, 26 Oct 2021 18:20:35 +0000
Message-ID: <CH2PR12MB4231BF93A366641B94D7A636A5849@HIDDEN>
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN>
 <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
 <838ryfyawv.fsf@HIDDEN>
In-Reply-To: <838ryfyawv.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
authentication-results: gnu.org; dkim=none (message not signed)
 header.d=none;gnu.org; dmarc=none action=none header.from=coderedcorp.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 09f3a8c4-0c84-45e7-258c-08d998ad4e52
x-ms-traffictypediagnostic: CH2PR12MB4021:
x-microsoft-antispam-prvs: <CH2PR12MB4021FAC3E1324BA2DFC9B0B7A5849@HIDDEN>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: M0fKjSPN/Nv2WeVohTOQAgK8sz/9y4HEfSe0z47sTJw6FEyxd2GRhgYpDMdfLAvTxTEHvLYhfyfJhqtnb13YgajI6Hb0ogI73VvlXkgbnYhgvdVi3l41vTA7LrXenzeDHR5snnyS6TJVXGULmrBw+ZJKpQ480PE50gzN37C1xQIhbg8gIHJ7OSoeSphTTeC8WNbwulhjIEsoGcHueXtmklaWMhePR6FMxxOhBQd0Plb6BPxJmR6XPGpyxqPpvOaidlGophKIhIFhdVaLSK0N9radtoRP7aPH5hfT7pYT33biYu/7YxheyFDXNrtCV93aq5ibNfmbofISVKkTpWsVRXbHeNSUGp6x/zeYSmSQYXdiiAeZz77etmbucb6PAjTnH/E49mKH8KF3s+HuKE/AH1IJHklp4+P/dt847re1UPHBI+6ovfUljelws63nfb56NKpddKbvhiiuR8bk0LNPEVveY4s+jP/wUDXGO3JAmOOMJKe/FIjQaPSKLFGuPiRi16p9/R13mWN4UC0cy4HHdz73G4e0RMsbvk8xlYFtjf7TjwROsloZUFBtdQrz/X4dqiCgHGlNPpQqzrdCNOjWh3OdwUQ3q5VM7z+Ju9DN+f32FZioqO0uP0W3YZwH/Xuss81k/dKwr2X7nLf1wdm6wglnqqdbJUmNiduS7+aWvGedCmXUUFghtIV6i+KSNl8ItSzW70qx7AsYTeGTyWK08FJGoDD2JdoTe3958BLQABrkNTihVBYddaS8FwlrwnmVE4amADwcKAQOwfmE+X1uRgEuMWapkV2Pr7iNpeHr12A=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:CH2PR12MB4231.namprd12.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(366004)(136003)(376002)(396003)(39830400003)(346002)(966005)(8676002)(508600001)(66556008)(66946007)(66446008)(66476007)(7696005)(64756008)(316002)(6916009)(83380400001)(8936002)(52536014)(186003)(86362001)(99936003)(76116006)(33656002)(71200400001)(6506007)(53546011)(2906002)(38100700002)(26005)(122000001)(4326008)(9686003)(66574015)(55016002)(5660300002)(38070700005);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?G2GOdIkRgMUxnPNHuMCKOpFNTkNAYkPC05vLMInWMYamcixF0A4/nlIhIOm5?=
 =?us-ascii?Q?ZwbcdikDMFPcFwLBG4mrp9+m2PIS/tvVZWYzmTgxkMOldSboDIj0hLXIxRbn?=
 =?us-ascii?Q?Z+flu0sH8QDxPmF3MmrlQGCvKwV6CfRk0+h+CIb+OxibEPG2YomX+PydYpkq?=
 =?us-ascii?Q?xh+88Fkp0GJM9kYm+Y+CC+HsUBTT2nv3JQYFfBwGM0NHuY6VKG2iOEpwzXGS?=
 =?us-ascii?Q?j1HftHwP9rX+msMfKaI0dw4x/DwbIM8jNVDlX1G6ZnTN9oX9ksm5kN2MOAsl?=
 =?us-ascii?Q?nVaJhYy0ztlaJKj9AV3N+uHvmFNLAEo1VqV7tClgtTeMgrwqouj+ra5jVmVl?=
 =?us-ascii?Q?zkVr4ZZpOSYcgYOtoMHtwREYZqGvGFMF0rYMF2O1992jvk5ul8BZ5MCZDejL?=
 =?us-ascii?Q?+ZxBtzoa0gsX0lYh8pP8azhu2BoQHu/heNd96W63FEc8s0xLJltLeoQjlQ5q?=
 =?us-ascii?Q?eNAI/s/CiHjytLRzy2GDaydNQHlRHeSMoRNdFeWe/VRvYidXEo+ZcHvxPSiD?=
 =?us-ascii?Q?gvStNDdWytvM21P7U4LGf/dFk3JcurzrsTwpZdZbHk6mU8d5Q22Q6RXvV2L9?=
 =?us-ascii?Q?2tIiG0eTV0gJYyHjElCKxOoBZFueCnYb1cGMu3NaVDgfAMD59oOFnffycDSw?=
 =?us-ascii?Q?ul9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8T+Q2Ugt4jFSQnyezqaSHF4PQJAxzBCFEZso5233DiLx7u8yB1DW6/9UU?=
 =?us-ascii?Q?Tt59sCfhuqMS6JfS0g7hvAjFloGtImWX57xLfpYKi1MZvV/jIcuf5QyJ36Ye?=
 =?us-ascii?Q?qQ=3D=3D?=
Content-Type: multipart/mixed;
 boundary="_002_CH2PR12MB4231BF93A366641B94D7A636A5849CH2PR12MB4231namp_"
MIME-Version: 1.0
X-OriginatorOrg: coderedcorp.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4231.namprd12.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 09f3a8c4-0c84-45e7-258c-08d998ad4e52
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2021 18:20:35.9430 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 9c94adb1-2ce8-484f-be82-c9b5127d4cb1
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: HUU41ZFohWmT3NN3h6FlJC2a+Ku7uYlfD/ZvIwuqwWmfhIJJ0mVU3MR18WUIYg3n0vh8evEbEFkpYsmWf83kwQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4021
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 51404
Cc: "51404 <at> debbugs.gnu.org" <51404 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--_002_CH2PR12MB4231BF93A366641B94D7A636A5849CH2PR12MB4231namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Attached is the patch with some of your comments resolved.

Regarding exposing DARK_MODE_APP_NAME to lisp, I am staunchly against that.=
 If users want to potentially segfault their emacs, or make the frame invis=
ible/unusable, they are more than welcome to play with the C code.

Regarding toggling dark mode from within lisp, I think that is a decent ide=
a, and left a TODO in the relevant place in the code. Help would be appreci=
ated here. The current functionality is not "unconditional" per se, it foll=
ows the user-configurable OS setting (which is light by default, so no visu=
al change from previous versions of Emacs). The manual has been updated wit=
h a relevant note.


Vince Salvino

-----Original Message-----
From: Eli Zaretskii <eliz@HIDDEN>=20
Sent: Tuesday, October 26, 2021 1:06 PM
To: Vince Salvino <salvino@HIDDEN>
Cc: 51404 <at> debbugs.gnu.org
Subject: Re: bug#51404: Support system dark mode on Windows 10

> From: Vince Salvino <salvino@HIDDEN>
> CC: "51404 <at> debbugs.gnu.org" <51404 <at> debbugs.gnu.org>
> Date: Tue, 26 Oct 2021 16:49:34 +0000
>=20
> > > +#define DARK_MODE_APP_NAME L"DarkMode_Explorer"
>=20
> > Can we make this exposed to Lisp, rather than hard-coded?  Hard-coding =
a specific application for a theme sounds un-Emacsy.  People could want to =
experiment with other apps.
>=20
> Given that this is not so much a preference, as an undocumented magic str=
ing in Win32, I think anyone who wants to play with this is going to requir=
e knowledge of C and gdb to experiment, to risk causing erratic and unknown=
 behavior. So I would be inclined to keep it in C.

These "undocumented" strings are all over the Internet, so...

Here are some examples that people may wish trying:

  https://stackoverflow.com/questions/19712368/c-winapi-old-styled-window
  https://developercommunity.visualstudio.com/t/tree-controls-not-displayed=
-correctly-in-windows-1/423037

And this is just from a couple of minutes of searching the Internet.

> > +/* Applies the Windows system theme (light or dark) to a window=20
> > +handle. */ static void w32_applytheme(HWND hwnd) {
> > +  if (w32_darkmode) {
> > +    /* Set window theme to that of a built-in Windows app (Explorer)
> > +       because it has dark scroll bars and other UI elements. */
>=20
> > Likewise here: it should be able to control this behavior by a user opt=
ion.  We cannot assume that every Emacs user will automatically want to fol=
low the system theme.
>=20
> I agree this would be a "nice to have", but the current functionality is =
in-line with behavior on other systems (GTK, macOS, etc. i.e. the applicati=
on has no say in window decorations which are controlled by the window mana=
ger). If we did add an elisp setting it should default to the registry valu=
e at runtime. I also have no idea how to create an elisp setting and read i=
t in C. Examples or contributions to this patch would be helpful.

The GTK behavior is a bad example, so I'd rather not follow it.
Doesn't the patch in its current form unconditionally change the appearance=
 of Emacs in some cases?  I think it does, and that means we will have comp=
laints about unexpected change in behavior.  You can also bet on someone di=
sliking the result.  So I think this has to be customizable; let me know if=
 you need help in doing that.

--_002_CH2PR12MB4231BF93A366641B94D7A636A5849CH2PR12MB4231namp_
Content-Type: application/octet-stream;
	name="0001-Support-system-dark-mode-on-Windows-10-version-2004-.patch"
Content-Description:  0001-Support-system-dark-mode-on-Windows-10-version-2004-.patch
Content-Disposition: attachment;
	filename="0001-Support-system-dark-mode-on-Windows-10-version-2004-.patch";
	size=10781; creation-date="Tue, 26 Oct 2021 18:13:08 GMT";
	modification-date="Tue, 26 Oct 2021 18:02:09 GMT"
Content-Transfer-Encoding: base64

RnJvbSAyY2M3ZWJlOWVkN2RhYjBlMjQ0M2E2ODMwY2Q2YTA2ZDU3ODMxZDE4IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBWaW5jZSBTYWx2aW5vIDxzYWx2aW5vQGNvZGVyZWRjb3JwLmNv
bT4KRGF0ZTogTW9uLCAyNSBPY3QgMjAyMSAyMjoxODo0NiAt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Y3Jvc29mdFxcV2luZG93c1xcQ3VycmVudFZlcnNpb25cXFRoZW1lc1xcUGVyc29uYWxpemUiLAor
CSAiQXBwc1VzZUxpZ2h0VGhlbWUiLAorCSBOVUxMKTsKKyAgICAgIGlmICh2YWwgJiYgKERXT1JE
KSp2YWwgPT0gMCkKKwl3MzJfZGFya21vZGUgPSBUUlVFOworICAgIH0KKwogICBleGNlcHRfY29k
ZSA9IDA7CiAgIGV4Y2VwdF9hZGRyID0gMDsKICNpZm5kZWYgQ1lHV0lOCi0tIAoyLjMzLjAud2lu
ZG93cy4yCgo=

--_002_CH2PR12MB4231BF93A366641B94D7A636A5849CH2PR12MB4231namp_--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 26 Oct 2021 17:05:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 26 13:05:40 2021
Received: from localhost ([127.0.0.1]:47439 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mfPtL-0005mF-JP
	for submit <at> debbugs.gnu.org; Tue, 26 Oct 2021 13:05:39 -0400
Received: from eggs.gnu.org ([209.51.188.92]:44676)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1mfPtJ-0005m2-Ub
 for 51404 <at> debbugs.gnu.org; Tue, 26 Oct 2021 13:05:38 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:35482)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mfPtC-0006pT-Iy; Tue, 26 Oct 2021 13:05:31 -0400
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=tH0ZACRUQa69l+CS8/IkBorb5SsdQaX2tS3NWCevcwQ=; b=L4n81o89NgtC
 fngNZNFM9yjW277z29O2aiWPRNl9b8RI+9SViRrQqHxyOviB5aEsY/Z1+cMZxMnUhqAv87qOtRUMq
 kJaCBArLy1f4M6OoAaYVFkWv88GynV0GNZfgmuL3UG5KUv99dHkEUYjnlVn/6O+BkNq9YpL+I4Lqu
 h+2R8MGXd69KAEZ4QVUFgu9r+7hA4vbxRvQQdP/AUG6SYEuCUSa/F48xlWtVryGvRvOhoxsGZ+d/O
 /KAWzKsT5S2I6ZPQzKIiUezfvlNgArf9k0ET4L3cirV4r8coxcfJgqG+wp4Wzlb/0cZ2O1SEFuoMC
 jwKogDmHQZcYuEjGLvZZpQ==;
Received: from [87.69.77.57] (port=4662 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mfPsq-0004dJ-Uh; Tue, 26 Oct 2021 13:05:27 -0400
Date: Tue, 26 Oct 2021 20:05:04 +0300
Message-Id: <838ryfyawv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Vince Salvino <salvino@HIDDEN>
In-Reply-To: <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
 (message from Vince Salvino on Tue, 26 Oct 2021 16:49:34 +0000)
Subject: Re: bug#51404: Support system dark mode on Windows 10
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN> 
 <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51404
Cc: 51404 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Vince Salvino <salvino@HIDDEN>
> CC: "51404 <at> debbugs.gnu.org" <51404 <at> debbugs.gnu.org>
> Date: Tue, 26 Oct 2021 16:49:34 +0000
> 
> > > +#define DARK_MODE_APP_NAME L"DarkMode_Explorer"
> 
> > Can we make this exposed to Lisp, rather than hard-coded?  Hard-coding a specific application for a theme sounds un-Emacsy.  People could want to experiment with other apps.
> 
> Given that this is not so much a preference, as an undocumented magic string in Win32, I think anyone who wants to play with this is going to require knowledge of C and gdb to experiment, to risk causing erratic and unknown behavior. So I would be inclined to keep it in C.

These "undocumented" strings are all over the Internet, so...

Here are some examples that people may wish trying:

  https://stackoverflow.com/questions/19712368/c-winapi-old-styled-window
  https://developercommunity.visualstudio.com/t/tree-controls-not-displayed-correctly-in-windows-1/423037

And this is just from a couple of minutes of searching the Internet.

> > +/* Applies the Windows system theme (light or dark) to a window 
> > +handle. */ static void w32_applytheme(HWND hwnd) {
> > +  if (w32_darkmode) {
> > +    /* Set window theme to that of a built-in Windows app (Explorer)
> > +       because it has dark scroll bars and other UI elements. */
> 
> > Likewise here: it should be able to control this behavior by a user option.  We cannot assume that every Emacs user will automatically want to follow the system theme.
> 
> I agree this would be a "nice to have", but the current functionality is in-line with behavior on other systems (GTK, macOS, etc. i.e. the application has no say in window decorations which are controlled by the window manager). If we did add an elisp setting it should default to the registry value at runtime. I also have no idea how to create an elisp setting and read it in C. Examples or contributions to this patch would be helpful.

The GTK behavior is a bad example, so I'd rather not follow it.
Doesn't the patch in its current form unconditionally change the
appearance of Emacs in some cases?  I think it does, and that means we
will have complaints about unexpected change in behavior.  You can
also bet on someone disliking the result.  So I think this has to be
customizable; let me know if you need help in doing that.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 26 Oct 2021 17:05:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 26 13:05:17 2021
Received: from localhost ([127.0.0.1]:47435 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mfPsy-0005lW-R1
	for submit <at> debbugs.gnu.org; Tue, 26 Oct 2021 13:05:17 -0400
Received: from mail-dm6nam08on2041.outbound.protection.outlook.com
 ([40.107.102.41]:13920 helo=NAM04-DM6-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <salvino@HIDDEN>) id 1mfPdt-0005Kg-VU
 for 51404 <at> debbugs.gnu.org; Tue, 26 Oct 2021 12:49:42 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=ARfMhP2ujAlxLeiF5gmfVsLiqUPZ3IRbszVojuZOg6psbcs/lru3RR1oapP1soEuw7v0N4TgrljsaRqnloT3ggcEc7PV+u/a2ZYa7268f/1JFHP6htU6F9o/V5dGE9DVJlUBF8Pu3eqBXFbdITomtDKxXX9X32mk1B9mm/YY6uGO1Tv9wcicqJBTw4dAGFlsGQXHDRV98lph32fnLhVGTsdleuDBf4pu43USa7f8Jct2r4JqiifKQJJ06Aujrs+CFbA0Wf6YMrcI8Yl/D4F34nH4NGq9IMPuzIFEqkay/quSRs+NEbngwbQsidiH/gjqzcL/IkeywyGGHdj6jd8a/Q==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=AYXuFW0vy6XRyeBPxGgcnaQuDvZtR9pRZXWQx+l04SM=;
 b=QIiI2pFHuWU+U4L9o7h17MYoRTHYot6K363HYuXgGyPJhpKihrSu1/l8Lp6Vxya8p1Sh7bS8AuGU7TUAe3WZ+sCyac20NMdnYHZyIT4wWq+nF+3FmVPtAacVcqxR39X1g1QqPMcQ+9iN2V6RMpBSOAwFWZP/6EcxzWNblj3Rgofuy6eR1CiAPMfz9SNLsCuUG/kpfF9fzR8jHPVjrqf4ei8lkmM/hdJ6nVtRMKp3uoFw5WB2ieDBh1skWYDCPbQe6MpB5hKmRaQf/7DmrwQAv93lmpH9VHMhOuAnhRdQe8UdwflqDfrsNDRMZzo+82MG/dmJqTGeiIb8XviTf+1xqg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=coderedcorp.com; dmarc=pass action=none
 header.from=coderedcorp.com; dkim=pass header.d=coderedcorp.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coderedcorp.com;
 s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=AYXuFW0vy6XRyeBPxGgcnaQuDvZtR9pRZXWQx+l04SM=;
 b=dW3Rpdr4fr/e6vGI10UZeETCvEJG/zbiqfvZx6G8u2i03CaAqLiiVDvM7m6mWIrHDfjziIpw07qEgs1pm/rispqiu7PbGTjOygWU4XXMLQklOso/qcp+WKPp/aMog2ZIt+B/xgSzCuIaC3fK7LlPErt9Sg0SOBqCcCNsaoRv5Mw=
Received: from CH2PR12MB4231.namprd12.prod.outlook.com (2603:10b6:610:7d::24)
 by CH2PR12MB4277.namprd12.prod.outlook.com (2603:10b6:610:ae::23)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.15; Tue, 26 Oct
 2021 16:49:34 +0000
Received: from CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::55e4:7d22:a6df:970b]) by CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::55e4:7d22:a6df:970b%5]) with mapi id 15.20.4649.014; Tue, 26 Oct 2021
 16:49:34 +0000
From: Vince Salvino <salvino@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: RE: bug#51404: Support system dark mode on Windows 10
Thread-Topic: bug#51404: Support system dark mode on Windows 10
Thread-Index: AdfKJC1fFkosmLKeRpu5RIGxKoA2egATeE0VAAVMuSA=
Date: Tue, 26 Oct 2021 16:49:34 +0000
Message-ID: <CH2PR12MB4231BD9B939F3D485536A5BAA5849@HIDDEN>
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN>
In-Reply-To: <834k93zxyo.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: gnu.org; dkim=none (message not signed)
 header.d=none;gnu.org; dmarc=none action=none header.from=coderedcorp.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 52a00520-19ae-489e-b947-08d998a09719
x-ms-traffictypediagnostic: CH2PR12MB4277:
x-microsoft-antispam-prvs: <CH2PR12MB42775CE94663BD5A1E06BBA8A5849@HIDDEN>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 6fLlBM1im0I5N3X4nwESMtxcTKX7gQy2nmLyzn7BltFiCccrVkEEd4ydWVzKgXZCTLkFU6xqPgVS1OfUz28AL8zI6RwSvO+eIXGxGP8WEeTjg1BcHi/cYqjmpdhN0MCRcRMXzJoo95m9hS/lCVi98ywprf4ky2tWNUzLRFUmFOdVrhf88V00iL7kwEqwLedQd2StlOZBWU+vBeqjGaD7k3Kl0wbhtJCq341NhRkEqT2GBOF1gmOFJ3pdn2Z8aP3hfjcCmbwEwPD5mF0yEs+ChDigDhbtTqJ/cp/w4Jnz7KnErTDKz8lb/veBCSBPanoU1dsOWimB6LzraZphKn3ArWlF+BxNIIsCexYGfgFaetEHtLlBAKDRbZz/oshV4odz8MyYSQP90grmdPNNhQMeVpf+sWD3E1goy+blqvR1woVThKXnY/TZYlWysIbNCOqNDoWcArJPtQGzLAS9mdKqXEg5EoY1D8l/zBmdPlPjeR+4fGAa+kF73l1k/uiH+nLI9j6N7eWA6Q0T4csiX6flW7SWnXjmb9NGScMgwLlfwsy1S+JYk+3dApfI1t0m8h+n+pTzaGvleiPTUyBof5uewzEK459NwzPmEDJSLBiFhR+HEC0jQ4lw+V+EZyiy53/CBGynKQTZEp3uHWGnt8sD6xT+yyPxaLLEVz2cfswlExZAbyZ32ywl7YmPqIhEzvQXGFgoP32FEBen/04GmDn3JTfMvJMD/MekaAh7m5392dWxJMaEbBzfwHlaxDkRq2lhehCUb3yabtR0FG/l44VJVXS+yNpCybWIxHlNw4qJTS0=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:CH2PR12MB4231.namprd12.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(396003)(39830400003)(346002)(376002)(366004)(136003)(6916009)(966005)(8676002)(508600001)(186003)(9686003)(76116006)(4326008)(6506007)(7696005)(8936002)(2906002)(86362001)(52536014)(33656002)(71200400001)(53546011)(64756008)(66446008)(66476007)(66946007)(316002)(66556008)(83380400001)(26005)(38070700005)(38100700002)(5660300002)(122000001)(55016002)(45080400002);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?0JEyKUfL7Buxk1KyiFhoI0DWIsxKmR2nME75aQen89/VD1vqFgz4Si0t3DvT?=
 =?us-ascii?Q?Kbqah/mjRvhk+MYcLIJbUMug1cmW1CC8esDpuk/kgUjcaaxOhLSHJKhnDIX8?=
 =?us-ascii?Q?SMB7cZo5YFf4hc7HmD1n/0v1sBQCwW1lMrdh1Tk1CparuDnGTiPk8J7Dk4PN?=
 =?us-ascii?Q?Ok2iOEsc+ZZWfCMCpCBlWqLIVnN4AAy2nVo6ilTuUkTL7YiZxJua4PSDPdAJ?=
 =?us-ascii?Q?MuusPKhJXIHEIt834la547KxdEdMJVWzb/KjwGaPKmJfbUNy8yyG8QC50/IA?=
 =?us-ascii?Q?/1wnBlHO6yXdukoWRqW0nwOso6mM0sH1y+JGO77BSg1UUotAsr3PeorgLFmW?=
 =?us-ascii?Q?293ZzE5S7aVW3fGd2JguBgcCOxKTZ6dYJfreTHoyBGNOT0Gx7KoPI/84nAUI?=
 =?us-ascii?Q?FGPe1b1gZ4FSXumlWLwgNu9DoQ+MENpqhRk1+Ql1rl35xNVKJNZzD13Tm3Hz?=
 =?us-ascii?Q?C2qyecuCIR0K4bh7c1+RFjbsy8lI0BNIFql0IpuBECVKfhvkjjbZlso0uOcO?=
 =?us-ascii?Q?06RdemZhTs5/k8os45pn5BLkqaaCog/kzYIY7J2gG8+rkzfNnFCLusT8Oyoo?=
 =?us-ascii?Q?yHdYlN8i0ZSbkj6mv5+SbH4DPc7YAGo344YB3z1xk+OkUMbgB5OXEgrM798e?=
 =?us-ascii?Q?l6IoHkuL7jYN4G4IaI6QAMwQq1ZWV9uM5jR2kZOiplD/DUZ/yYTknIcscUQZ?=
 =?us-ascii?Q?lRf4rcOArK2yA6yEqIgyAeisz85Ezuy19cPQCBNLbn0gCFOkPXC7AU3BLCui?=
 =?us-asc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=3D=3D?=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: coderedcorp.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4231.namprd12.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 52a00520-19ae-489e-b947-08d998a09719
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2021 16:49:34.6263 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 9c94adb1-2ce8-484f-be82-c9b5127d4cb1
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: hk3hw3GXrcyL1JF4+twOadVbUdGufr/JoppG3A+0Ebktb4ju+tDo8Wl6AMTrp10Vpk10fTdncX+YzgjKC29m1w==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4277
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 51404
X-Mailman-Approved-At: Tue, 26 Oct 2021 13:05:15 -0400
Cc: "51404 <at> debbugs.gnu.org" <51404 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> > +#define DARK_MODE_APP_NAME L"DarkMode_Explorer"

> Can we make this exposed to Lisp, rather than hard-coded?  Hard-coding a =
specific application for a theme sounds un-Emacsy.  People could want to ex=
periment with other apps.

Given that this is not so much a preference, as an undocumented magic strin=
g in Win32, I think anyone who wants to play with this is going to require =
knowledge of C and gdb to experiment, to risk causing erratic and unknown b=
ehavior. So I would be inclined to keep it in C.


> > +#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE #define=20
> > +DWMWA_USE_IMMERSIVE_DARK_MODE 20

> Why not use 19 and 20, depending on the Windows build number, and thus ex=
pand the applicability of the feature?

I can add support for 19, but do not have the ability to test it on those s=
pecific Win10 builds to confirm if it actually works as expected. If someon=
e is able to test on a version of Windows 10 older than 2004, then I will i=
nclude. Erring on the side of stability for now.


> +/* Applies the Windows system theme (light or dark) to a window=20
> +handle. */ static void w32_applytheme(HWND hwnd) {
> +  if (w32_darkmode) {
> +    /* Set window theme to that of a built-in Windows app (Explorer)
> +       because it has dark scroll bars and other UI elements. */

> Likewise here: it should be able to control this behavior by a user optio=
n.  We cannot assume that every Emacs user will automatically want to follo=
w the system theme.

I agree this would be a "nice to have", but the current functionality is in=
-line with behavior on other systems (GTK, macOS, etc. i.e. the application=
 has no say in window decorations which are controlled by the window manage=
r). If we did add an elisp setting it should default to the registry value =
at runtime. I also have no idea how to create an elisp setting and read it =
in C. Examples or contributions to this patch would be helpful.


> > +    /* Set the titlebar to system dark mode. */
> > +    if (DwmSetWindowAttribute_fn) {
> > +      DwmSetWindowAttribute_fn
> > +	(hwnd,
> > +	 DWMWA_USE_IMMERSIVE_DARK_MODE,
> > +	 &w32_darkmode,
> > +	 sizeof(w32_darkmode));
> > +    }

> Does it make sense to call DwmSetWindowAttribute if we couldn't call SetW=
indowTheme?  I know that such a situation shouldn't normally happen, but wh=
at if it does?  If we need both calls, the second call should be conditione=
d by SetWindowTheme_fn as well.

There is no harm in calling one without the other. SetWindowTheme sets thin=
gs like scrollbars. DwmSetWindowAttribute specifically sets the titlebar. M=
y original proof-of-concept only had DwmSetWindowAttribute and worked fine.

I will make the other requested changes, i.e. registry helper, style guide,=
 and NEWS; and submit an updated patch.


Vince Salvino

-----Original Message-----
From: Eli Zaretskii <eliz@HIDDEN>=20
Sent: Tuesday, October 26, 2021 10:02 AM
To: Vince Salvino <salvino@HIDDEN>
Cc: 51404 <at> debbugs.gnu.org
Subject: Re: bug#51404: Support system dark mode on Windows 10

> From: Vince Salvino <salvino@HIDDEN>
> Date: Tue, 26 Oct 2021 04:46:27 +0000
>=20
> Attached is the patch. Additional info available here:=20
> https://github.com/vsalvino/emacs

Thanks.  I have some comments and questions below, but in any case these ch=
anges are large enough to require copyright assignment from you.  If you'd =
be willing to start the legal paperwork at this time, I will send you the f=
orm to fill with the appropriate instructions.

>  LPBYTE
>  w32_get_resource (const char *key, LPDWORD lpdwtype)
> +{
> +  return w32_query_registry(REG_ROOT, key, lpdwtype); }
> +
> +/* Enables reading any key/name from the Windows Registry */ LPBYTE=20
> +w32_query_registry (const char *root, const char *key, LPDWORD=20
> +lpdwtype)

I'd prefer that you simply add an extra argument to the existing w32_get_re=
source, and adjust its single caller to pass REG_ROOT there.

> +/*
> +  Internal/undocumented constants for Windows Dark mode.
> +  See: https://github.com/microsoft/WindowsAppSDK/issues/41
> +*/

Please follow our style for comments, both single-line and multi-line.

> +#define DARK_MODE_APP_NAME L"DarkMode_Explorer"

Can we make this exposed to Lisp, rather than hard-coded?  Hard-coding a sp=
ecific application for a theme sounds un-Emacsy.  People could want to expe=
riment with other apps.

> +#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE #define=20
> +DWMWA_USE_IMMERSIVE_DARK_MODE 20

Why not use 19 and 20, depending on the Windows build number, and thus expa=
nd the applicability of the feature?

> +/* Applies the Windows system theme (light or dark) to a window=20
> +handle. */ static void w32_applytheme(HWND hwnd) {
> +  if (w32_darkmode) {
> +    /* Set window theme to that of a built-in Windows app (Explorer)
> +       because it has dark scroll bars and other UI elements. */

Likewise here: it should be able to control this behavior by a user option.=
  We cannot assume that every Emacs user will automatically want to follow =
the system theme.

> +    if(SetWindowTheme_fn) {
> +      SetWindowTheme_fn(hwnd, DARK_MODE_APP_NAME, NULL);
> +    }

Please follow our style of using braces in C code.

> +    /* Set the titlebar to system dark mode. */
> +    if (DwmSetWindowAttribute_fn) {
> +      DwmSetWindowAttribute_fn
> +	(hwnd,
> +	 DWMWA_USE_IMMERSIVE_DARK_MODE,
> +	 &w32_darkmode,
> +	 sizeof(w32_darkmode));
> +    }

Does it make sense to call DwmSetWindowAttribute if we couldn't call SetWin=
dowTheme?  I know that such a situation shouldn't normally happen, but what=
 if it does?  If we need both calls, the second call should be conditioned =
by SetWindowTheme_fn as well.

Last, but not least: this feature should be called out in NEWS and preferab=
ly also described in the "MS-Windows" Appendix in the Emacs manual.

Thanks again for working on this.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 26 Oct 2021 16:18:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 26 12:18:26 2021
Received: from localhost ([127.0.0.1]:47406 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mfP9d-0004R2-UN
	for submit <at> debbugs.gnu.org; Tue, 26 Oct 2021 12:18:26 -0400
Received: from eggs.gnu.org ([209.51.188.92]:34626)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1mfP9Y-0004Qi-Fp
 for 51404 <at> debbugs.gnu.org; Tue, 26 Oct 2021 12:18:24 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:33506)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mfP9T-0002Hz-0n; Tue, 26 Oct 2021 12:18:15 -0400
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=33ai7VJA2YK6Q7HiEqABTfUwQGbqy5zS1zTV7hBuDkc=; b=pQohMo+as0lO
 avbE+YywQRQSqcR995+KAVEPz0eNkBBVfzRFe2geiUHFzrjHWMLGl3czTf7oxpr5XrWJv6urh5UU5
 ojTkePPD1fo9mcwyG//r6perHyWcu7wyRTQhSqa82fF967lPVO3R/wJBaWcfxqxdtP6sU08zzmqNc
 XiIltQY2EELauOkulDFOfrxYzlieiK/8VKdDkXu+KGXVf3YvLvTRbsNzb6Giv1swi8/dRVHLXnOBf
 qFTYWTDHQ2wDowchlxBSTWB9/nwMnQVhYOdw6viuEVmb1xOvzCKS7AVsIJk7RlfyO2SsZFA+f0s2K
 OJsWxxtn0jMgo2eCJlnAyA==;
Received: from [87.69.77.57] (port=1511 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mfP9S-00043b-EP; Tue, 26 Oct 2021 12:18:14 -0400
Date: Tue, 26 Oct 2021 19:18:11 +0300
Message-Id: <83h7d3yd30.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: salvino@HIDDEN
In-Reply-To: <834k93zxyo.fsf@HIDDEN> (message from Eli Zaretskii on Tue, 26
 Oct 2021 17:01:51 +0300)
Subject: Re: bug#51404: Support system dark mode on Windows 10
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 <834k93zxyo.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51404
Cc: 51404 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Tue, 26 Oct 2021 17:01:51 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> Cc: 51404 <at> debbugs.gnu.org
> 
> Thanks.  I have some comments and questions below, but in any case
> these changes are large enough to require copyright assignment from
> you.  If you'd be willing to start the legal paperwork at this time, I
> will send you the form to fill with the appropriate instructions.

Actually, I now see that you already started the legal paperwork
rolling, so we are okay in that department.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at 51404 <at> debbugs.gnu.org:


Received: (at 51404) by debbugs.gnu.org; 26 Oct 2021 14:02:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 26 10:02:05 2021
Received: from localhost ([127.0.0.1]:47264 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mfN1h-0000YF-Ck
	for submit <at> debbugs.gnu.org; Tue, 26 Oct 2021 10:02:05 -0400
Received: from eggs.gnu.org ([209.51.188.92]:46498)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1mfN1e-0000Xe-Qv
 for 51404 <at> debbugs.gnu.org; Tue, 26 Oct 2021 10:02:04 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:56458)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mfN1Z-00041d-B0; Tue, 26 Oct 2021 10:01:57 -0400
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=kVF6zMs7kfohqr+6iaEj4wskRsw3OT99mgjgDtoQXwU=; b=fXwQbD4MeNc+
 bHN32qHduzNpt7HrXHr78Llg+LYKjb684kBqLmV2LnE+TFtScz8qfLLGvYLx064NNfEPcP/WPkmHl
 LifHIdAjzXdZFYKgYim6GbwcX+c3zkVaANwClrHuB5Qh1sfwjE8xb1H5Mj39wdizL7CPOaK36fReS
 bsvYBzvt27aRugRMFN8UDt1yVPhzrxOLJEpFti9dWeJpQ2tRrRj/TzQvye6oYaTIdydonJJaQvoNj
 nR/JX4CGNu4HbFwOcdA0eaEx7hlpxtEkofI18kL/FcOkfzsspOMt2EyHLuqG7S3qhWe6qILUIHAkG
 JCu+1M5h+ofJODyP88aI7A==;
Received: from [87.69.77.57] (port=4088 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1mfN1Y-0002qc-Ch; Tue, 26 Oct 2021 10:01:57 -0400
Date: Tue, 26 Oct 2021 17:01:51 +0300
Message-Id: <834k93zxyo.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Vince Salvino <salvino@HIDDEN>
In-Reply-To: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
 (message from Vince Salvino on Tue, 26 Oct 2021 04:46:27 +0000)
Subject: Re: bug#51404: Support system dark mode on Windows 10
References: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51404
Cc: 51404 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Vince Salvino <salvino@HIDDEN>
> Date: Tue, 26 Oct 2021 04:46:27 +0000
> 
> Attached is the patch. Additional info available here: https://github.com/vsalvino/emacs

Thanks.  I have some comments and questions below, but in any case
these changes are large enough to require copyright assignment from
you.  If you'd be willing to start the legal paperwork at this time, I
will send you the form to fill with the appropriate instructions.

>  LPBYTE
>  w32_get_resource (const char *key, LPDWORD lpdwtype)
> +{
> +  return w32_query_registry(REG_ROOT, key, lpdwtype);
> +}
> +
> +/* Enables reading any key/name from the Windows Registry */
> +LPBYTE
> +w32_query_registry (const char *root, const char *key, LPDWORD lpdwtype)

I'd prefer that you simply add an extra argument to the existing
w32_get_resource, and adjust its single caller to pass REG_ROOT there.

> +/*
> +  Internal/undocumented constants for Windows Dark mode.
> +  See: https://github.com/microsoft/WindowsAppSDK/issues/41
> +*/

Please follow our style for comments, both single-line and multi-line.

> +#define DARK_MODE_APP_NAME L"DarkMode_Explorer"

Can we make this exposed to Lisp, rather than hard-coded?  Hard-coding
a specific application for a theme sounds un-Emacsy.  People could
want to experiment with other apps.

> +#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE
> +#define DWMWA_USE_IMMERSIVE_DARK_MODE 20

Why not use 19 and 20, depending on the Windows build number, and thus
expand the applicability of the feature?

> +/* Applies the Windows system theme (light or dark) to a window handle. */
> +static void
> +w32_applytheme(HWND hwnd)
> +{
> +  if (w32_darkmode) {
> +    /* Set window theme to that of a built-in Windows app (Explorer)
> +       because it has dark scroll bars and other UI elements. */

Likewise here: it should be able to control this behavior by a user
option.  We cannot assume that every Emacs user will automatically
want to follow the system theme.

> +    if(SetWindowTheme_fn) {
> +      SetWindowTheme_fn(hwnd, DARK_MODE_APP_NAME, NULL);
> +    }

Please follow our style of using braces in C code.

> +    /* Set the titlebar to system dark mode. */
> +    if (DwmSetWindowAttribute_fn) {
> +      DwmSetWindowAttribute_fn
> +	(hwnd,
> +	 DWMWA_USE_IMMERSIVE_DARK_MODE,
> +	 &w32_darkmode,
> +	 sizeof(w32_darkmode));
> +    }

Does it make sense to call DwmSetWindowAttribute if we couldn't call
SetWindowTheme?  I know that such a situation shouldn't normally
happen, but what if it does?  If we need both calls, the second call
should be conditioned by SetWindowTheme_fn as well.

Last, but not least: this feature should be called out in NEWS and
preferably also described in the "MS-Windows" Appendix in the Emacs
manual.

Thanks again for working on this.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Oct 2021 06:57:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 26 02:57:39 2021
Received: from localhost ([127.0.0.1]:44913 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mfGOw-0000yw-Hb
	for submit <at> debbugs.gnu.org; Tue, 26 Oct 2021 02:57:38 -0400
Received: from lists.gnu.org ([209.51.188.17]:50954)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <salvino@HIDDEN>) id 1mfEM6-0005vt-Ds
 for submit <at> debbugs.gnu.org; Tue, 26 Oct 2021 00:46:34 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35682)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <salvino@HIDDEN>)
 id 1mfEM6-0007tf-5u
 for bug-gnu-emacs@HIDDEN; Tue, 26 Oct 2021 00:46:34 -0400
Received: from mail-bn8nam12on2069.outbound.protection.outlook.com
 ([40.107.237.69]:23232 helo=NAM12-BN8-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 <salvino@HIDDEN>)
 id 1mfEM3-0003bl-Hf
 for bug-gnu-emacs@HIDDEN; Tue, 26 Oct 2021 00:46:33 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=HDbJTMfPl5tG/N4kZMCGXrYT3spcoIW3wnoKtUpshd7/F7Teh7uZy70yM5++QR+CnZBtgoKFOTQ7zsfcY2sOHhZbHPAGBBYbVR3UBy1Ut52ICP2OLbsAzmJD/pVmBW85War3nZE8H+KfhS/JKqJspiW4vjfjSuOc00Z/PgRoKla9+LOrzokbEYNJoITYZ0orUSvYQ+cDJ3UqbiC83Eil3AGi7G0dslMIo66+a1JZdMd7RVFjUD57KzQfH09Cm2u1/uuoXPBiARnuxZn7SF6gmHjv4SRVuR1GiW+bIOBK28Am6o31gvm16PzKfodIt4bZj523Fh3ALTaUqAnZ1RQzzA==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=f2UR7TWeErHJyZSi294XVKOe2NqnEUv+H9EYYOysijU=;
 b=hM+7bAYFkBk5FRXiYc7JUM5mfnHaakfk46rsNdihDySygcd64iBjDZrNlr/kmJqmOQtjoGVAVBFcF3cTGtli60q5H0lU//r18nhJ4Clt4apnktWY+SS1yPh5tMy6NgeV8muY0TGw/YXc+NAvWx8vcDc3uNZDiGDfNuQW1kfvsC5bNdu/tMoSOefquyP91ZnD4rmNaN3euNFmWs6iRq65tgQDaYSGmG/ko9ml0sQyz78nrjHmpcMl+XQgKAaseszkLfnRFes+q6HzaDe7PfwJCLNb/WDuZH/0A3VTOWiYoScGjvhcyhN1lHhQxKNAODB2IMFCAoduELeI311wGbV/XQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=coderedcorp.com; dmarc=pass action=none
 header.from=coderedcorp.com; dkim=pass header.d=coderedcorp.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coderedcorp.com;
 s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=f2UR7TWeErHJyZSi294XVKOe2NqnEUv+H9EYYOysijU=;
 b=hMZPLZgv63wt4mr9M2bhtHdBfrCN2jMvAoVKznQGMfo7SCRggAQdXcdezeHlfiYoQ++nVfDJmo5j/P+6cMHzQSkarNUg+EQfimWmxtS66MkFuSolb+RrmOMAO3SsTgLGDAD5ARtOS/Qzd6caA/oydHq7jb/ahDvyNmnWB1HwCLc=
Received: from CH2PR12MB4231.namprd12.prod.outlook.com (2603:10b6:610:7d::24)
 by CH2PR12MB4088.namprd12.prod.outlook.com (2603:10b6:610:a5::8) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Tue, 26 Oct
 2021 04:46:28 +0000
Received: from CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::55e4:7d22:a6df:970b]) by CH2PR12MB4231.namprd12.prod.outlook.com
 ([fe80::55e4:7d22:a6df:970b%6]) with mapi id 15.20.4628.020; Tue, 26 Oct 2021
 04:46:27 +0000
From: Vince Salvino <salvino@HIDDEN>
To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Subject: Support system dark mode on Windows 10
Thread-Topic: Support system dark mode on Windows 10
Thread-Index: AdfKJC1fFkosmLKeRpu5RIGxKoA2eg==
Date: Tue, 26 Oct 2021 04:46:27 +0000
Message-ID: <CH2PR12MB4231758A937F6FB9F33291CFA5849@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
authentication-results: gnu.org; dkim=none (message not signed)
 header.d=none;gnu.org; dmarc=none action=none header.from=coderedcorp.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 04c44189-8e8b-4133-642e-08d9983b929a
x-ms-traffictypediagnostic: CH2PR12MB4088:
x-microsoft-antispam-prvs: <CH2PR12MB4088CABDFC5BAA5D2C5F4573A5849@HIDDEN>
x-ms-oob-tlc-oobclassifiers: OLM:7219;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: LA54nUrWLyeU87AmH2xEl8SzO8O2gzCB7S/w1WJ1WiVkm48yXkDpfoFNudFKb4NMxILp77uZYiuhLcb9KWhrMVaBnsBRvHyoc8H/baNWxKhNAVY/NfwkRn3LW981lZT/VQIrz0chXPvwlZ445MaVC0MYVIf5FJnc8kyo77NFNuw2x6QPWJ6I9+2NRHufly1m7j1JS7X3b9i3R/puUZrJHN+VbmEDrSUHN7VCUmI9lO5crL47CtkyzeBRmIEGC5KWxkfEEbaS8o71fAFgYIySj0CX1tfPCxYK9NTQw4rFksolLTdFe+o9/yyIsJPOm5gjyEWBM51rSUQ2newxiI2YDYHhrwCAjtPmqyDCDXe4/WA2tCyCOjZMXCeL+sEhF/Rgs3gD87Jfil2JxJUT8EkTGN6LwUbklVcogHsjXcLnC6pm02Jh1HVHPPUk/oQ2yxc5eJHUy/z+cS75/woRjQhNaWfcUcvWg7h1dGPx+Q4q7oL9eJomUXzd10bmKvlS9SSyFulnpegXY6F48QLuQugRvMHJwflyENZGoZe23YoDoEZj3JxDCyh0Unem9H6fFUiiJiQIxb9hM3/4jNTUT3Y5cLUkKtHIBod+1W/t2yqpbdyeOrCEnAmdINdn3jzqQO+5wflG5rI0hAaEnhNQ9+IO9H7LtLwApQhyVFiP+hPrjBqmJMYVT4C6J+Dr6nzrxe+aL7uavqORwAy69bRRP/KQDl+eglF89I+kYZ3SvHtUwkFH19hM+ZW8sCUTRwgONjOGhMrkqw0NMsN0X9lN57P/CtpUobBq+2+bmBiPlt17b7I=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:CH2PR12MB4231.namprd12.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(39830400003)(136003)(396003)(376002)(346002)(366004)(558084003)(99936003)(508600001)(122000001)(33656002)(38100700002)(4270600006)(8936002)(86362001)(55016002)(8676002)(38070700005)(316002)(66446008)(64756008)(66476007)(66946007)(66556008)(76116006)(2906002)(9686003)(71200400001)(966005)(6506007)(5660300002)(7696005)(186003)(26005)(6916009)(52536014);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?n7T/01rgr5Gow8KM5pfUUXtb2AfK9hLo6Ycu71FYIpvaBN19uKLz+yz5r8PO?=
 =?us-ascii?Q?xPxnSq3beE8fgcF0W+mynW9qBMoYFqiKpdJTkL6ToqxCY3YlU3YSVZWCILRP?=
 =?us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us-ascii?Q?BVxS1V2E/tvEKK84R8SMss/ro8AAEYCnJtXmlTzGuABWMPAWuBbEjcTNfnP7?=
 =?us-ascii?Q?x8gzleF8oyfzbDrNlgUkcY0cW384RopyP/wUho+E2HYrJmrFXn0zHX96mBxC?=
 =?us-ascii?Q?PFWH3IUb/KY+EBuoNpUa3oHtWb/3kg+DW3panAEgkHReLqgwUADnKVN5AoOR?=
 =?us-ascii?Q?+i7fl5g1xCBiMA3yEahYFfwXmoI6MksT9krvGGmsOMXLGbHeoQUMXMWgIG5c?=
 =?us-ascii?Q?C359xcESXKKySWZz9aeQlP33DfD+tyZplzjSuF/VcOBIwP7mVNdlmOK4DNFA?=
 =?us-ascii?Q?jkcaXXM4vFp/S0gPVF8PY5hJC/Dl/IyuMrduwkPKgY3pUTnwQrxqHaNe8J43?=
 =?us-ascii?Q?KPh8N48K1QWtfFmm4Bqgs5vniDeT/HumBMMUrjZCQ5JE17ghAYzSl6+VMM7S?=
 =?us-ascii?Q?YreevEi/w1+Y87QKyfPy9wX7yZ6zQTxGAoac44un1IIJ+AN5SlRtCDHMI/BK?=
 =?us-ascii?Q?mkJnkv8UarHzs5HCEN5ULtT3JkrFGVAiPewxcZDBAFuvDXnL0KHWbiRQF9Xs?=
 =?us-ascii?Q?6rKzh9ddnJmU2YtWalM2FOzQD9qN9RPbdeD2G+IZh8+OblyhL1eBFylr7TBY?=
 =?us-ascii?Q?4oiuq4JdkJgX9Mt0UGvwb9o31qHWgAL4ntB1QFyShbNuEI6xymABCYahd1dV?=
 =?us-ascii?Q?YIr1W7YooB9hntfdXHXvcJE=3D?=
Content-Type: multipart/mixed;
 boundary="_002_CH2PR12MB4231758A937F6FB9F33291CFA5849CH2PR12MB4231namp_"
MIME-Version: 1.0
X-OriginatorOrg: coderedcorp.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4231.namprd12.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 04c44189-8e8b-4133-642e-08d9983b929a
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2021 04:46:27.8107 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 9c94adb1-2ce8-484f-be82-c9b5127d4cb1
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: BfXt4bWh/3jLtYIdzBwFkPAtCAZcYIPGmD7FQYRtTf/ZtXch0J2MXQ4VUCJZkjUtjEMHxmP9vee9XC25aYG0BQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4088
Received-SPF: pass client-ip=40.107.237.69;
 envelope-from=salvino@HIDDEN;
 helo=NAM12-BN8-obe.outbound.protection.outlook.com
X-Spam_score_int: -1
X-Spam_score: -0.2
X-Spam_bar: /
X-Spam_report: (-0.2 / 5.0 requ) BAYES_20=-0.001, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 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-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 26 Oct 2021 02:57:37 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--_002_CH2PR12MB4231758A937F6FB9F33291CFA5849CH2PR12MB4231namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Attached is the patch. Additional info available here: https://github.com/v=
salvino/emacs


Vince Salvino


--_002_CH2PR12MB4231758A937F6FB9F33291CFA5849CH2PR12MB4231namp_
Content-Type: application/octet-stream;
	name="0001-Support-system-dark-mode-on-Windows-10-version-2004-.patch"
Content-Description:  0001-Support-system-dark-mode-on-Windows-10-version-2004-.patch
Content-Disposition: attachment;
	filename="0001-Support-system-dark-mode-on-Windows-10-version-2004-.patch";
	size=7491; creation-date="Tue, 26 Oct 2021 04:37:55 GMT";
	modification-date="Tue, 26 Oct 2021 04:37:55 GMT"
Content-Transfer-Encoding: base64

RnJvbSAyNWVjNjNiOWU2ZGZjNDExODM3YWE5MzZjMDZhOWE4NDhjNjkwZjQ5IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBWaW5jZSBTYWx2aW5vIDxzYWx2aW5vQGNvZGVyZWRjb3JwLmNv
bT4KRGF0ZTogTW9uLCAyNSBPY3QgMjAyMSAyMjoxODo0NiAtMDQwMApTdWJqZWN0OiBbUEFUQ0hd
IFN1cHBvcnQgc3lzdGVtIGRhcmsgbW9kZSBvbiBXaW5kb3dzIDEwIHZlcnNpb24gMjAwNCBhbmQK
IGhpZ2hlci4KCi0tLQogc3JjL3czMi5jICAgIHwgMTEgKysrKystLQogc3JjL3czMi5oICAgIHwg
IDMgKysKIHNyYy93MzJmbnMuYyB8IDgxICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysr
KysrKysrKysrKysrKysrKysrLS0KIDMgZmlsZXMgY2hhbmd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IHdpbmRvdyB0aGVtZXMuICovCisgICAgSE1PRFVM
RSBkd21hcGlfbGliID0gTG9hZExpYnJhcnkoImR3bWFwaS5kbGwiKTsKKyAgICBEd21TZXRXaW5k
b3dBdHRyaWJ1dGVfZm4gPSAoRHdtU2V0V2luZG93QXR0cmlidXRlX1Byb2MpCisgICAgICBnZXRf
cHJvY19hZGRyIChkd21hcGlfbGliLCAiRHdtU2V0V2luZG93QXR0cmlidXRlIik7CisgICAgSE1P
RFVMRSB1eHRoZW1lX2xpYiA9IExvYWRMaWJyYXJ5KCJ1eHRoZW1lLmRsbCIpOworICAgIFNldFdp
bmRvd1RoZW1lX2ZuID0gKFNldFdpbmRvd1RoZW1lX1Byb2MpCisgICAgICBnZXRfcHJvY19hZGRy
ICh1eHRoZW1lX2xpYiwgIlNldFdpbmRvd1RoZW1lIik7CisKKyAgICAvKiBDaGVjayBXaW5kb3dz
IFJlZ2lzdHJ5IGZvciBzeXN0ZW0gdGhlbWUuIERXT1JEIHNldCB0byAwIG9yIDEuICovCisgICAg
TFBCWVRFIHZhbCA9IHczMl9xdWVyeV9yZWdpc3RyeQorICAgICAgKCJTb2Z0d2FyZVxcTWljcm9z
b2Z0XFxXaW5kb3dzXFxDdXJyZW50VmVyc2lvblxcVGhlbWVzXFxQZXJzb25hbGl6ZSIsCisgICAg
ICAgIkFwcHNVc2VMaWdodFRoZW1lIiwKKyAgICAgICBOVUxMKTsKKyAgICBpZiAodmFsICYmIChE
V09SRCkqdmFsID09IDApIHsKKyAgICAgIHczMl9kYXJrbW9kZSA9IFRSVUU7CisgICAgfQorICB9
CisKICAgZXhjZXB0X2NvZGUgPSAwOwogICBleGNlcHRfYWRkciA9IDA7CiAjaWZuZGVmIENZR1dJ
TgotLSAKMi4zMy4wLndpbmRvd3MuMgoK

--_002_CH2PR12MB4231758A937F6FB9F33291CFA5849CH2PR12MB4231namp_--




Acknowledgement sent to Vince Salvino <salvino@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#51404; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 10 Sep 2022 05:00:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.