1
1
mirror of https://github.com/wez/wezterm.git synced 2025-01-04 11:42:53 +03:00

respect color scheme for termwiz derived tabs

This commit is contained in:
Wez Furlong 2020-01-18 21:32:18 -08:00
parent 0822c67e32
commit 3940684b4e

View File

@ -293,7 +293,20 @@ impl Tab for TermWizTerminalTab {
}
fn palette(&self) -> ColorPalette {
Default::default()
let config = configuration();
if let Some(scheme_name) = config.color_scheme.as_ref() {
if let Some(palette) = config.color_schemes.get(scheme_name) {
return palette.clone().into();
}
}
config
.colors
.as_ref()
.cloned()
.map(Into::into)
.unwrap_or_else(ColorPalette::default)
}
fn domain_id(&self) -> DomainId {