Align installer header text cleanly to the left with right-positioned header image
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 1m53s
Release Binaries & Packages / Build & Release Standalone Binaries (Linux & Windows Cross-Compilation) (push) Successful in 5m13s

This commit is contained in:
2026-09-27 18:04:11 +02:00
parent 4d607d0a9e
commit 13ca1cacda
6 changed files with 7 additions and 4 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

+4 -3
View File
@@ -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) Renders header BMP graphic with a pure white background (255, 255, 255)
matching the installer wizard dialog background seamlessly. 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 bg_r, bg_g, bg_b = 255, 255, 255
# Position emblem cleanly on the left (center x = 28, center y = h / 2) # Position emblem cleanly on the right
icon_center_x = 28 icon_center_x = w - 32
icon_center_y = h / 2 icon_center_y = h / 2
icon_radius = 22 icon_radius = 22
dx = (x - icon_center_x) / icon_radius dx = (x - icon_center_x) / icon_radius
+1
View File
@@ -21,6 +21,7 @@ VIAddVersionKey "ProductVersion" "0.3.3.0"
!define MUI_ICON "assets/logo.ico" !define MUI_ICON "assets/logo.ico"
!define MUI_UNICON "assets/logo.ico" !define MUI_UNICON "assets/logo.ico"
!define MUI_HEADERIMAGE !define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_RIGHT
!define MUI_HEADERIMAGE_BITMAP "assets/wizard_header.bmp" !define MUI_HEADERIMAGE_BITMAP "assets/wizard_header.bmp"
!define MUI_WELCOMEFINISHPAGE_BITMAP "assets/wizard_sidebar.bmp" !define MUI_WELCOMEFINISHPAGE_BITMAP "assets/wizard_sidebar.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "assets/wizard_sidebar.bmp" !define MUI_UNWELCOMEFINISHPAGE_BITMAP "assets/wizard_sidebar.bmp"
+1
View File
@@ -20,6 +20,7 @@ VIAddVersionKey "ProductVersion" "0.3.3.0"
!define MUI_ICON "assets/logo.ico" !define MUI_ICON "assets/logo.ico"
!define MUI_UNICON "assets/logo.ico" !define MUI_UNICON "assets/logo.ico"
!define MUI_HEADERIMAGE !define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_RIGHT
!define MUI_HEADERIMAGE_BITMAP "assets/wizard_header.bmp" !define MUI_HEADERIMAGE_BITMAP "assets/wizard_header.bmp"
!define MUI_WELCOMEFINISHPAGE_BITMAP "assets/wizard_sidebar.bmp" !define MUI_WELCOMEFINISHPAGE_BITMAP "assets/wizard_sidebar.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "assets/wizard_sidebar.bmp" !define MUI_UNWELCOMEFINISHPAGE_BITMAP "assets/wizard_sidebar.bmp"