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
+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)
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