diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d47997..e094236 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,10 @@ Builds are continuous: every push to `main` produces a signed `xetup.exe` publis ## [Unreleased] -_Nothing yet._ +### Fixed +- **BackInfo background color**: use the COLORREF value `4668194` for #223B47. BackInfo uses a + COLORREF (`0x00BBGGRR` / BGR), so the 0.7 value `2243399` (`0x223B47`) was read with red/blue + swapped and rendered olive-brown (#473B22). Reverts the 0.7 change. ## [0.7] - 2026-06-02 @@ -47,8 +50,8 @@ _Nothing yet._ to the default. The full theme (Custom mode: dark system + light apps; accent on Start/taskbar and title bars/borders) is written to the Default hive, the current user (HKCU) and `HKU\.DEFAULT` so all profiles match. (`4d08d0c`) -- **BackInfo background color**: `BackgroundColor 4668194 -> 2243399`. BackInfo reads the value as - 0xRRGGBB (RGB), not COLORREF/BGR, so #223B47 = 2243399; the BGR value swapped red/blue. (`4d08d0c`) +- **BackInfo background color**: changed `BackgroundColor` to 2243399 (later found wrong - BackInfo + uses COLORREF/BGR; corrected in [Unreleased]). (`4d08d0c`) ### CI / Infra - deploy.json update step made non-fatal (cosmetic, runs after the release is published). (`8a7fc10`) diff --git a/SPEC.md b/SPEC.md index fa49850..c6e37aa 100644 --- a/SPEC.md +++ b/SPEC.md @@ -132,7 +132,8 @@ the current user (HKCU) and HKU\.DEFAULT (lock/welcome screen) so all profiles m Copies BackInfo.exe + INI to C:\Program Files\Backinfo\. Detects OS, writes OSName to registry. Creates startup shortcut for all users. BackInfo renders system info BMP as desktop wallpaper on every logon. Background is solid #223B47 (BackInfo.ini -BackgroundColor = 2243399; BackInfo reads the value as 0xRRGGBB / RGB, not COLORREF/BGR). +BackgroundColor = 4668194; BackInfo uses a COLORREF / 0x00BBGGRR / BGR value, so +#223B47 = 71*65536 + 59*256 + 34 = 4668194. The RGB value 2243399 rendered olive-brown). --- diff --git a/assets/Backinfo/BackInfo.ini b/assets/Backinfo/BackInfo.ini index 59203ff..111dd4c 100644 --- a/assets/Backinfo/BackInfo.ini +++ b/assets/Backinfo/BackInfo.ini @@ -56,9 +56,10 @@ ;; [General] -; #223B47 read as 0xRRGGBB decimal: BackInfo uses RGB order here (NOT COLORREF/BGR), -; so 0x223B47 = 2243399. The previous BGR value (4668194) rendered with R/B swapped. -BackgroundColor = 2243399 +; #223B47 as COLORREF (0x00BBGGRR): B=71 G=59 R=34 -> 71*65536 + 59*256 + 34 = 4668194. +; BackInfo uses COLORREF/BGR (per its own header doc above). The RGB value 2243399 +; (0x223B47) was read as COLORREF, swapping R/B and rendering olive-brown (#473B22). +BackgroundColor = 4668194 ; AutoBackground=0: do NOT read live desktop color - unreliable during deployment ; (live session may not yet reflect the registry background color change) AutoBackground = 0 diff --git a/web/data/descriptions.json b/web/data/descriptions.json index 0a45ee4..87e5ec5 100644 --- a/web/data/descriptions.json +++ b/web/data/descriptions.json @@ -83,7 +83,7 @@ "registry-osname-hklm-software-backinfo": "Detects Windows build number and edition, writes OSName string to HKLM\\SOFTWARE\\BackInfo\\OSName (and WOW6432Node). BackInfo.ini references %OSName% to display the correct OS on the wallpaper.", "startup-shortcut-backinfo-exe": "Creates a shortcut at C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\BackInfo.lnk pointing to C:\\Program Files\\Backinfo\\BackInfo.exe. Ensures BackInfo starts for every user on logon.", "07-desktop-info-ps1-smazat-nahrazeno": "07-desktop-info.ps1 is superseded by this script. BackInfo.exe is the preferred approach - stable on Win10 and Win11, configurable via INI, already present in assets.", - "backinfo-pozadi-223b47": "BackInfo.ini sets a solid #223B47 background via BackgroundColor = 2243399. BackInfo reads this value as 0xRRGGBB (RGB order), not a Windows COLORREF (BGR), so 0x223B47 = 2243399; the earlier BGR value 4668194 rendered with red and blue swapped." + "backinfo-pozadi-223b47": "BackInfo.ini sets a solid #223B47 background via BackgroundColor = 4668194. BackInfo uses a Windows COLORREF (0x00BBGGRR, i.e. BGR), so #223B47 = B*65536 + G*256 + R = 71*65536 + 59*256 + 34 = 4668194. The RGB value 2243399 (0x223B47) was read as a COLORREF, swapping red/blue, and rendered olive-brown (#473B22)." } }, "07-desktop-info": { diff --git a/web/spec/index.html b/web/spec/index.html index 8aa2411..637c2de 100644 --- a/web/spec/index.html +++ b/web/spec/index.html @@ -708,7 +708,7 @@
backinfo_W11.ps1 (detekce OS, registry, Startup)BackgroundColor = 2243399)0x223B47 = 2243399. Drivejsi BGR hodnota (4668194) renderovala prohozene R/B.BackgroundColor = 4668194)0x00BBGGRR, BGR): B=71 G=59 R=34 = 4668194. Hodnota 2243399 (RGB) se cetla jako COLORREF, prohodila R/B a renderovala olivove hnedou (#473B22).