media-player: Center non square icons and round corners

This bothered me for a long time and I thought I'd sit through it for until the GTK4 switch but as I wasn't able to do much recently besides listening to a pod casts this was glaring at me a lot: The thumbnail FF provides for video sites not square leading to this:

Non centered thumbnail (Click to expand) image

Now I had to refresh my cairo when finalizing phoc!704 (merged) so we now have:

Centered thumbnail (Click to expand) image

Since the above MR rounds corners we can use the identical code (inspired by https://www.cairographics.org/samples/rounded_rectangle/) to help #697 too:

Thumbnail before (Click to expand) image
Thumbnail after (Click to expand) image

I've labeled it for 0.50 but if it gets some review it could make it into 0.49 even.

/cc @snwh as he opened #697 a long time ago. Maybe you have a comment on the border radius?

Merge request reports

Loading