-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated offsets to work with the most recent versions of Windows
(tested with Windows 11 22000.176, but it probably works on everything in between last year and today, most probably also on 19041/2/3 with latest CUs - some member was added to the beginning of the CText class and it shifted everything further down by 2...
- Loading branch information
Showing
1 changed file
with
29 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2959f9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi!
What does "differences are in how the title bars are colored" mentioned in the release notes mean in practice?
2959f9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I remember, if you use a theme called other than “aero.msstyles”, the title bar will always get colored in the accent color, no matter what the setting to “Show color on Start, taskbar and title bar” in Settings is set to. So, this application also patches the variable that indicates to DWM whether to draw the title bar white, so that when you use a custom theme, you get the behavior from Aero. This is useful when you adjust the title bar text alignment in the theme file (CONTENTALIGNMENT) and get a different aero_modified.msstyles let’s say and when you use that you suddenly lose the white title bar and get your accent color on it. Yeah, you could replace aero.msstyles altogether, but to avoid replacing system files, I also added this feature. This isn’t useful though when you use a custom theme and the title bars suddenly become white despite expecting the theme to have them colored in some way. So there you don’t want this behavior…
Maybe the code needs a bit of refactoring and some better comments to explain what is going on, I admit, but fortunately the app is relatively stable, after all, all that change in newer DWM is just one more variable added to the struct that shifted everything down, the way it works internally otherwise is the same as a year ago.
2959f9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@valinet
Thanks.