Calendar · views on the clock keep moving

The week and day views read the clock once and handed that moment down
as given, which turned off the line's ticker: the line at now and the
lit day stood still. The owner's moment now goes down unchanged, and a
time grid, month view or year view on the clock keeps its own ticker,
so the line moves and today turns over at midnight, even on days that
are not today. A given moment holds them still.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-09-27 03:23:18 -04:00
1 parent a41cb2f9c2
commit b68f2bf1d5
6 files changed
+106 -7

No files matched your search

+4 -1
View File
@@ -16,7 +16,7 @@ use crate::{
layout::seeded::use_seeded,
primitives::tab_stop,
theme::{ActiveTheme, TextSize},
typography::format,
typography::{format, fresh},
};
const INITIALS: [&str; 7] = ["M", "T", "W", "T", "F", "S", "S"];
@@ -191,6 +191,9 @@ impl Mini<'_> {
impl RenderOnce for YearView {
fn render(self, window: &mut Window, cx: &mut App) -> impl IntoElement {
if self.today.is_none() {
fresh((self.id.clone(), "clock"), window, cx);
}
let zone = self
.zone
.unwrap_or_else(|| format::system_zone("year view"));