summaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/input/theme.rs
diff options
context:
space:
mode:
authorMarcel Baur <mail@marcelbaur.io>2023-03-30 13:33:39 +0200
committerGitHub <noreply@github.com>2023-03-30 20:33:39 +0900
commit6ea5c3666fa2f38742da115d5fe5beef30eccc2f (patch)
tree7e9445b1be581826c3cec0984034ebe04b47ead2 /zellij-utils/src/input/theme.rs
parent7f1dde5520ceac3d653dae7adec17c2fdaf83f8b (diff)
Add option to hide session name in tab-bar (deriving from #2172) (#2301)
* feat(tab-bar): add option to hide prefix (#2172) * feat(tab-bar): only hide session_name * fix(snapshots): update snapshots with new config-var naming --------- Co-authored-by: Marcel Baur <marcel@baur.gg>
Diffstat (limited to 'zellij-utils/src/input/theme.rs')
-rw-r--r--zellij-utils/src/input/theme.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/zellij-utils/src/input/theme.rs b/zellij-utils/src/input/theme.rs
index c76deb31f..bf0edf232 100644
--- a/zellij-utils/src/input/theme.rs
+++ b/zellij-utils/src/input/theme.rs
@@ -25,12 +25,14 @@ impl UiConfig {
#[derive(Debug, Default, Clone, Copy, PartialEq, Deserialize, Serialize)]
pub struct FrameConfig {
pub rounded_corners: bool,
+ pub hide_session_name: bool,
}
impl FrameConfig {
pub fn merge(&self, other: FrameConfig) -> Self {
let mut merged = self.clone();
merged.rounded_corners = other.rounded_corners;
+ merged.hide_session_name = other.hide_session_name;
merged
}
}