Drag the date range on the axis it is chosen from
The range could be turned on with a finger and not aimed with one. Its two ends were typed as `YYYY-MM-DD` into 108px fields behind a soft keyboard, to name days already drawn on the axis a thumb away; and the chip that seeds them takes its span from the timeline's zoom and pan, which are a wheel and a middle button. A touch screen has neither, so on Android the filter was a switch with no aim. The band is now on the timeline. Two ends with grips, dragged along the bars, released to filter — the histogram was already how a period is found, and this makes it how a period is stated. Both ends snap to whole days, which is what the typed fields mean, what `show_range` reads back out, and a floor under a range dragged shut. The fields stay for what dragging cannot do: name an exact day, and say in words what the range is. For that to work the axis had to stop following the range. Redrawn to the band, it moved the ground under the very handles doing the narrowing, and there was nothing outside the range left to widen back into. While there: a fixed number of equal bins instead of calendar buckets. Between one calendar unit and the next the bar count is free to wander by a factor of twelve, so zooming in halved it two steps out of three — the same picture drawn wider until it jumped back to fine. Equal bins also include the empty ones, so a bar's position on the track and the date under it are finally the same quantity; before, a library with gaps drew a February six months wide and the marker, the band and a click all pointed somewhere else. The count is a setting, 32 or 64, because the right answer is a question about the screen. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1015,6 +1015,7 @@ pub fn run(paths: Vec<PathBuf>) -> Result<()> {
|
||||
let stored = settings.snapshot();
|
||||
library.set_cache_budget(stored.cache.original_budget_bytes);
|
||||
library.set_keep_opened_originals(stored.cache.keep_opened_originals);
|
||||
library.set_timeline_bars(stored.library.timeline_bars);
|
||||
}
|
||||
|
||||
// --- the export folder picker ----------------------------------------
|
||||
@@ -1151,6 +1152,17 @@ pub fn run(paths: Vec<PathBuf>) -> Result<()> {
|
||||
refresh_export_label(&w, &ctl);
|
||||
}
|
||||
|
||||
// The axis is cut into bars when the window is loaded, so a new
|
||||
// count only shows once something reloads it. Done here, and only
|
||||
// when the figure actually moved: a setting that appears to do
|
||||
// nothing until the user scrolls is one they will change twice and
|
||||
// then leave wrong.
|
||||
if lib.set_timeline_bars(s.library.timeline_bars) {
|
||||
if let Some(w) = weak.upgrade() {
|
||||
library_ui::reload(&w, &lib);
|
||||
}
|
||||
}
|
||||
|
||||
// Lowering the ceiling evicts, so the figure beside it has just
|
||||
// changed — leaving the old one would show the cache still over a
|
||||
// limit that was enforced a moment ago.
|
||||
|
||||
Reference in New Issue
Block a user