Fix logo size on non centered main menu

This commit is contained in:
Agent X 2024-06-22 10:33:22 -04:00
parent c5237b2d30
commit 9f9ed61e3a
1 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,11 @@ void djui_panel_main_create(struct DjuiBase* caller) {
struct DjuiBase* body = djui_three_panel_get_body(panel); struct DjuiBase* body = djui_three_panel_get_body(panel);
{ {
struct DjuiImage* logo = djui_image_create(body, texture_coopdx_logo, 2048, 1024, 32); struct DjuiImage* logo = djui_image_create(body, texture_coopdx_logo, 2048, 1024, 32);
djui_base_set_size(&logo->base, 550, 275); if (configDjuiThemeCenter) {
djui_base_set_size(&logo->base, 550, 275);
} else {
djui_base_set_size(&logo->base, 500, 250);
}
djui_base_set_alignment(&logo->base, DJUI_HALIGN_CENTER, DJUI_VALIGN_TOP); djui_base_set_alignment(&logo->base, DJUI_HALIGN_CENTER, DJUI_VALIGN_TOP);
djui_base_set_location_type(&logo->base, DJUI_SVT_RELATIVE, DJUI_SVT_ABSOLUTE); djui_base_set_location_type(&logo->base, DJUI_SVT_RELATIVE, DJUI_SVT_ABSOLUTE);
djui_base_set_location(&logo->base, 0, -30); djui_base_set_location(&logo->base, 0, -30);