feat(theme): per-app accent: pm gives window manifest accent before app runs (display ACCENT, refused after BUFFER); theme::with_accent keeps hue, shifts lightness until contrast passes, else theme accent; tally pink
This commit is contained in:
@@ -197,7 +197,12 @@ one in use (`THEME`, two words a call, `theme::wire`). Only init picks it
|
||||
signed-in user's choice at sign-in, the default at sign-out, and both
|
||||
again (with `SET_USER`) when the display restarts. A user chooses through
|
||||
Settings: `types::spawn::SET_THEME` on init's session copy, which init
|
||||
keeps sealed in `users/<id>/settings/theme`.
|
||||
keeps sealed in `users/<id>/settings/theme`. An app's accent (its
|
||||
manifest's) is given to its window by the permission manager before the
|
||||
app runs (`ACCENT`, refused once anyone has asked for the buffer, so an
|
||||
app cannot pick its own); the theme that window reads carries it, its
|
||||
lightness moved until it passes contrast (`theme::with_accent`), or the
|
||||
theme's own accent if it cannot, is black or white, or looks destructive.
|
||||
|
||||
Input reaches apps through the display server, the input server's only
|
||||
client. It subscribes to the input server with a notification, drains it
|
||||
|
||||
Reference in New Issue
Block a user