zhongyang219 / TrafficMonitor

这是一个用于显示当前网速、CPU及内存利用率的桌面悬浮窗软件,并支持任务栏显示,支持更换皮肤。
Other
35.13k stars 3.26k forks source link

Windows 7 Trasparency issue (yes, i'm still using W7 on some machines) #358

Open derei opened 4 years ago

derei commented 4 years ago

TrafficMonitor v1.78 (x64)

Enabling Transparency in Windows7 seems to cause some weird behaviour as you can see in the following images:

  1. Transparency ON, the task bar widget looks fine. TM_Transparency_ON

  2. Transparency ON, but a window dragged lower than the task bar. Will interfere with TrafficMonitor, causing a weird look because of the transparent "cutout" in the taskbar. TM_Transparency_ON_Glitch

  3. Transparency OFF - I'd expect the background of the taskbar notification to be as set in color settings. However, it looks bright gray and the text is all white. I believe this is a bug and it should be fixed. TM_Transparency_OFF

Worth mention that my windows has this visual style alteration applied: http://www.windowsxlive.net/windows-10-transformation-pack/

I hope this helps to bring up a fix.

derei commented 4 years ago

Wondering if this issue has been considered or completely ignored...

aviegdown commented 3 years ago

since you're using custom theme, i don't think the problem come from TrafficMonitor.

after doing some test i found that this is happen if you disable transparency and set color intensity to 0

try set color intensity to 100 if you disable transparency

derei commented 3 years ago

Thanks for looking into it. From what I could see, the issue may be with how the taskbar and your app interact. It looks like the colored background for Traffic Monitor has a different Z-value than the text. So, whilst the text is on top of everything, the colour goes behind windows that are being dragged under the taskbar.

As you will be able to see in the attached screenshot, I made Traffic Monitor's Bg Green:

My thought is that it could prove useful to look into how the different layers are stacked in relation to other elements.

traffic_monitor

zhongyang219 commented 3 years ago

Thanks for your feedback. Actually I have noticed this problem in Windows 7. But now I have no idea to fix this problem. There is a "Background transparent" option beside "Background color", but you can see that it is disabled in Windows7. Because I found that it doesn't word in Windows7. In Windows8/10, this option works. If you are using TrafficMonitor in Windows7, it is recommend to set the background color in TrafficMonitor to pure black (RGB: 0, 0, 0), and try to increase the color intensity in Personalization in Windows 7.