From 16ffd4ed5183bc28a7562a065fd5fff54f095af9 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Sun, 22 Mar 2026 21:01:24 +0100 Subject: [PATCH] nixosTests.lomiri-clock-app: Fix OCR further Localised strings still struggle to be found consistently. Issue seems to be that the app has a somewhat small horizontal max size, leaving more than half of the screen at the same colour as the app's text. Set IceWM's background colour to #FFFFFF to fix that discrepancy in background colours. --- nixos/tests/lomiri-clock-app.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/tests/lomiri-clock-app.nix b/nixos/tests/lomiri-clock-app.nix index 6b607cfff5f2..07e8db615ebd 100644 --- a/nixos/tests/lomiri-clock-app.nix +++ b/nixos/tests/lomiri-clock-app.nix @@ -18,6 +18,12 @@ variables = { UITK_ICON_THEME = "suru"; }; + + # App has a somewhat small horizontal max size and a white background, while we configure IceWM to have a black background. + # Makes OCR less reliable, often completely fails to find the localised text. Force background to be white instead. + etc."icewm/prefoverride".text = '' + DesktopBackgroundColor=#FFFFFF + ''; }; i18n.supportedLocales = [ "all" ];