From f7ebab0859657faa3684aefd8673eba8c1d5dc8a Mon Sep 17 00:00:00 2001 From: faumaray Date: Tue, 27 Oct 2026 20:08:49 +0300 Subject: [PATCH] docs/ui.md: the ui.window row of the settings table, and assets.rs in the step 9 note The settings table lacked the key the shell added: ui.window, JSON {width, height, x?, y?, maximized}, no default, written by the GPUI front end only. The note on what reads crates/voelin-ui/ui until Slint goes lists assets.rs's include_bytes! of logo.svg beside the parity test, build.rs and fonts.rs. Co-Authored-By: Claude Sonnet 5.5 --- docs/ui.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/ui.md b/docs/ui.md index 512393c..5454002 100644 --- a/docs/ui.md +++ b/docs/ui.md @@ -660,6 +660,7 @@ live when they change (settings page, `--set`, another window): | `ui.narrow_breakpoint` | pixels | 800 | below this width the phone layout | | `ui.image_cache_mb` | megabytes | 256 | decoded images kept in memory (0: none) | | `ui.members_width` | pixels | 280 | width of the members panel (dragging its edge sets it) | +| `ui.window` | JSON `{width, height, x?, y?, maximized}` | none | where the main window was when the last run ended: its size (the one it returns to when `maximized`), its position where the platform tells one (Wayland does not: no `x` and `y`), and whether it was maximized; the next run opens there. Read at start, not applied live; written by the GPUI front end only (the Slint app neither registers nor reads it) | | `ui.voice_compact` | bool | false | the voice channel view's smaller stage (its Smaller stage / Larger stage button sets it; windows under 800 px tall always have it) | | `ui.image_preview_kb` | kilobytes | 8192 | pictures linked in chat (files and `[img]`) up to this size show as pictures (0: never) | | `notify.mentions`, `notify.private_messages`, `notify.pokes`, `notify.event_reminders`, `notify.friends_online` | off / app / desktop | desktop (friends: app) | what the bell and the desktop say about each kind | @@ -1501,9 +1502,10 @@ the slices that meet it; none of it is a defect of what exists today. theme's colours over the `ThemeColor` the second layer wrote. A slice that offers JSON themes or watches a theme directory re-applies `VoelinTheme` after the registry changed. -- **The parity test and `build.rs` read `crates/voelin-ui/ui`** (`theme.slint` - through `include_str!`, the icons directory), and `fonts.rs` the Inter files - there: they move with step 9, when Slint goes (the icons and fonts to this +- **The parity test, `build.rs` and `assets.rs` read `crates/voelin-ui/ui`** + (`theme.slint` through `include_str!`, the icons directory, and `assets.rs`'s + `include_bytes!` of `logo.svg`), and `fonts.rs` the Inter files there: they + move with step 9, when Slint goes (the icons, the logo and the fonts to this crate, `tokens.rs` as the source of truth, the parity test removed). - **System mode's first frame is Light** until the colour-scheme portal answers (`cx.window_appearance()` before the window exists; `set_system_appearance`