feat: theme integration
refactor: only apply updates if there is a change in the theme refactor: include theme in state cleanup: theme integration
This commit is contained in:
parent
c16b86d1bf
commit
abbe94e6e1
24 changed files with 409 additions and 139 deletions
|
|
@ -50,10 +50,6 @@ pub struct StaticConfig {
|
|||
#[serde(default = "default_workspace_layout")]
|
||||
pub workspace_layout: WorkspaceLayout,
|
||||
pub tiling_enabled: bool,
|
||||
#[serde(default = "default_active_hint")]
|
||||
pub active_hint: u8,
|
||||
#[serde(default = "default_gaps")]
|
||||
pub gaps: (u8, u8),
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Clone, Copy, PartialEq, Eq)]
|
||||
|
|
@ -100,14 +96,6 @@ fn default_enabled() -> bool {
|
|||
true
|
||||
}
|
||||
|
||||
fn default_active_hint() -> u8 {
|
||||
4
|
||||
}
|
||||
|
||||
fn default_gaps() -> (u8, u8) {
|
||||
(0, 4)
|
||||
}
|
||||
|
||||
fn default_workspace_layout() -> WorkspaceLayout {
|
||||
WorkspaceLayout::Vertical
|
||||
}
|
||||
|
|
@ -219,8 +207,6 @@ impl Config {
|
|||
workspace_amount: WorkspaceAmount::Dynamic,
|
||||
workspace_layout: WorkspaceLayout::Vertical,
|
||||
tiling_enabled: false,
|
||||
active_hint: default_active_hint(),
|
||||
gaps: default_gaps(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue