Skip to content

Commit

Permalink
feat: accept new defaults #13
Browse files Browse the repository at this point in the history
  • Loading branch information
rvcas committed Sep 6, 2024
1 parent ecd68a6 commit 8659d36
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 26 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ chrono = "0.4.26"
owo-colors = "3"
zellij-tile = "0.40"

[features]
updated_defaults = []
34 changes: 10 additions & 24 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,16 @@ struct State {

impl Default for State {
fn default() -> Self {
if cfg!(feature = "updated_defaults") {
Self {
tabs: Default::default(),
filter: Default::default(),
selected: Default::default(),
ignore_case: true,
selection_color: AnsiColors::Yellow,
active_tab_color: None,
underline_active: true,
apply_selection_for_foreground_instead: true,
apply_active_color_for_background_instead: false,
}
} else {
Self {
tabs: Default::default(),
filter: Default::default(),
selected: Default::default(),
ignore_case: true,
selection_color: AnsiColors::Cyan,
active_tab_color: Some(AnsiColors::Red),
underline_active: false,
apply_selection_for_foreground_instead: false,
apply_active_color_for_background_instead: false,
}
Self {
tabs: Default::default(),
filter: Default::default(),
selected: Default::default(),
ignore_case: true,
selection_color: AnsiColors::Yellow,
active_tab_color: None,
underline_active: true,
apply_selection_for_foreground_instead: true,
apply_active_color_for_background_instead: false,
}
}
}
Expand Down

0 comments on commit 8659d36

Please sign in to comment.