Hello, I’m trying to add a blur effect with GTK4 but there is a strange transparency effect around borders, any idea ?
class Picture(Gtk.Picture):
def do_snapshot(self, snapshot):
rect = Graphene.Rect()
rect.init(
0, 0, self.get_allocated_width(), self.get_allocated_height()
)
snapshot.push_blur(100)
rgba=Gdk.RGBA()
rgba.alpha = 0.5
rgba.red = rgba.blue = rgba.green = 0
Gtk.Picture.do_snapshot(self, snapshot)
snapshot.pop()
snapshot.append_color(rgba, rect)