From: Olaf Wintermann Date: Fri, 30 May 2025 15:56:47 +0000 (+0200) Subject: use toolkit go up/down icon macros X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=0b6de990cb484eed79f0bd15808b65ae8e870591;p=note.git use toolkit go up/down icon macros --- diff --git a/application/window.c b/application/window.c index 4dc52be..9f1e356 100644 --- a/application/window.c +++ b/application/window.c @@ -373,6 +373,11 @@ void action_notebook_config(UiEvent *event, void *userdata) { wdata->tab2_types = ui_list_new(obj->ctx, NULL); wdata->tab2_repositories = ui_list_new(obj->ctx, NULL); + // fill data + + + + // UI ui_grid(obj, .margin = 10, .columnspacing = 10, .rowspacing = 10, .fill = UI_ON) { ui_tabview(obj, .hfill = TRUE, .hexpand = TRUE, .vfill = TRUE, .vexpand = TRUE) { ui_tab(obj, "Groups") { @@ -382,8 +387,8 @@ void action_notebook_config(UiEvent *event, void *userdata) { ui_hbox(obj, .fill = UI_OFF) { ui_button(obj, .icon = UI_ICON_NEW_FOLDER); ui_button(obj, .icon = UI_ICON_DELETE); - ui_button(obj, .icon = "go-up"); - ui_button(obj, .icon = "go-down"); + ui_button(obj, .icon = UI_ICON_GO_UP); + ui_button(obj, .icon = UI_ICON_GO_DOWN); } } diff --git a/ui/ui/icons.h b/ui/ui/icons.h index cd4ef6c..9bc86a4 100644 --- a/ui/ui/icons.h +++ b/ui/ui/icons.h @@ -49,6 +49,8 @@ extern "C" { #define UI_ICON_DOCK_RIGHT "" #define UI_ICON_GO_BACK "go-previous" #define UI_ICON_GO_FORWARD "go-next" +#define UI_ICON_GO_UP "go-up" +#define UI_ICON_GO_DOWN "go-down" #endif /* UI_GTK */ @@ -68,6 +70,8 @@ extern "C" { #define UI_ICON_DOCK_RIGHT "DockRight" #define UI_ICON_GO_BACK "Back" #define UI_ICON_GO_FORWARD "Forward" +#define UI_ICON_GO_UP "Up" +#define UI_ICON_GO_DOWN "" // TODO: implement workaround for missing down symbol #endif /* UI_WINUI */