Maplespe / DWMBlurGlass

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

feature request: custom text glow radius #12

Closed not-nullptr closed 8 months ago

not-nullptr commented 8 months ago

hello! your efforts are greatly appreciated and the fact that you've eseentially got feature parity with glass8 within a few days is mind blowing. that being said, the ability to tweak the text glow radius would be appreciated :]

Olive6841 commented 8 months ago

hello! your efforts are greatly appreciated and the fact that you've eseentially got feature parity with glass8 within a few days is mind blowing. that being said, the ability to tweak the text glow radius would be appreciated :]

i second this

Maplespe commented 8 months ago

In fact the win10 title bar has a crop area limit which is limited to the text rectangle size. I'm trying to fix this as best I can, if the radius is too large, the glow effect goes beyond the text rectangle and gets cropped to a rectangular box, which is very ugly. This is not a problem that can be solved by customizing radius. So I'm going to look into optimizing this to get it closer to Win7. When cropped it looks like this: M{_F1NS_I%{Z@C%A Z$Q_43

not-nullptr commented 8 months ago

In fact the win10 title bar has a crop area limit which is limited to the text rectangle size. I'm trying to fix this as best I can, if the radius is too large, the glow effect goes beyond the text rectangle and gets cropped to a rectangular box, which is very ugly. This is not a problem that can be solved by customizing radius. So I'm going to look into optimizing this to get it closer to Win7. When cropped it looks like this: M{_F1NS_I%{Z@C%A Z$Q_43

such a shame; microsoft will always find ways to stop customizability. good luck fixing it ^-^

Dulappy commented 8 months ago

Hello, I'm the creator of another customization program for Windows 10 called Aero Window Manager (though it's not an actual window manager), which is currently in closed beta. The crop area is caused by some optimizations done to the rendering, and I'm not sure how easily fixable it is; I personally just rewrote the entire text rendering routine to use DirectWrite instead, and even managed to get glow working using some other tweaks, however that caused a multitude of bugs, so I'll have to find a different method, probably using MIL elements if I can get those working properly. Do you have anywhere I can message you directly, @Maplespe?

Maplespe commented 8 months ago

@Dulappy Do you have Twitter or Telegram? Or you can send your contact info to me at winmoes@qq.com.

Dulappy commented 8 months ago

My Twitter is @dulappyy. It's private currently, but you can send a follow request.

Maplespe commented 8 months ago

@not-nullptr You can try this first, I've optimized the rendering and it should look like this: 1A2{IZO0}KZ{6OTK3_YQC X Release_x64.zip

not-nullptr commented 8 months ago

@not-nullptr You can try this first, I've optimized the rendering and it should look like this: 1A2{IZO0}KZ{6OTK3_YQC X Release_x64.zip

the glow looks great, although the text now seems too far to the right (and maybe a pixel too far down?)

first pic is using dwmblurglass, second is on windows 7:

image image

Olive6841 commented 8 months ago

@not-nullptr You can try this first, I've optimized the rendering and it should look like this: 1A2{IZO0}KZ{6OTK3_YQC X Release_x64.zip

the glow looks great, although the text now seems too far to the right (and maybe a pixel too far down?)

first pic is using dwmblurglass, second is on windows 7:

image image

Yeah dulappy mentioned to me that was a trade off I think

CallyHam commented 8 months ago

the text is also too high on maximized windows image

Maplespe commented 8 months ago

Release_x64.zip

CallyHam commented 8 months ago

now its the correct height in fullscreen but the text cuts off at the bottom, the glow also cuts off in some other windows too like open/save dialogs and color dialogs image image image

Maplespe commented 8 months ago

Currently his rendering should be correct at high DPI, for low DPI further research is needed.

CallyHam commented 8 months ago

oh ok 100% dpi would be a good thing to look into since its the default and likely what most people are using

Maplespe commented 8 months ago

This has been fixed and I'm posting the attachment to #5 .

CallyHam commented 8 months ago

This has fixed the text glow issues i was having, the reflections look normal now but now they only show on whatever monitor is most to the left, in the image you should be able to see where it cuts off. image

Maplespe commented 8 months ago

@CallyHam You will need to drag the window fully to the second monitor for this to work, and due to performance optimization I am not going to create oversized bitmaps across 2 monitors. So on a single monitor only the texture of the target monitor will be displayed.