[ENG-631] TopBar improvements & misc fixes (#837)

* fix things

* added back/forward buttons to settings

* split top bar context into left and right

* hook up path

* fix background jobs hidden from job manager

* core

* fix type + quick preview transition

* fix selected item color contrast

* fix close button on quick preview

* clean up job ui for light theme

* Improve media view overscan

---------

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
This commit is contained in:
Jamie Pine
2023-05-20 17:17:27 -07:00
committed by GitHub
parent ce1cf7f495
commit 158366b69e
30 changed files with 270 additions and 182 deletions

View File

@@ -167,9 +167,7 @@ impl JobManager {
for worker in self.running_workers.read().await.values() {
let report = worker.lock().await.report();
if !report.is_background {
ret.push(report);
}
ret.push(report);
}
ret
}

View File

@@ -428,25 +428,26 @@ pub async fn light_scan_location(
}
let location_base_data = location::Data::from(&location);
// removed grouping for background jobs, they don't need to be grouped as only running ones are shown to the user
library
.spawn_job(
Job::new_with_action(
ShallowIndexerJobInit {
location,
sub_path: sub_path.clone(),
},
"light_scan_location",
)
.queue_next(ShallowFileIdentifierJobInit {
location: location_base_data.clone(),
sub_path: sub_path.clone(),
})
.queue_next(ShallowThumbnailerJobInit {
location: location_base_data,
sub_path,
}),
)
.spawn_job(ShallowIndexerJobInit {
location,
sub_path: sub_path.clone(),
})
.await
.unwrap_or(());
library
.spawn_job(ShallowFileIdentifierJobInit {
location: location_base_data.clone(),
sub_path: sub_path.clone(),
})
.await
.unwrap_or(());
library
.spawn_job(ShallowThumbnailerJobInit {
location: location_base_data.clone(),
sub_path: sub_path.clone(),
})
.await
}