See commits. The nicer one is the first - not using Cairo is always a good choice when it comes to GTK4.