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

+1 -1
View File
@@ -77,7 +77,7 @@ static void load_themes(themes_state_t *st) {
static void apply_selected(themes_state_t *st) {
if (st->sel < 0 || st->sel >= st->num_items) return;
const char *argv[] = {"/usr/bin/geminux-apply-theme", st->items[st->sel].name, NULL};
int rc = gemui_run_cmd_capture(argv, NULL, 0);
int rc = gemui_run_cmd_timeout(argv, NULL, 0, 10000);
gemui_theme_reload(st->app);
gemui_show_toast(st->app, rc == 0 ? "Applied .Xresources, GTK2/3/4, Qt, Tk & dunst theme" : "Theme apply failed", 2000);
gemui_request_redraw(st->app);