From 7fc3df372f119e8c8706fca8d5b060fc13cea5b4 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sun, 9 Jul 2023 22:18:14 +0200 Subject: add optioal prioritizer on search --- src/gui/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/mod.rs b/src/gui/mod.rs index 6f88923..0dcf430 100644 --- a/src/gui/mod.rs +++ b/src/gui/mod.rs @@ -25,7 +25,7 @@ static GENERATE_STATUS : Lazy> = Lazy::new(|| { Mutex::new(GenSt pub fn run() -> iced::Result { App::run(Settings { window: window::Settings { - size: (500, 800), + size: (1000, 800), ..window::Settings::default() }, ..Settings::default() @@ -256,7 +256,9 @@ impl Application for App { let res : Element = if results.is_empty() { column![text("There are no results")].spacing(10).into() } else { - let lines : Vec> = results.iter().map(|r| text(r.path.clone()).into()).collect(); + let lines : Vec> = results.iter() + .map(|r| row![text(r.priority).width(Length::Fixed(50.0)), text(r.path.clone())].into()) + .collect(); column(lines).spacing(10).into() }; -- cgit v1.2.3-70-g09d2