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§
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.