Initial dark mode support via darkmodelib#2834
Conversation
3ebb6b1 to
7ec1cd4
Compare
|
@ozone10: Nice, thanks! |
|
Thank you for the PR. Once I finish working on my current PR, I'd like to test this one in various scenarios. |
|
@sdottaka |
17de938 to
d4ffded
Compare
d4ffded to
aa528b2
Compare
|
Thank you for the PR. I’ll merge it temporarily, create a new darkmode branch, revert the changes from master, and continue development in darkmode. |
|
Hi. I've been trying to build the darkmode branch but can't clear all the compile issues. Is there a prebuilt anywhere please? |
|
@dcog989 You may also need to adjust sdk version since WinMerge is currently using Line 58 in b80a582 instead of latest, and remove #if check for #pragma comment(lib, "windowsapp.lib")
winmerge/Src/ClipboardHistory.cpp Lines 20 to 22 in 566c31e |
|
@ozone10 - thanks very much, I think I followed those instructions and permutations of, but I must be missing something: I'm still running one of the builds from your testing, was hoping to update, but it's not essential. |
|
@dcog989 |
|
hey. thanks, that moved things forward but stuck with:
Something to do with flex / bison missing??? I added https://github.com/lexxmark/winflexbison/releases/tag/v2.5.25 to path but that didn't help. |
|
It seems DownloadDeps.cmd does not work properly if the folder name contains spaces, such as “winmerge dark 1.” Please try using a folder name without spaces. |
|
That did it! Many thanks. :) |
* ALL.vs2022.sln: Add darkmodelib as a dependency of the Merge project * Update frhed and sevenzip * Fix issue where font dialog was not translated * Fix issue where the color dialog opened from the Options dialog did not use dark mode * WIP: Add Color mode option to Options dialog * WIP: Add Color mode option to Options dialog (2) * Add MyColorDialog.* * Add MyFontDialog.* * WIP: Add Color mode option to Options dialog (3) * WIP: Add Color mode option to Options dialog (4) * Fix batch file execution failure when working directory contains spaces * Support dark mode for background and text colors when filter expressions have errors * WIP: Add Color mode option to Options dialog (5) * In dark mode builds, the Syntax Highlight menu no longer used multiple columns, making it harder to use. Split the languages into A–L and M–Z submenus. * Support dark mode for background and text colors when filter expressions have errors (2) * BCMenu.cpp: Correct radio dot color rendering in dark mode * crystaledit: Prevent lines from rendering black when using dark color scheme * DirSelectFilesDlg.cpp: Fix DirSelectFilesDlg not applying dark mode * HexMergeDoc.cpp: Fix text color of differences appearing black in dark color scheme * - Improve dark mode support for comparison windows using heksedit, winimergelib, and winwebdifflib - Update frhed 0.10904.2017.18 - Update winimerge to 1.0.46 - Update winwebdiff to 1.0.19.0 * Update Japanese translation * Attempt to fix CodeQL Analysis failure
Added translation for "Dark Mode Enhancements Following PR WinMerge#2834 (WinMerge#2885)"
|
@ozone10 |
|
@sdottaka |
|
You're right — according to GNU’s license list, there’s no issue. Sorry for the confusion; I trusted an AI answer without checking carefully. That said, I’ll probably keep using the DLL, since it also allows the x86 build of WinMerge to support DarkMode. (The x86 build still supports Windows XP and uses an older SDK, which fails to compile darkmodelib from source.) |
|
@sdottaka |
Currently dark mode depends on system setting and is only supported on Windows 10 build 19045 and Windows 11 on x64 or arm64. There is no dark mode setting implemented yet.
Only vs2022 variants were tested, but x86 and arm builds should work with older vs2017 and vs2019.
Unfortunately I will be busy for at least one week, so won't be able to work on this PR for now.
fix #396