alacritty / alacritty

A cross-platform, OpenGL terminal emulator.
https://alacritty.org
Apache License 2.0
53.72k stars 2.94k forks source link

Improve transparency on macOS #7965

Open madsmtm opened 3 weeks ago

madsmtm commented 3 weeks ago

Extension upon https://github.com/alacritty/alacritty/pull/7928, see that for discussion. I've improved a bit on the window background, by setting the alpha channel to follow the window opacity.

When window.opacity < 1, we do two things:

sfsam commented 3 weeks ago

I'm seeing the same thing I observed in the discussion of #7928: No borders and a white title bar even though decorations_theme_variant = "Dark" is set. I think this is due to something that was changed in the move to winit 0.3.0. I'm on MacOS Sonoma 14.4.1. FWIW, my window config:

[window]
decorations_theme_variant = "Dark"
decorations = "full"
option_as_alt = "OnlyLeft"
resize_increments = true
dimensions = { columns = 100, lines = 24 }
nixpulvis commented 2 weeks ago

Set the title bar as transparent (new)

Seems to me this may be undesired. I hate to think we need yet another macOS specific configuration for it though.

Screenshot 2024-05-14 at 9 47 41 AM