diff --git a/src/lib.rs b/src/lib.rs index 04ac105..8fa6f58 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -45,8 +45,8 @@ pub fn run(buffer: String, opt: &CliOpt) -> Option<(String, bool)> { &mut model, opt.unique_hint, opt.focus_wrap_around, - &opt.hint_alignment, &opt.colors, + &opt.hint_alignment, hint_style, ); diff --git a/src/ui.rs b/src/ui.rs index c39ab18..7a7b609 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -15,8 +15,8 @@ pub struct Ui<'a> { lookup_trie: SequenceTrie, focus_index: usize, focus_wrap_around: bool, - hint_alignment: &'a HintAlignment, rendering_colors: &'a UiColors, + hint_alignment: &'a HintAlignment, hint_style: Option, } @@ -25,8 +25,8 @@ impl<'a> Ui<'a> { model: &'a mut model::Model<'a>, unique_hint: bool, focus_wrap_around: bool, - hint_alignment: &'a HintAlignment, rendering_colors: &'a UiColors, + hint_alignment: &'a HintAlignment, hint_style: Option, ) -> Ui<'a> { let matches = model.matches(unique_hint); @@ -39,8 +39,8 @@ impl<'a> Ui<'a> { lookup_trie, focus_index, focus_wrap_around, - hint_alignment, rendering_colors, + hint_alignment, hint_style, } } @@ -823,8 +823,8 @@ Barcelona https://en.wikipedia.org/wiki/Barcelona - "; lookup_trie: SequenceTrie::new(), focus_index: 0, focus_wrap_around: false, - hint_alignment: &hint_alignment, rendering_colors: &rendering_colors, + hint_alignment: &hint_alignment, hint_style: None, }; @@ -888,8 +888,8 @@ Barcelona https://en.wikipedia.org/wiki/Barcelona - "; &mut model, unique_hint, wrap_around, - &hint_alignment, &rendering_colors, + &hint_alignment, hint_style, );