T1: four more themes, theme picker, theme file import, editor font settings
Plum Night, River, Paper and Reed (designed by Amy, approved by Daniel) join the brand pair. theme.list/current/select/import, a picker with live preview (view.selectTheme) and "Import Theme…" (view.importTheme); imported themes are validated and stored in <data_dir>/themes. Editor font family and line height settings apply live. Docs: docs/themes.md. Gate: fmt, clippy and the rest pass up to cargo test, where only the unrelated lutra-terminal PTY test a_full_buffer_stops_the_shell timed out under load; to be re-run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
872b5cb258
commit
086bc8a925
26 changed files with 2881 additions and 100 deletions
|
|
@ -25,6 +25,9 @@ pub struct State {
|
|||
/// Whether the OS prefers a dark theme, as the frontend reported it with
|
||||
/// `theme.systemPreference`; `None` until then.
|
||||
pub system_dark: Option<bool>,
|
||||
/// Themes imported from theme files (`theme.import`), loaded from
|
||||
/// `<data_dir>/themes` at start.
|
||||
pub themes: Vec<crate::theme::UserTheme>,
|
||||
/// Where the engine stores its files; `None` for an engine without
|
||||
/// persistence ([`crate::Engine::new`]).
|
||||
pub config: Option<EngineConfig>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue