--- a/ui/common/utils.c Sun Nov 23 10:23:10 2025 +0100 +++ b/ui/common/utils.c Sun Nov 23 10:39:51 2025 +0100 @@ -27,6 +27,7 @@ */ #include "utils.h" +#include "properties.h" #include <cx/string.h> @@ -69,3 +70,16 @@ return elms; } + +void ui_get_window_default_width(int *width, int *height) { + const char *width_str = ui_get_property("ui.window.width"); + const char *height_str = ui_get_property("ui.window.height"); + if(width_str && height_str) { + int w = atoi(width_str); + int h = atoi(height_str); + if(w > 0 && h > 0) { + *width = w; + *height = h; + } + } +}