-
Notifications
You must be signed in to change notification settings - Fork 193
Add support to sync Windows Theme with mintty #1305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for working this out. Initial comments: I’d keep the position of new attributes in sync in config.h and config.c initialisation, and place dark_theme after theme_file. Function name set_new_cfg is quite generic, handling only themes. Initialisation in winmain: Dynamic adaptation in winmain: I think this shouldn’t be checked continuously but hooked to a suitable Windows message like WM_WININICHANGE. Style: Please don’t remove empty lines where useful for structuring and keep some space after if, while, etc. |
…and add missing spaces after statements
Thank you for the review.
|
Hi, sorry for the delay. |
Sorry for the delay as well. You can go ahead and finish this PR, since some parts might require more knowledge of the system, and right now, unfortunately, I can't put in the time. As for the strategy, using the authorship seems more reasonable, since both of us would have worked on it. Thank you for your time. |
I have now integrated the dark mode theme with the following changes:
|
Released 3.7.8 with option ThemeDark, not yet in interactive Options dialog. |
merge from f18e7a4 commit f18e7a4 Wed Jun 4 2025 avoid repetitive painting of images commit c6998b4 Sat May 24 2025 change default setting UnderlineManual=true for consistent line placement commit 546bae7 Sun May 18 2025 accept (but ignore) XTMODKEYS subparameters (xterm 398) commit 92d37ab Tue Apr 1 2025 fix emoji invisible and blinking attributes commit 9a5ac91 Tue Apr 1 2025 fix darkmode/wakeup refresh to not override dynamic OSC colour settings commit 6d2730d Mon Mar 24 2025 wiki Tips: workaround for mouse mode interaction with console-based programs (mintty#1319) commit c1db151 (tag: 3.7.8) Sat Mar 22 2025 3.7.8 commit b1ea03f Sat Mar 22 2025 tweak Makefile commit c5d045b Fri Mar 21 2025 tweak handling of image size limit commit 34ea393 Fri Mar 21 2025 change image size limit to configurable value, new option MaxImageSize, default 4444444 commit 32fc955 Fri Mar 21 2025 fix reflow to avoid vanishing graphics on terminal resizing commit a2ee38f Wed Mar 19 2025 hair cross mouse pointer in pixel-grained mouse reporting modes; new option PixMousePointer commit 0b50584 Mon Mar 17 2025 fix frame adjustment when disabling darkmode commit 00b9b81 Sun Mar 16 2025 fix mouse position click coordinates to adapt to horizontal scrolling commit 28673e0 Sun Mar 16 2025 fix graphics (image/sixel) and emoji display to adapt to horizontal scrolling commit db391ac Sun Mar 9 2025 Arabic joining considers ZWJ and ZWNJ formatters commit b784671 Sun Mar 9 2025 minibidi code cleanup commit 21ca363 Sat Mar 8 2025 adapt theme on change of Windows Dark Mode (mintty#1305, ~mintty#1303) commit 59e8c04 Sat Mar 8 2025 new option ThemeDark to be used if Windows Darkmode is set (mintty#1305, ~mintty#1303) commit 4c73970 Tue Mar 4 2025 changed prefix ">" in option FontChoice to center CJK ranges (mintty#1313) commit b819ad0 Sat Mar 1 2025 man page: proper rendering of ^ commit 8499fd4 Tue Feb 25 2025 propagate TERM config setting to WSL HOSTTERM variable (mintty/wsltty#290, ~mintty/wsltty#278) commit e19baf9 Tue Feb 25 2025 wiki Tips: mention “emoji width” mode (DECSET 2027) commit f968dd2 Sun Feb 23 2025 wiki Tips: advice to the conhost patch to make a backup copy first (~mintty#1239)
As discussed in issue #1303, this PR allows Mintty to sync when the user changes the "app mode" in Windows 10/11.
A few points on my side: