Skip to content

star-image: Transition between two icons

Adrien Plazas requested to merge aplazas/gnome-software:star-image into main

This replaces the custom drawing of a star by partially drawing a starred and a non-starred icon. This not only makes the code simpler, but it follows the GTK 4 recommendations of replacing custom drawings by widgets and CSS. This fixes deprecations in GTK 4.10 as gtk_snapshot_render_frame() is going away. This also allows us to more easily use more complex and different shapes, by using one icon for the starred part and another for the non-starred part.

Before

Capture_d_écran_du_2022-12-08_10-20-58

After

Capture_d_écran_du_2022-12-08_10-07-43

Merge request reports