diff win/dw.c @ 1972:8e650172d8cf

Win: Add AllowDarkModeForWindow() to _dw_box_pack() internal function so widgets packed into live (alread shown) windows also get the dark mode flag set.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 06 Aug 2019 18:25:21 +0000
parents 8cf330e1e331
children 69d0b37082d0
line wrap: on
line diff
--- a/win/dw.c	Mon Aug 05 15:38:21 2019 +0000
+++ b/win/dw.c	Tue Aug 06 18:25:21 2019 +0000
@@ -7230,6 +7230,9 @@
 
       thisbox->count++;
 
+#ifdef AEROGLASS
+      AllowDarkModeForWindow(item, _DW_DARK_MODE_ENABLED);
+#endif
       SetParent(item, box);
       if(_tcsnicmp(tmpbuf, UPDOWN_CLASS, _tcslen(UPDOWN_CLASS)+1)==0)
       {