wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.1k stars 771 forks source link

win32_system_backdrop Acrylic not working #4145

Open Lesnock opened 1 year ago

Lesnock commented 1 year ago

What Operating System(s) are you seeing this problem on?

Windows

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20230806-225328-bf172634

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

I set win32_system_backdrop to "Acrylic", but the terminal does not get transparent, even with window_background_opacity set to 0. Besides that, weird border appears and the terminal has so much lag when I try to move it with the mouse (when Acrylic is enabled).

Opacity works great without the acrylic enabled.

image

To Reproduce

Set win32_system_backdrop to Acrylic with opacity minor than 1.

Configuration

local wezterm = require 'wezterm'
local config = {}

-- Appearance
config.font = wezterm.font 'JetBrainsMono Nerd Font Mono'
config.font_size = 16
config.line_height = 1.2
config.window_background_opacity = 0.90

-- Theme
config.color_scheme = 'Catppuccin Macchiato'

-- Enable Programmer Background Image
config.window_background_gradient = {
    colors = {
        '#24273a',
    },
}
config.background = {
    {
        source = { File = 'C:/Program Files/WezTerm/hacker.gif' },
        opacity = 0.02,
        width = 243,
        height = 177,
        repeat_x = "NoRepeat",
        repeat_y = "NoRepeat",
        vertical_align = 'Bottom',
        horizontal_align = 'Right',
        vertical_offset = '-30'
    },
}
config.win32_system_backdrop = 'Acrylic'

config.window_padding = {
    left = 20,
    right = 20,
    top = 20,
    bottom = 20,
}

-- Start
config.default_domain = 'WSL:Ubuntu-22.04'
config.initial_rows = 16

-- Tabs
config.enable_tab_bar = true
config.hide_tab_bar_if_only_one_tab = true
local act = wezterm.action
config.keys = {
  -- Create a new tab in the default domain
  { key = 't', mods = 'SHIFT|ALT', action = act.SpawnTab 'DefaultDomain' },
}
wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_width)
    local title = string.format('Tab %s', tab.tab_index + 1)

    return {
        { Text = title },
    }
end)
config.window_close_confirmation = 'NeverPrompt'

return config

Expected Behavior

Expect the terminal to get blurry.

Logs

No response

Anything else?

No response

Lesnock commented 1 year ago

My Windows build: 19045.3324

charliemonnone commented 1 year ago

Having the same issue, also on Windows 10.

RichardEpure commented 8 months ago

Do you have "Transparency effects" in the windows settings turned on? It won't work if that's not the case.

image

charliemonnone commented 8 months ago

Do you have "Transparency effects" in the windows settings turned on? It won't work if that's not the case.

image

Yes, though on Windows 10 this setting is under "Colors", not Accessibility.

JacobLChrzanowski commented 7 months ago

I'm having the same issue across all 3 blur modes on Windows 10 Pro, 22H2, build 119045.3693

Lavoista commented 7 months ago

same issue here, I have transparency on in windows settings, in wezterm I have config.window_background_opacity = 0 config.win32_system_backdrop = 'Acrylic'

No blur effect :(

RevinderDev commented 7 months ago

Same issue here.

version: wezterm 20240203-110809-5046fc22 Windows 10 Pro 10.0.19045 Build 19045

Not sure if related but even opacity setting, doesn't actually make the background transparent at all (even when set to 0). Just changes color to black. This could be something silly I've set in Windows ages ago, just not sure what.

ZenanH commented 6 months ago

Windows 11 Pro 23H2 [22631.3296] has same issue with wezterm version [20240203-110809-5046fc22].

Transparency effects is on.

Three blur modes don't work. And background is black when the opacity is 0.