Mark now on the day-long charts
The hour heatmap and the two actograms all run midnight to midnight, and none of them said where in that span you currently are. On the heatmap that made the darkest block ambiguous: a column at 18h is either a habit or simply the hour you are standing in with the rest of the day not yet lived. On the actograms it hid the reason today's row stops early — it stops at now, not at bedtime. One rule serves all three. drawActogram already draws both timelines, so the line lands there once, and the heatmap appends the same parts after its hit rects. Ink over a surface-coloured underlay, the same treatment the timing chart's "since the last one" marker uses, so it stays readable crossing a shaded sleep window, a dark cell or bare track. A caret hangs above the track to keep it from reading as one more hour gridline, and the whole thing is pointer-events: none so it cannot swallow a tap meant for the row underneath. Deliberately not the accent colour: on these charts accent already means "the selected day", and now is a different kind of fact. The captions gain a clause naming the marker, which runs against the last few commits taking captions away. Those removed lines restated what the picture already said. This one does not: a thin vertical line has no inherent meaning, and unlike darker-means-more there is nothing to infer it from.
This commit is contained in:
@@ -1109,6 +1109,13 @@ input.switch:checked::after { transform: translateX(18px); }
|
||||
.chart-svg .stl-hit { fill: transparent; cursor: pointer; }
|
||||
.chart-svg .stl-hit:hover { fill: var(--accent); fill-opacity: 0.08; }
|
||||
|
||||
/* "Now" rule on the midnight-to-midnight charts (actograms + hour heatmap):
|
||||
ink over a surface-coloured underlay so it reads over any shaded window or
|
||||
cell, and never eats a tap meant for the row underneath. */
|
||||
.chart-svg .now-rule-ring { stroke: var(--surface); stroke-width: 3; pointer-events: none; }
|
||||
.chart-svg .now-rule { stroke: var(--text); stroke-width: 1; opacity: 0.75; pointer-events: none; }
|
||||
.chart-svg .now-rule-cap { fill: var(--text); opacity: 0.75; pointer-events: none; }
|
||||
|
||||
/* Sleep trend lines: today strongest, the reference curves lighter/dashed. */
|
||||
.chart-svg .trend-today {
|
||||
stroke: var(--sleep);
|
||||
|
||||
Reference in New Issue
Block a user