diff options
| author | Aram Drevekenin <aram@poor.dev> | 2024-07-05 15:13:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-05 15:13:51 +0200 |
| commit | a6d6c0e4ff03c35cafb6f04363ecab856ee3682d (patch) | |
| tree | eadf1c24c4c6a1e4b7499b3cd047351fd29e52de /zellij-utils/src/input/layout.rs | |
| parent | docs(changelog): wasmer -> wasmtime (diff) | |
| download | sl0ppij-a6d6c0e4ff03c35cafb6f04363ecab856ee3682d.tar.gz sl0ppij-a6d6c0e4ff03c35cafb6f04363ecab856ee3682d.tar.xz sl0ppij-a6d6c0e4ff03c35cafb6f04363ecab856ee3682d.zip | |
feat(ui): status bar redesign (#3475)
* work
* work
* working
* get default mode from server and some ui responsiveness
* work
* finish design and get tests to pass
* get e2e tests to pass
* add classic layout
* add classic layout assets
* fix e2e tests
* style(fmt): rustfmt
* fix plugin system test
* style(fmt): some cleanups
Diffstat (limited to 'zellij-utils/src/input/layout.rs')
| -rw-r--r-- | zellij-utils/src/input/layout.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/zellij-utils/src/input/layout.rs b/zellij-utils/src/input/layout.rs index 94122d9f..82207725 100644 --- a/zellij-utils/src/input/layout.rs +++ b/zellij-utils/src/input/layout.rs @@ -1121,6 +1121,7 @@ impl Layout { available_layouts.push(LayoutInfo::BuiltIn("strider".to_owned())); available_layouts.push(LayoutInfo::BuiltIn("disable-status-bar".to_owned())); available_layouts.push(LayoutInfo::BuiltIn("compact".to_owned())); + available_layouts.push(LayoutInfo::BuiltIn("classic".to_owned())); available_layouts.sort_by(|a, b| { let a_name = a.name(); let b_name = b.name(); @@ -1359,6 +1360,14 @@ impl Layout { Self::stringified_compact_swap_from_assets()?, )), )), + Some("classic") => Ok(( + "Classic layout".into(), + Self::stringified_classic_from_assets()?, + Some(( + "Classiclayout swap".into(), + Self::stringified_classic_swap_from_assets()?, + )), + )), Some("welcome") => Ok(( "Welcome screen layout".into(), Self::stringified_welcome_from_assets()?, @@ -1395,6 +1404,14 @@ impl Layout { Ok(String::from_utf8(setup::COMPACT_BAR_SWAP_LAYOUT.to_vec())?) } + pub fn stringified_classic_from_assets() -> Result<String, ConfigError> { + Ok(String::from_utf8(setup::CLASSIC_LAYOUT.to_vec())?) + } + + pub fn stringified_classic_swap_from_assets() -> Result<String, ConfigError> { + Ok(String::from_utf8(setup::CLASSIC_SWAP_LAYOUT.to_vec())?) + } + pub fn stringified_welcome_from_assets() -> Result<String, ConfigError> { Ok(String::from_utf8(setup::WELCOME_LAYOUT.to_vec())?) } |
