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
|
|
@ -46,6 +46,8 @@ fn list_describes_the_c2_keys_with_catalog_keys_only() {
|
|||
[
|
||||
"appearance.theme",
|
||||
"editor.fontSize",
|
||||
"editor.fontFamily",
|
||||
"editor.lineHeight",
|
||||
"ui.language",
|
||||
"php.executable",
|
||||
"phpactor.path",
|
||||
|
|
@ -72,12 +74,14 @@ fn list_describes_the_c2_keys_with_catalog_keys_only() {
|
|||
}
|
||||
assert_eq!(list[1]["type"], "int");
|
||||
assert_eq!(list[1]["default"], 14);
|
||||
assert_eq!(list[2]["enumValues"], json!(["en"]));
|
||||
assert_eq!(list[3]["type"], "string");
|
||||
assert_eq!(list[3]["default"], "");
|
||||
assert_eq!(list[5]["type"], "bool");
|
||||
assert_eq!(list[5]["default"], true);
|
||||
assert_eq!(list[5]["section"], "php");
|
||||
assert_eq!(list[2]["type"], "string");
|
||||
assert_eq!(list[3]["default"], 150);
|
||||
assert_eq!(list[4]["enumValues"], json!(["en"]));
|
||||
assert_eq!(list[5]["type"], "string");
|
||||
assert_eq!(list[5]["default"], "");
|
||||
assert_eq!(list[7]["type"], "bool");
|
||||
assert_eq!(list[7]["default"], true);
|
||||
assert_eq!(list[7]["section"], "php");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
@ -117,6 +121,8 @@ fn get_set_reset_and_events() {
|
|||
json!({
|
||||
"appearance.theme": "system",
|
||||
"editor.fontSize": 14,
|
||||
"editor.fontFamily": "",
|
||||
"editor.lineHeight": 150,
|
||||
"ui.language": "en",
|
||||
"php.executable": "",
|
||||
"phpactor.path": "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue