From 35e1bb128b6c6835649e4e669fca9e26267b2d1d Mon Sep 17 00:00:00 2001 From: Sonu Bardai <67749330+SonuBardai@users.noreply.github.com> Date: Mon, 7 Aug 2023 07:11:38 +0530 Subject: Apply transparent background colors to "UI" cells --- alacritty/src/display/content.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'alacritty/src') 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(); -- cgit