diff options
author | Sonu Bardai <67749330+SonuBardai@users.noreply.github.com> | 2023-08-07 07:11:38 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-07 01:41:38 +0000 |
commit | 35e1bb128b6c6835649e4e669fca9e26267b2d1d (patch) | |
tree | a3c20de9b8625dfd86b837653474bbde8e802a7e /alacritty/src/display/content.rs | |
parent | 34b3be775df196bd2cfb1193d88cfea0b8d6d9b8 (diff) | |
download | r-alacritty-35e1bb128b6c6835649e4e669fca9e26267b2d1d.tar.gz r-alacritty-35e1bb128b6c6835649e4e669fca9e26267b2d1d.tar.bz2 r-alacritty-35e1bb128b6c6835649e4e669fca9e26267b2d1d.zip |
Apply transparent background colors to "UI" cells
Diffstat (limited to 'alacritty/src/display/content.rs')
-rw-r--r-- | alacritty/src/display/content.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/alacritty/src/display/content.rs b/alacritty/src/display/content.rs index f4e34c10..039808eb 100644 --- a/alacritty/src/display/content.rs +++ b/alacritty/src/display/content.rs @@ -256,6 +256,11 @@ impl RenderableCell { Self::compute_cell_rgb(&mut fg, &mut bg, &mut bg_alpha, config_fg, config_bg); } + // Apply transparency to all renderable cells if `transparent_background_colors` is set + if bg_alpha > 0. && content.config.colors.transparent_background_colors { + bg_alpha = content.config.window_opacity(); + } + // Convert cell point to viewport position. let cell_point = cell.point; let point = term::point_to_viewport(display_offset, cell_point).unwrap(); |