News for hackers. Stuff that matters.
Re:Gtk4 Tutorial by phoneperson on Thursday October 21, 2021 @12:44AM (#28940360)
How can I load css as a user?

As for the solution, why not remove shadows for non-composing wms?

Re:Gtk4 Tutorial by md8z on Thursday October 21, 2021 @12:46AM (#28940373)
Any CSS you put in ~/.config/gtk-4.0/gtk.css will load, you can put an @import statement there to load from another file.

The issue is not the shadows, the popup window itself is shaped. All that black region is supposed to be transparent. To fix with CSS you'd have to get rid of the "arrow" and make the corners square. But that may reduce usability of the popover since it no longer "points" to the parent. Maybe it could be positioned inside the popup somehow.

Re:Gtk4 Tutorial by phoneperson on Thursday October 21, 2021 @12:53AM (#28940423)
Thanks, will check the css solution.
Re:Gtk4 Tutorial by md8z on Thursday October 21, 2021 @12:58AM (#28940458)
You may also want to update your setup or use a compositor like picom if you want any kind of real transparency effects, X11 compositing is about 15 years old now so I think not having it would qualify as "extremely out of date" in software years...
Re:Gtk4 Tutorial by phoneperson on Thursday October 21, 2021 @01:02AM (#28940495)
I am not really a fan of transparency and other effects.
Re:Gtk4 Tutorial by md8z on Thursday October 21, 2021 @01:06AM (#28940521)
The option is there for you if you need it, at some point you may find that apps require it, and trying to hack around it could be impractical.