Skip to content

Commit

Permalink
adds dimming documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
farwyler committed Jun 14, 2022
1 parent 9ad01a0 commit a6c8762
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions book/src/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,25 @@ nbsp = "⍽"
tab = ""
newline = ""
```

### `[editor.dim]` Section

Enable dimming in certain areas. Disabled by default. Enable by assigning:
- 0 = set text modifier flag DIM
- negative value = darken colors (-127 = 100% darker)
- positive value = lighten colors (+127 = 100% lighter)

> darken/lighten colors only works with themes that set rgb colors, not indexed colors.
| Key | Description | Default |
|--|--|---------|
| `overlay-backdrops` | Enable dimming and set shade of content behind overlays. | `None` |
| `unfocused-views`| Enable dimming and set shade of unfocused editor views. | `None` |

```toml
[editor.dim]
# darken backdrop of overlays
overlay-backdrops = -25
# dim fg color of unfocused views
unfocused-views = 0
```

0 comments on commit a6c8762

Please sign in to comment.