From 64ba08cced89c8d8d1ccc613cfe56b972e217e2d Mon Sep 17 00:00:00 2001 From: Kuppjaerk <36661992+Kuppjaerk@users.noreply.github.com> Date: Fri, 17 May 2024 19:29:59 +0200 Subject: [PATCH] Add documentation for auto-switching theme (#11908) Added documentation regarding auto-switching themes to the default settings file, according to ([#9627](https://github.com/zed-industries/zed/issues/9627)). Release Notes: - N/A --------- Co-authored-by: Marshall Bowers --- assets/settings/default.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/assets/settings/default.json b/assets/settings/default.json index 89c134522c..dd25493d42 100644 --- a/assets/settings/default.json +++ b/assets/settings/default.json @@ -1,5 +1,18 @@ { - // The name of the Zed theme to use for the UI + // The name of the Zed theme to use for the UI. + // + // The theme can also be set to follow system preferences: + // + // "theme": { + // "mode": "system", + // "light": "One Light", + // "dark": "One Dark" + // } + // + // Where `mode` is one of: + // - "system": Use the theme that corresponds to the system's appearance + // - "light": Use the theme indicated by the "light" field + // - "dark": Use the theme indicated by the "dark" field "theme": "One Dark", // The name of a base set of key bindings to use. // This setting can take four values, each named after another