wezterm: default inactive_pane_hsb to dim/desaturate

Let's make the suggested config in the docs the default
and dim/desaturate inactive panes slightly.
This commit is contained in:
Wez Furlong committed 2020-10-30 23:12:35 -07:00
1 parent 7a934ae63d
commit 5619eb718c
2 files changed
+11 -3

No files matched your search

+10 -2
View File
@@ -745,8 +745,8 @@ pub struct Config {
/// A subtle dimming effect can be achieved by setting:
/// inactive_pane_saturation = 0.9
/// inactive_pane_brightness = 0.8
#[serde(default)]
pub inactive_pane_hsb: Option<HsbTransform>,
#[serde(default = "default_inactive_pane_hsb")]
pub inactive_pane_hsb: HsbTransform,
#[serde(default = "default_one_point_oh")]
pub text_background_opacity: f32,
@@ -829,6 +829,14 @@ fn default_update_interval() -> u64 {
86400
}
fn default_inactive_pane_hsb() -> HsbTransform {
HsbTransform {
brightness: 0.8,
saturation: 0.9,
hue: 1.0,
}
}
#[derive(Deserialize, Serialize, Clone, Copy, Debug)]
pub enum DefaultCursorStyle {
BlinkingBlock,
+1 -1
View File
@@ -2674,7 +2674,7 @@ impl TermWindow {
let hsv = if params.is_active {
None
} else {
params.config.inactive_pane_hsb
Some(params.config.inactive_pane_hsb)
};
let window_is_transparent =