Calendar analog clock with ticks and numerals; tiles without background
Firmware 0.2.16: the analog clock uses index strokes with 12/3/6/9 numerals on large cards and shows a calendar block (weekday, big day, short month) beside the dial on single tiles; wide cards keep the digital time and date. New palette key 'none' hides only the card fill and border: geometry, padding and the pressed flash stay identical. Skeleton frames and the render self-test honour the transparency. App 0.2.15: 'Geen' in the background palette with a dashed mockup tile, min_firmware 0.2.16 for such layouts, demo layout with the bare calendar clock (--wide for the double-width clock). README and AGENTS note that every push is a release and bumps the add-on version. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -298,6 +298,8 @@ function renderPreview() {
|
||||
const name = tile.name || entityName(tile.entity);
|
||||
const background=inventory.backgrounds?.[tile.options?.background]?.color;
|
||||
if(background)card.style.backgroundColor=background;
|
||||
// "Geen": no card on the screen; the mockup keeps a dashed outline as drop target.
|
||||
if (tile.options?.background === "none") card.classList.add("bare");
|
||||
if (place.wide) card.classList.add("wide");
|
||||
card.append(domainBadge(tile.entity), node("strong", name));
|
||||
card.dataset.index = index;
|
||||
@@ -437,7 +439,7 @@ function renderTileSheet() {
|
||||
button.setAttribute("aria-pressed", String((tile.options?.background || "auto") === key));
|
||||
const sample = node("span", undefined, "palette-sample");
|
||||
if (choice.color) sample.style.backgroundColor = choice.color;
|
||||
else sample.classList.add("palette-auto");
|
||||
else sample.classList.add(key === "none" ? "palette-none" : "palette-auto");
|
||||
button.append(sample, node("span", choice.label));
|
||||
button.onclick = () => {
|
||||
tile.options = { ...tile.options, background: key };
|
||||
|
||||
Reference in New Issue
Block a user