Skip to content

Commit

Permalink
docs: win32_system_backdrop
Browse files Browse the repository at this point in the history
refs: #3528
refs: #1614
  • Loading branch information
wez committed Apr 17, 2023
1 parent 163dfd7 commit 38da9d7
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ As features stabilize some brief notes about them will accumulate here.
#### New

* [window:keyboard_modifiers](config/lua/window/keyboard_modifiers.md) #3444
* [win32_system_backdrop](config/lua/config/win32_system_backdrop.md). Thanks to @kingavatar! #3528 #1614

#### Fixed

Expand Down
3 changes: 3 additions & 0 deletions docs/config/lua/config/macos_window_background_blur.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ config.macos_window_background_blur = 20
![Screenshot](../../../screenshots/wezterm-macos-background-blur.png)

The default value for `macos_window_background_blur` is `0`.

See also [win32_system_backdrop](win32_system_backdrop.md) for a similar
effect on Windows.
14 changes: 14 additions & 0 deletions docs/config/lua/config/win32_acrylic_accent_color.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
tags:
- appearance
---

# `win32_acrylic_accent_color = COLOR`

{{since('nightly')}}

When combined with `win32_system_backdrop = "Acrylic"` on Windows systems
earlier than build 22621, this option specifies the accent color used with
the *Acrylic* composition effect.

See also [win32_system_backdrop](win32_system_backdrop.md).
62 changes: 62 additions & 0 deletions docs/config/lua/config/win32_system_backdrop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
tags:
- appearance
---

# `win32_system_backdrop = SETTING`

{{since('nightly')}}

When combined with `window_background_opacity`, chooses from available
window background effects provided by Windows.

The possible values for `win32_system_backdrop` are:

* `"Auto"` - the system chooses. In practice, this is the same as `"Disable"`. This is the default value.
* `"Disable"` - disable backdrop effects.
* `"Acrylic"` - enable the *Acrylic* blur-behind-window effect. Available on Windows 10 and 11.
* `"Mica"` - enable the *Mica* effect, available on Windows 11 build 22621 and later.
* `"Tabbed"` - enable the *Tabbed* effect, available on Windows 11 build 22621 and later.

On Windows systems earlier than build 22621, the *Acrylic* affect can be
adjusted using [win32_acrylic_accent_color](win32_acrylic_accent_color.md).
More recent versions of Windows do not permit configuring the accent color
for *Acrylic*, so that option has no effect there.

The *Acrylic* setting uses more resources than the others.

You need to reduce the `window_background_opacity` to a value lower than `1.0`
for the backdrop effect to work. For best results with both `"Mica"` and
`"Tabbed"`, setting `window_background_opacity = 0` is recommended.

See also [macos_window_background_blur](macos_window_background_blur.md) for
a similar effect on macOS.

## Acrylic

```lua
config.window_background_opacity = 0
config.win32_system_backdrop = 'Acrylic'
```

![Acrylic Effect](../../../screenshots/wezterm-acrylic.png)

## Mica

```lua
config.window_background_opacity = 0
config.win32_system_backdrop = 'Mica'
```

![Mica Effect](../../../screenshots/wezterm-mica.png)

## Tabbed

```lua
config.window_background_opacity = 0
config.win32_system_backdrop = 'Tabbed'
```

![Tabbed Effect](../../../screenshots/wezterm-tabbed.png)


Binary file added docs/screenshots/wezterm-acrylic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/wezterm-mica.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/wezterm-tabbed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 38da9d7

Please sign in to comment.