zhiyiYo / PyQt-Frameless-Window

A cross-platform frameless window based on pyqt5, support Win32, Linux and macOS.
https://pyqt-frameless-window.readthedocs.io
GNU General Public License v3.0
485 stars 67 forks source link

窗口效果改进建议 #77

Closed TaoChenyue closed 1 year ago

TaoChenyue commented 1 year ago

调用Windows底层的亚克力效果会导致窗口变卡。要不要用fluentwidgets里面的AcrylicLabel实现方法来代替。 我看watt toolkit就有很多种窗口效果,而且还不卡。 image

zhiyiYo commented 1 year ago

watt toolkit 用的就是 WinUI 提供的 AcrylicBrush 来绘制的背景,而 PyQt-Frameless-Window 用的是系统 API,比不了呀

zhiyiYo commented 1 year ago

用 AcrylicLabel 也做不到这种效果,因为检测不到窗口下方的背景是否发生变化,除非定时截屏

TaoChenyue commented 1 year ago

也许可以pillow截图

zhiyiYo commented 1 year ago

截图也截不到窗口下方的样子

TaoChenyue commented 1 year ago

如果不考虑桌面图标的话,可以获取当前桌面壁纸来截。

zhiyiYo commented 1 year ago

窗口下方还可能有别的窗口

TaoChenyue commented 1 year ago

隐藏窗口然后截图不知道性能怎么样

TaoChenyue commented 1 year ago

算了,略卡😂