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:
Albert Marashi
2024-09-17 12:51:31 -04:00
committed by GitHub
parent 3d69942f71
commit 0070635b4d
6 changed files with 19 additions and 5 deletions
+8
View File
@@ -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()