shell: Drop static workspaces
This commit is contained in:
parent
226bf7f49d
commit
c0f7524a09
4 changed files with 157 additions and 261 deletions
|
|
@ -9,7 +9,6 @@ fn default_workspace_layout() -> WorkspaceLayout {
|
|||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
pub struct WorkspaceConfig {
|
||||
pub workspace_mode: WorkspaceMode,
|
||||
pub workspace_amount: WorkspaceAmount,
|
||||
#[serde(default = "default_workspace_layout")]
|
||||
pub workspace_layout: WorkspaceLayout,
|
||||
}
|
||||
|
|
@ -18,18 +17,11 @@ impl Default for WorkspaceConfig {
|
|||
fn default() -> Self {
|
||||
Self {
|
||||
workspace_mode: WorkspaceMode::OutputBound,
|
||||
workspace_amount: WorkspaceAmount::Dynamic,
|
||||
workspace_layout: WorkspaceLayout::Vertical,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum WorkspaceAmount {
|
||||
Dynamic,
|
||||
Static(u8),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum WorkspaceMode {
|
||||
OutputBound,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue