diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-07-09 22:18:14 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-07-09 22:18:14 +0200 |
| commit | 7fc3df372f119e8c8706fca8d5b060fc13cea5b4 (patch) | |
| tree | c3c6944869dca8ec9c892e72f19006d24936305c /src/gui/mod.rs | |
| parent | 4f0b65f5eab1875edd3d4f547952e49bbc79a54d (diff) | |
add optioal prioritizer on search
Diffstat (limited to 'src/gui/mod.rs')
| -rw-r--r-- | src/gui/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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<Mutex<GenState>> = 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<Message> = if results.is_empty() { column![text("There are no results")].spacing(10).into() } else { - let lines : Vec<Element<_>> = results.iter().map(|r| text(r.path.clone()).into()).collect(); + let lines : Vec<Element<_>> = results.iter() + .map(|r| row![text(r.priority).width(Length::Fixed(50.0)), text(r.path.clone())].into()) + .collect(); column(lines).spacing(10).into() }; |