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:
@@ -421,6 +421,10 @@ pub struct ThemeColorsContent {
|
||||
#[serde(rename = "terminal.foreground")]
|
||||
pub terminal_foreground: Option<String>,
|
||||
|
||||
/// Terminal ansi background color.
|
||||
#[serde(rename = "terminal.ansi.background")]
|
||||
pub terminal_ansi_background: Option<String>,
|
||||
|
||||
/// Bright terminal foreground color.
|
||||
#[serde(rename = "terminal.bright_foreground")]
|
||||
pub terminal_bright_foreground: Option<String>,
|
||||
@@ -792,6 +796,10 @@ impl ThemeColorsContent {
|
||||
.terminal_background
|
||||
.as_ref()
|
||||
.and_then(|color| try_parse_color(color).ok()),
|
||||
terminal_ansi_background: self
|
||||
.terminal_ansi_background
|
||||
.as_ref()
|
||||
.and_then(|color| try_parse_color(color).ok()),
|
||||
terminal_foreground: self
|
||||
.terminal_foreground
|
||||
.as_ref()
|
||||
|
||||
Reference in New Issue
Block a user