From 13ca1cacdaaf721999ecf2e38a88d2762df8ea06 Mon Sep 17 00:00:00 2001 From: max Date: Sun, 27 Sep 2026 18:04:11 +0200 Subject: [PATCH] Align installer header text cleanly to the left with right-positioned header image --- LOGAR-LICENSING | 2 +- assets/wizard_header.bmp | Bin 25818 -> 25818 bytes compilation/assets/wizard_header.bmp | Bin 25818 -> 25818 bytes compilation/generate_branding_assets.py | 7 ++++--- compilation/installer_client.nsi | 1 + compilation/installer_server.nsi | 1 + 6 files changed, 7 insertions(+), 4 deletions(-) diff --git a/LOGAR-LICENSING b/LOGAR-LICENSING index 1519f6c..1190617 160000 --- a/LOGAR-LICENSING +++ b/LOGAR-LICENSING @@ -1 +1 @@ -Subproject commit 1519f6c17f05bae7851b98cccd12c5a89da92204 +Subproject commit 119061721a7f91498b5defdfd180686a2df381f9 diff --git a/assets/wizard_header.bmp b/assets/wizard_header.bmp index 680947d828bfb3ae4159ec54cdbf26189a26e30d..4f992325e37796d99c183a36a069ac4358f02f95 100644 GIT binary patch delta 403 zcmXZYK`4V^7zgm4w3W3+v^2>kjbTm8*jh8z46Uzi!hxNgMeU+wQk1CGKVpd-oRnx+ zDaV~O2Z!$bQ*^?Fe79=jm; z=~=w>*IGisetb#ohpl>jcKpofBrNVz+Ab&APU|GZR7SyR|K>GAye=x58)?U?k-p+7rP<-h?X%!cKl8fN1;O3YE|C{(EthJu>s3eXrOmMY1ALB>!TQj>pZ&Vj0tn!HCF#ulGkt2-YmE-~3je;%C8W{6;) zGJ>(iC-<7b)Qe9JG=s6FCQDer%#@q_z;XuMJ&UbjZUDKHb8><01gMP&*7J$N9EF+4_?e n{b6xqHu+5eEdDGfZw{)3s&SlL9|Df=%??qsxHj)&_F)A88?UwA diff --git a/compilation/assets/wizard_header.bmp b/compilation/assets/wizard_header.bmp index 680947d828bfb3ae4159ec54cdbf26189a26e30d..4f992325e37796d99c183a36a069ac4358f02f95 100644 GIT binary patch delta 403 zcmXZYK`4V^7zgm4w3W3+v^2>kjbTm8*jh8z46Uzi!hxNgMeU+wQk1CGKVpd-oRnx+ zDaV~O2Z!$bQ*^?Fe79=jm; z=~=w>*IGisetb#ohpl>jcKpofBrNVz+Ab&APU|GZR7SyR|K>GAye=x58)?U?k-p+7rP<-h?X%!cKl8fN1;O3YE|C{(EthJu>s3eXrOmMY1ALB>!TQj>pZ&Vj0tn!HCF#ulGkt2-YmE-~3je;%C8W{6;) zGJ>(iC-<7b)Qe9JG=s6FCQDer%#@q_z;XuMJ&UbjZUDKHb8><01gMP&*7J$N9EF+4_?e n{b6xqHu+5eEdDGfZw{)3s&SlL9|Df=%??qsxHj)&_F)A88?UwA diff --git a/compilation/generate_branding_assets.py b/compilation/generate_branding_assets.py index 14555d3..d0029ad 100644 --- a/compilation/generate_branding_assets.py +++ b/compilation/generate_branding_assets.py @@ -150,12 +150,13 @@ def draw_wizard_header_white_bgr(x: int, y: int, w: int, h: int) -> tuple: """ Renders header BMP graphic with a pure white background (255, 255, 255) matching the installer wizard dialog background seamlessly. - The logo is positioned on the left with clean alpha-blended edges. + The logo is positioned on the right (icon_center_x = w - 32, center y = h / 2) + allowing the header title and subtext to align cleanly to the far left. """ bg_r, bg_g, bg_b = 255, 255, 255 - # Position emblem cleanly on the left (center x = 28, center y = h / 2) - icon_center_x = 28 + # Position emblem cleanly on the right + icon_center_x = w - 32 icon_center_y = h / 2 icon_radius = 22 dx = (x - icon_center_x) / icon_radius diff --git a/compilation/installer_client.nsi b/compilation/installer_client.nsi index 7ca8de9..1c43ec0 100644 --- a/compilation/installer_client.nsi +++ b/compilation/installer_client.nsi @@ -21,6 +21,7 @@ VIAddVersionKey "ProductVersion" "0.3.3.0" !define MUI_ICON "assets/logo.ico" !define MUI_UNICON "assets/logo.ico" !define MUI_HEADERIMAGE +!define MUI_HEADERIMAGE_RIGHT !define MUI_HEADERIMAGE_BITMAP "assets/wizard_header.bmp" !define MUI_WELCOMEFINISHPAGE_BITMAP "assets/wizard_sidebar.bmp" !define MUI_UNWELCOMEFINISHPAGE_BITMAP "assets/wizard_sidebar.bmp" diff --git a/compilation/installer_server.nsi b/compilation/installer_server.nsi index 9469184..cb9cbdc 100644 --- a/compilation/installer_server.nsi +++ b/compilation/installer_server.nsi @@ -20,6 +20,7 @@ VIAddVersionKey "ProductVersion" "0.3.3.0" !define MUI_ICON "assets/logo.ico" !define MUI_UNICON "assets/logo.ico" !define MUI_HEADERIMAGE +!define MUI_HEADERIMAGE_RIGHT !define MUI_HEADERIMAGE_BITMAP "assets/wizard_header.bmp" !define MUI_WELCOMEFINISHPAGE_BITMAP "assets/wizard_sidebar.bmp" !define MUI_UNWELCOMEFINISHPAGE_BITMAP "assets/wizard_sidebar.bmp"