diff options
| author | Brooks Rady <b.j.rady@gmail.com> | 2022-03-22 14:58:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-22 14:58:16 +0000 |
| commit | 9bfafde12348623e2a5d1513ba0928e15d441efd (patch) | |
| tree | eced3310a2b8102189ae55e984104a94bed8a510 /zellij-tile | |
| parent | fix: cargo issue (#1253) (diff) | |
| download | sl0ppij-9bfafde12348623e2a5d1513ba0928e15d441efd.tar.gz sl0ppij-9bfafde12348623e2a5d1513ba0928e15d441efd.tar.xz sl0ppij-9bfafde12348623e2a5d1513ba0928e15d441efd.zip | |
feat(ui): round frame corners (#1227)
* feat(ui): round frame corners
* Allow rounded_corners to be set without a palette
* Revert "Allow rounded_corners to be set without a palette"
This reverts commit 9271a4b5452f2e59e0ebd55136343f0fbfabaa13.
* fix(style): remove redundant code
* fix(style): clippy lints that somehow got missed
* feat(config): add ui config section
Diffstat (limited to 'zellij-tile')
| -rw-r--r-- | zellij-tile/src/data.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/zellij-tile/src/data.rs b/zellij-tile/src/data.rs index 0676ec3e..24ffb8cf 100644 --- a/zellij-tile/src/data.rs +++ b/zellij-tile/src/data.rs @@ -208,6 +208,12 @@ pub struct Palette { pub brown: PaletteColor, } +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Default, Serialize, Deserialize)] +pub struct Style { + pub colors: Palette, + pub rounded_corners: bool, +} + /// Represents the contents of the help message that is printed in the status bar, /// which indicates the current [`InputMode`] and what the keybinds for that mode /// are. Related to the default `status-bar` plugin. @@ -216,7 +222,7 @@ pub struct ModeInfo { pub mode: InputMode, // FIXME: This should probably return Keys and Actions, then sort out strings plugin-side pub keybinds: Vec<(String, String)>, // <shortcut> => <shortcut description> - pub palette: Palette, + pub style: Style, pub capabilities: PluginCapabilities, pub session_name: Option<String>, } |
