diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | alacritty/src/display/content.rs | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 095cd311..927ca0d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - IME popup now tries to not obscure the current cursor line - The double click threshold was raised to `400ms` - OSC 52 paste ability is now **disabled by default**; use `terminal.osc52` to adjust it +- Apply `colors.transparent_background_colors` for selections, hints, and search matches ### Fixed 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(); |