add a time bar #8

Merged
PlexSheep merged 18 commits from feat/timebar into devel 2024-07-11 16:55:49 +02:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit d6183246a6 - Show all commits

View File

@ -138,8 +138,7 @@ impl Clock {
} }
// FIXME: This generally works, but we want 0% at the start and 100% at the end, which does not // FIXME: This generally works, but we want 0% at the start and 100% at the end, which does not
// fully work. // fully work. We also want 50% at the half etc. #10
// We also want 50% at the half etc
fn timebar_ratio(&self) -> Option<f64> { fn timebar_ratio(&self) -> Option<f64> {
let len = self.timebar_len()?; let len = self.timebar_len()?;
let since = (Local::now() let since = (Local::now()