mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 15:04:36 +03:00
wezterm: fix an issue with opacity when making the window wider
The inferred background color for the cells in this case didn't account for the tint. refs: #141
This commit is contained in:
parent
21eab3430b
commit
c47b86b78a
@ -78,7 +78,6 @@ struct RenderScreenLineOpenGLParams<'a> {
|
||||
|
||||
cursor_border_color: Color,
|
||||
foreground: Color,
|
||||
background: Color,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
@ -2647,7 +2646,6 @@ impl TermWindow {
|
||||
config: &config,
|
||||
cursor_border_color,
|
||||
foreground,
|
||||
background,
|
||||
pos,
|
||||
},
|
||||
&mut quads,
|
||||
@ -2739,7 +2737,6 @@ impl TermWindow {
|
||||
config: &config,
|
||||
cursor_border_color,
|
||||
foreground,
|
||||
background,
|
||||
pos,
|
||||
},
|
||||
&mut quads,
|
||||
@ -3131,11 +3128,10 @@ impl TermWindow {
|
||||
params.cursor,
|
||||
¶ms.selection,
|
||||
params.foreground,
|
||||
if self.window_background.is_some() {
|
||||
Color::rgba(0, 0, 0, 0)
|
||||
} else {
|
||||
params.background
|
||||
},
|
||||
rgbcolor_alpha_to_window_color(
|
||||
params.palette.resolve_bg(ColorAttribute::Default),
|
||||
(params.config.window_background_tint * 255.0) as u8,
|
||||
),
|
||||
params.palette,
|
||||
params.pos.is_active,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user