Skip to main content

Module appearance

Module appearance 

Source
Expand description

Per-user appearance preferences: theme and screen brightness. Record layouts and preset IDs are stable on disk; version 1 records, which have no brightness, still load at full brightness, and a saved brightness outside the allowed range is clamped on load instead of rejecting the record.

Structs§

Appearance

Constants§

MINIMUM_BRIGHTNESS
Lowest brightness a saved appearance can hold, about 10 %, so that a preference can never leave the screen dark at start-up or login.
PRESET_COUNT

Functions§

restore_appearance
Restore the current user’s appearance at login, before opening application windows. This acquires the LVGL lock; callers must not already hold it. Invalid preferences leave the existing theme intact.