Colours follow the system theme; night mode dims whatever theme is current #41
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
schaefera/utStudyBIble#41
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found in the phone QC of #12 (owner, on the Plinius, build phase1/red-letters@dbd77eb).
Seen:
Cause: the app paints fixed colours of its own. Theme.qml has a day set and a night set, applied as
ApplicationWindow.palette.*in qml/Main.qml. On UT the style is Suru (QT_QUICK_CONTROLS_STYLE=Suruin the app's environment on the phone). Suru paints the window, Page and Pane fromSuru.backgroundColor(Suru/ApplicationWindow.qml:31,Suru/Page.qml:44,Suru/Pane.qml:40) and ignores the palette. Only the text, which usespalette.text, follows our colours.Why CI missed it: tools/e2e/lib.sh unsets
QT_QUICK_CONTROLS_STYLE, so the cases run in the Default style, and the night line logspane.palette.window, not the colour actually drawn.New spec (owner, 2026-10-22): the OS manages light and dark; night mode is a dimmer version of whatever theme is current.
Day (night off): follow the system theme fully. The window, pages, controls and verse text take the current theme's colours: Suru light or dark on UT, the platform palette elsewhere. The app sets no fixed colours, so a dark system theme reads at its own contrast.
Night (on): the current theme, dimmed and at lower contrast. The text moves toward the background and the whole page gets darker:
Start at about 60–70% of the base theme's contrast; the owner tunes the values on the phone.
Theme changes: a system theme change while the app runs is followed live.
Brightness: the screen backlight is not touched; that would need permissions. "Dimmer" means the colours.
Implementation notes:
qml/platform/ut/, so no Suru API is in shared QML; elsewhere, the platform palette. Night derives from that base.Part of #12; #12 stays open until the owner signs this off on the phone.
Night mode only greys the text on Ubuntu Touch (Suru ignores the palette)to Colours follow the system theme; night mode dims whatever theme is current