Document new theme options (#7899)

Added documentation for
[#4970](https://github.com/zed-industries/zed/issues/4970), a feature
added in the latest update. Will need to modify `Default Settings` to
reflect the new default theme example.

Release Notes:

- N/A
This commit is contained in:
Kyber 2024-02-21 17:12:10 +01:00 committed by GitHub
parent 0c939e5dfc
commit d3745a3931
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -956,10 +956,72 @@ See Buffer Font Features
## Theme
- Description: The name of the Zed theme to use for the UI.
- Description: The theme setting can be specified in two forms - either as the name of a theme or as an object containing the `mode`, `dark`, and `light` themes for the Zed UI.
- Setting: `theme`
- Default: `One Dark`
### Theme Object
- Description: Specify the theme using an object that includes the `mode`, `dark`, and `light` themes.
- Setting: `theme`
- Default:
```json
"theme": {
"mode": "dark",
"dark": "One Dark",
"light": "One Light"
},
```
### Mode
- Description: Specify theme mode.
- Setting: `mode`
- Default: `dark`
**Options**
1. Set the theme to dark mode
```json
{
"mode": "dark"
}
```
2. Set the theme to light mode
```json
{
"mode": "light"
}
```
3. Set the theme to system mode
```json
{
"mode": "system"
}
```
### Dark
- Description: The name of the dark Zed theme to use for the UI.
- Setting: `dark`
- Default: `One Dark`
**Options**
Run the `theme selector: toggle` action in the command palette to see a current list of valid themes names.
### Light
- Description: The name of the light Zed theme to use for the UI.
- Setting: `light`
- Default: `One Light`
**Options**
Run the `theme selector: toggle` action in the command palette to see a current list of valid themes names.