respect color scheme for termwiz derived tabs

This commit is contained in:
Wez Furlong committed 2020-01-25 17:18:45 -08:00
1 parent 0822c67e32
commit 3940684b4e
1 file changed
+14 -1
+14 -1
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 {