From befdc7ac3aa96bfcc4693ea7fa6fdfb38cf0be90 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 15 Aug 2021 08:33:09 -0700 Subject: [PATCH] Fixed: text_background_opacity was not respected --- docs/changelog.md | 3 ++- wezterm-gui/src/termwindow/render.rs | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 7cdb78a27..ee34d324f 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -11,7 +11,8 @@ usually the best available version. As features stabilize some brief notes about them will accumulate here. -* Not yet! +* Fixed: `wezterm cli spawn` would use the initial terminal size for a new tab, rather than using the current tab size [#920](https://github.com/wez/wezterm/issues/920) +* Fixed: `text_background_opacity` opacity was not respected ### 20210814-124438-54e29167 diff --git a/wezterm-gui/src/termwindow/render.rs b/wezterm-gui/src/termwindow/render.rs index d1aaac72c..88702e58d 100644 --- a/wezterm-gui/src/termwindow/render.rs +++ b/wezterm-gui/src/termwindow/render.rs @@ -825,7 +825,10 @@ impl super::TermWindow { bg_default = false; } - (rgbcolor_to_window_color(bg), bg_default) + ( + rgbcolor_alpha_to_window_color(bg, self.config.text_background_opacity), + bg_default, + ) }; if !bg_is_default {