[GTK]Is it possible to achieve Glass/Blur effect in GTK?

别来无恙 提交于 2021-01-28 07:13:38

问题


I was wondering if it's possible for any widgets to acquire MacOS-like blurry transparent background. Deepin Desktop Environment is able to emulate this on their context menu with Qt. Windows is slowly adopting this style after they dropped aero.

Also, I was wondering if there's any way to ship a GTK application that do not follow user themes/fonts in *nix desktops so I can lock it down with my own CSS style.

Thanks in advance.


回答1:


not yet, but there is currently in development a gskblurnode event in GTK 4.0+, the dev build is 3.91.2. which i've seen a demo as well. keep track of development here https://wiki.gnome.org/Projects/GTK%2B/Roadmap/GTK4

and there is a video on youtube here with the demo. which also uses vulkan as the new renderer https://www.youtube.com/watch?v=Gqo8nJKjcis



来源:https://stackoverflow.com/questions/45456175/gtkis-it-possible-to-achieve-glass-blur-effect-in-gtk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!