feat(theme): themes as files (theme crate: toml subset + ints, contrast check, wire); whimsy dark + light; display reads themes/, serves THEME/THEME_NAME, init SET_THEME -> THEME_CHANGED to all windows, bar themed; k-ui follows; settings appearance; init keeps choice in sealed users/<id>/settings/, reapplies at sign-in + display restart
This commit is contained in:
@@ -111,13 +111,15 @@ pub const SERVERS: &[Program] = &[
|
||||
Program {
|
||||
devices: &[Device::Gpu],
|
||||
uses: &["input"],
|
||||
// The themes, read once at start.
|
||||
storage: &[disk(b"themes", false)],
|
||||
// Its clients subscribe and take focus.
|
||||
restarts_clients: true,
|
||||
// Its windows' state (input queues among it) is KiBs.
|
||||
stack_pages: 8,
|
||||
// The framebuffer is ~1000 pages at 1280x800, and so is each of
|
||||
// the (at most 4) windows' pixel buffers, which it owns.
|
||||
..server("display", b"bin/display", Limits { pages: 5200, regions: 8, ..SMALL })
|
||||
..server("display", b"bin/display", Limits { pages: 5200, regions: 9, ..SMALL })
|
||||
},
|
||||
// Text on the display, lines from the keyboard (it takes input focus).
|
||||
// Its clients wait on lines and Ctrl+C. It draws its own text now,
|
||||
|
||||
Reference in New Issue
Block a user