Skip to content

Commit

Permalink
fix(config): use config for selection mark/unmark
Browse files Browse the repository at this point in the history
  • Loading branch information
vapourismo committed Aug 2, 2024
1 parent a768ee4 commit 115fe62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,8 @@ impl TaskwarriorTui {
)
.highlight_style(highlight_style)
.highlight_symbol(&self.config.uda_selection_indicator)
.mark_highlight_symbol(&self.config.uda_mark_highlight_indicator)
.unmark_highlight_symbol(&self.config.uda_unmark_highlight_indicator)
.mark_symbol(&self.config.uda_mark_indicator)
.unmark_symbol(&self.config.uda_unmark_indicator)
.widths(&constraints);
Expand Down
6 changes: 6 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ pub struct Config {
pub uda_task_report_looping: bool,
pub uda_task_report_jump_to_task_on_add: bool,
pub uda_selection_indicator: String,
pub uda_mark_highlight_indicator: String,
pub uda_unmark_highlight_indicator: String,
pub uda_mark_indicator: String,
pub uda_unmark_indicator: String,
pub uda_scrollbar_indicator: String,
Expand Down Expand Up @@ -133,6 +135,8 @@ impl Config {
let uda_task_report_looping = Self::get_uda_task_report_looping(data);
let uda_task_report_jump_to_task_on_add = Self::get_uda_task_report_jump_to_task_on_add(data);
let uda_selection_indicator = Self::get_uda_selection_indicator(data);
let uda_mark_highlight_indicator = Self::get_uda_mark_highlight_indicator(data);
let uda_unmark_highlight_indicator = Self::get_uda_unmark_highlight_indicator(data);
let uda_mark_indicator = Self::get_uda_mark_indicator(data);
let uda_unmark_indicator = Self::get_uda_unmark_indicator(data);
let uda_scrollbar_indicator = Self::get_uda_scrollbar_indicator(data);
Expand Down Expand Up @@ -198,6 +202,8 @@ impl Config {
uda_task_report_looping,
uda_task_report_jump_to_task_on_add,
uda_selection_indicator,
uda_mark_highlight_indicator,
uda_unmark_highlight_indicator,
uda_mark_indicator,
uda_unmark_indicator,
uda_scrollbar_indicator,
Expand Down

0 comments on commit 115fe62

Please sign in to comment.