WinMerge / winmerge

WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
https://winmerge.org/
GNU General Public License v2.0
6.61k stars 805 forks source link

Foreground and background title bars are distinguishable #2497

Closed lededev closed 3 weeks ago

lededev commented 3 weeks ago

Currently, with multiple WinMerge instances open, it’s difficult to identify the active window. This PR changes the title bar background color when the program loses focus, making it easier to spot the active window among multiple instances. Before 屏幕截图 2024-10-27 214315 After f20241027T215958 With colorful picture wallpaper, the distinction between the two backgrounds remains low. However, I believe color adjustments should not be decided by me, so I am only submitting the functional code.

sdottaka commented 3 weeks ago

Thank you for the PR. I would prefer not to include MainFrm.h in MDITabBar.cpp if possible, so I may change it later so that it does not include MainFrm.h.