Maplespe / DWMBlurGlass

Add custom effect to global system title bar, support win10 and win11.
GNU Lesser General Public License v3.0
1.54k stars 72 forks source link

Windows Vista/7 window gradients #156

Open TorutheRedFox opened 5 months ago

TorutheRedFox commented 5 months ago

Windows Vista and 7 aero themes have dynamically applied gradients in the corners of the entire ncarea and a reflection on unextended window borders

Windows 8 and up no longer apply these effects. It'd be great to have them be dynamic again just like the parallax reflection to allow for greater theming flexibility

TorutheRedFox commented 5 months ago

oh and an option to pull all those effects from msstyles classes would be great too

TorutheRedFox commented 5 months ago

the classes seem to be DWMWindow::FRAMELEFT_EFFECT for the corner gradients (I assume vista had FRAMERIGHT_EFFECT judging by its atlas but they removed it since it was just a mirrored version of FRAMELEFT_EFFECT) and DWMWindow::SIDEHIGHLIGHT, with it stretching across the full width of the window underneath and nearly full height (from the very bottom to just under the titlebar) as long as the window doesn't have extended frames i think?

Asad-13 commented 5 months ago

oh and an option to pull all those effects from msstyles classes would be great too

I found a Winaero article that talks about the msstyles colours https://winaero.com/get-colored-title-bars-in-windows-10/

I was going to open a new discussion for it, suggesting that the colours can be pulled from msstyles this way (and hence, in my understanding of that article, follow the accent colour), but since this issue was already open, figured I would comment it here.

TorutheRedFox commented 5 months ago

oh and an option to pull all those effects from msstyles classes would be great too

I found a Winaero article that talks about the msstyles colours https://winaero.com/get-colored-title-bars-in-windows-10/

I was going to open a new discussion for it, suggesting that the colours can be pulled from msstyles this way (and hence, in my understanding of that article, follow the accent colour), but since this issue was already open, figured I would comment it here.

those colors are actually the custom color pulled from a registry key and set in the personalize UI when Aero is used in Vista and 7, and the accent color in settings on 8 and later, and isn't what this issue is about

OliviaIsTyping commented 5 months ago

Bump

aubymori commented 5 months ago

the classes seem to be DWMWindow::FRAMELEFT_EFFECT for the corner gradients (I assume vista had FRAMERIGHT_EFFECT judging by its atlas but they removed it since it was just a mirrored version of FRAMELEFT_EFFECT) and DWMWindow::SIDEHIGHLIGHT, with it stretching across the full width of the window underneath and nearly full height (from the very bottom to just under the titlebar) as long as the window doesn't have extended frames i think?

FYI, the string ID is just a mapping by msstyleEditor; the real numerical part IDs are 34 for FRAMELEFT_EFFECT and 43 for SIDEHIGHLIGHT.

TorutheRedFox commented 5 months ago

ah