Fix theme apply timeout and add full HiDPI scaling for gtkTtk and GTK2

This commit is contained in:
Luxferre committed 2026-11-25 22:11:12 +02:00
1 parent 983d529ec3
commit 3ea7d35aba
28 files changed
+919 -299

No files matched your search

+2
View File
@@ -112,6 +112,8 @@ static void ScaleSliderElementGeometry(
GtkTtk_gtk_widget_style_get(widget,
"slider-length", &slider_len,
"slider-width", &slider_width, NULL);
slider_width = std::max<int>(slider_width, GtkTtk_ScalePx(tkwin, 14));
slider_len = std::max<int>(slider_len, GtkTtk_ScalePx(tkwin, 24));
*heightPtr = *widthPtr = slider_width;
if (wc->orientation == TTK_ORIENT_HORIZONTAL) {
*heightPtr = slider_width;