diff --git a/CHANGELOG.md b/CHANGELOG.md index c219c581..f68e57f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Anything that changes what the dashboard, the admin or a widget can do gets a li ## Unreleased ### Changed +- **Clock in the compact bar.** Show an accent-coloured clock icon beside the time, matching the weather icon. - **Homey is a declared connection now.** The Homey connection type built into Fremkit is gone: both Homey widgets bring their own, so one API key serves the two of them. An existing Homey connection is migrated when the server starts — same name, same address, same key — and the diff --git a/widgets/clock/index.html b/widgets/clock/index.html index c284e0cd..faead85c 100644 --- a/widgets/clock/index.html +++ b/widgets/clock/index.html @@ -37,6 +37,8 @@ padding:0 calc(var(--h,80px) * .10)} /* One run of inline text rather than a flex row: only that way does the ellipsis land on the line as a whole when the bar runs out of room, instead of on each span separately. */ + .clock-icon{display:inline-block;width:1em;height:1em;margin-right:.4em;vertical-align:-.12em;color:var(--accent,#d9b36a)} + html.accent-fill .clock-icon{color:var(--on-surface,#0b0d10)} html.compact .cline{min-width:0;font-size:calc(clamp(13px, calc(var(--h,80px) * .30), 26px) * var(--text-scale, 1)); font-weight:600;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* The date and the cities read at the time's own size, set apart by their weight and colour. */ @@ -45,7 +47,7 @@ /* Right cluster: the bar pushes the iframe against the dots, so its content hugs that edge too. */ html.compact.slot-right .cwrap{justify-content:flex-end;text-align:right}