On GTK4, "arrow slider" handles are too big and get cut off
nyanpasu64 opened this issue · 7 comments
In GTK4 apps, "sliders with arrows" are rendered at 2x their intended size, and overflow the bounding box and get cut off. This does not happen in Yaru (whose layout doesn't match Yaru Colors for some reason) or Adwaita.
When I run gtk4-widget-factory and switch between themes in the Inspector, Yaru Colors and Default have almost the same layout, but Yaru layouts differently. When I run gtk3-widget-factory and switch between themes in the Inspector, Yaru Colors, Yaru, and Adwaita have the same layout.
Arch Linux, AUR yaru-colors-gtk-theme and yaru-colors-gtk-theme-git are both affected.
Latest Yaru supports gtk4 completely while the 21.04 Yaru, which is used in my latest release, doesn't.
It'll be fixed when I updated Yaru-Colors for 21.10 (hopefully).
I'm very busy atm, so I don't have any eta.
It also happens with GTK3 apps, I believe the bug is caused in these code snippets :
Yaru-Colors/src/theme-script.sh
Lines 801 to 806 in 905e688
Yaru-Colors/src/theme-script.sh
Lines 899 to 904 in 905e688
Yaru-Colors/src/theme-script.sh
Lines 2047 to 2053 in 905e688
Where both $ASSETS_DIR/$i.png
should be $ASSETS_DIR/$i@2.png
(othrwise it's overwriting already generated normal-sized assets)
Few other typos, making some GTK2 assets not rendering :
Yaru-Colors/src/theme-script.sh
Lines 1632 to 1635 in 905e688
Yaru-Colors/src/theme-script.sh
Lines 1584 to 1587 in 905e688
Yaru-Colors/src/theme-script.sh
Lines 1680 to 1683 in 905e688
Where each time
$SRC_FILE
should be replaced by $SRC_FILE_EXTERNAL
And finally :
Yaru-Colors/src/theme-script.sh
Line 1468 in 905e688
.svgpi
-> .svg
Can you do a pull request for this? The lack of time for this project is really hard for me...sorry.