From 115fe6242f18752a326fab4d155437d6f37db9aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Kr=C3=BCger?= Date: Fri, 2 Aug 2024 16:06:21 +0100 Subject: [PATCH] fix(config): use config for selection mark/unmark --- src/app.rs | 2 ++ src/config.rs | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/app.rs b/src/app.rs index 63850d12..2ac2a96a 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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); diff --git a/src/config.rs b/src/config.rs index fa7afa1c..da608ce0 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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, @@ -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); @@ -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,