aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-12-02 16:30:05 +0100
committerDanilo M. <danix@danix.xyz>2026-12-02 16:30:05 +0100
commit535d1fa7af69bc9f7573fd08a7d8ebea9303f149 (patch)
tree1649cc6cdbe8ab00f74a1b63f95af946446a642a
parentd128872a2df419798893bae2d5e7a52505ff3dc8 (diff)
downloadphone-customization-master.tar.gz
phone-customization-master.zip
clock: show "Domani" for tomorrow's event instead of the day nameHEADmaster
KWGT has no localized relative-day word, so the Italian label is hardcoded; events further out keep the short day name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rw-r--r--AGENTS.md2
-rw-r--r--clock/src/preset.json2
-rw-r--r--clock/tallclock.kwgtbin100665 -> 100688 bytes
3 files changed, 3 insertions, 1 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 24dd3b0..822c0b2 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -57,6 +57,8 @@ phone besides KWGT.
Weather (`org.breezyweather/.ui.main.MainActivity`, GitHub "standard"
build; both it and KWGT use OpenWeatherMap so the numbers match). The event line opens the event itself in Etar
via `$ci(url, 0)$` (a `content://com.android.calendar/events/<id>` link).
+- KWGT has no relative-day word or locale function, so the event line
+ hardcodes "Domani" for tomorrow (`df(D, ci(start, 0)) = df(D, a1d)`).
- `tf(date)` gives a localized countdown ("fra 25 minuti"); `ci(..., 0)` is
the next calendar event; both need KWGT's calendar/location permissions.
diff --git a/clock/src/preset.json b/clock/src/preset.json
index e112440..1df126e 100644
--- a/clock/src/preset.json
+++ b/clock/src/preset.json
@@ -198,7 +198,7 @@
{
"internal_type": "TextModule",
"internal_title": "Next event",
- "text_expression": "$if(ci(title, 0) = \"\", \"\", if(df(D, ci(start, 0)) = df(D), if(ci(allday, 0) = 1, ci(title, 0), df(HH:mm, ci(start, 0)) + \" · \" + ci(title, 0) + \" · \" + tf(ci(start, 0))), tc(cap, df(if(ci(allday, 0) = 1, \"EEE\", \"EEE HH:mm\"), ci(start, 0))) + \" · \" + ci(title, 0)))$",
+ "text_expression": "$if(ci(title, 0) = \"\", \"\", if(df(D, ci(start, 0)) = df(D), if(ci(allday, 0) = 1, ci(title, 0), df(HH:mm, ci(start, 0)) + \" · \" + ci(title, 0) + \" · \" + tf(ci(start, 0))), if(df(D, ci(start, 0)) = df(D, a1d), \"Domani\" + if(ci(allday, 0) = 1, \"\", \" \" + df(HH:mm, ci(start, 0))), tc(cap, df(if(ci(allday, 0) = 1, \"EEE\", \"EEE HH:mm\"), ci(start, 0)))) + \" · \" + ci(title, 0)))$",
"text_size": 42.0,
"text_family": "kfile://org.kustom.provider/fonts/BarlowCondensed-Medium.ttf",
"paint_color": "#FFE8DEFF",
diff --git a/clock/tallclock.kwgt b/clock/tallclock.kwgt
index 79d6284..7500d70 100644
--- a/clock/tallclock.kwgt
+++ b/clock/tallclock.kwgt
Binary files differ