Styling option for separating terminal view background from background color (#17611)
Closes #17313 Release Notes: - Added theme styling option to separate terminal background view from terminal background color, for transparent terminal backgrounds
This commit is contained in:
parent
3d69942f71
commit
0070635b4d
6 changed files with 19 additions and 5 deletions
|
@ -662,7 +662,7 @@ impl Element for TerminalElement {
|
|||
font_size: font_size.into(),
|
||||
font_style: FontStyle::Normal,
|
||||
line_height: line_height.into(),
|
||||
background_color: Some(theme.colors().terminal_background),
|
||||
background_color: Some(theme.colors().terminal_ansi_background),
|
||||
white_space: WhiteSpace::Normal,
|
||||
truncate: None,
|
||||
// These are going to be overridden per-cell
|
||||
|
@ -778,7 +778,7 @@ impl Element for TerminalElement {
|
|||
&[TextRun {
|
||||
len,
|
||||
font: text_style.font(),
|
||||
color: theme.colors().terminal_background,
|
||||
color: theme.colors().terminal_ansi_background,
|
||||
background_color: None,
|
||||
underline: Default::default(),
|
||||
strikethrough: None,
|
||||
|
@ -1158,7 +1158,7 @@ pub fn convert_color(fg: &terminal::alacritty_terminal::vte::ansi::Color, theme:
|
|||
NamedColor::BrightCyan => colors.terminal_ansi_bright_cyan,
|
||||
NamedColor::BrightWhite => colors.terminal_ansi_bright_white,
|
||||
NamedColor::Foreground => colors.terminal_foreground,
|
||||
NamedColor::Background => colors.terminal_background,
|
||||
NamedColor::Background => colors.terminal_ansi_background,
|
||||
NamedColor::Cursor => theme.players().local().cursor,
|
||||
NamedColor::DimBlack => colors.terminal_ansi_dim_black,
|
||||
NamedColor::DimRed => colors.terminal_ansi_dim_red,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue