aboutsummaryrefslogtreecommitdiffstats
path: root/clock/src/preset.json
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-12-02 15:38:48 +0100
committerDanilo M. <danix@danix.xyz>2026-12-02 15:38:53 +0100
commit316be05d1fe19e6d99d59eabb6a2170921fbc6c9 (patch)
tree0cb955a96a87999755736d2606a7df3c7ca35e31 /clock/src/preset.json
downloadphone-customization-316be05d1fe19e6d99d59eabb6a2170921fbc6c9.tar.gz
phone-customization-316be05d1fe19e6d99d59eabb6a2170921fbc6c9.zip
Initial commit: phone-customization, KWGT iOS-style clock
KWGT widget preset replacing Niagara's clock with a tall, narrow, glassy clock: Material You tint with a fading gradient and glass rim, date with weather icon and temperature, next calendar event with countdown. Includes the build scripts for the squeezed Oswald clock font and the weather icon subset font. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'clock/src/preset.json')
-rw-r--r--clock/src/preset.json217
1 files changed, 217 insertions, 0 deletions
diff --git a/clock/src/preset.json b/clock/src/preset.json
new file mode 100644
index 0000000..33f346a
--- /dev/null
+++ b/clock/src/preset.json
@@ -0,0 +1,217 @@
+{
+ "preset_info": {
+ "archive": "",
+ "author": "danix",
+ "description": "Tall thin clock, colors from wallpaper (Material You)",
+ "email": "",
+ "features": "",
+ "pflags": 0,
+ "hash": null,
+ "height": 630,
+ "id": "5d0c1f0e-8a3b-4c52-9f7e-2b6a1c9e4d11",
+ "locked": false,
+ "release": 382621115,
+ "ts": 1796218862800,
+ "title": "tallclock",
+ "version": 17,
+ "width": 1398,
+ "xscreens": 0,
+ "yscreens": 0
+ },
+ "preset_root": {
+ "internal_events": [
+ {
+ "action": "KUSTOM_ACTION"
+ }
+ ],
+ "internal_type": "RootLayerModule",
+ "viewgroup_items": [
+ {
+ "internal_type": "StackLayerModule",
+ "internal_title": "Widget",
+ "config_stacking": "VERTICAL_CENTER",
+ "position_anchor": "CENTER",
+ "viewgroup_items": [
+ {
+ "internal_type": "OverlapLayerModule",
+ "internal_title": "Clock",
+ "config_scale_value": 100.0,
+ "position_anchor": "CENTER",
+ "viewgroup_items": [
+ {
+ "internal_type": "StackLayerModule",
+ "internal_title": "Date line",
+ "config_stacking": "HORIZONTAL_CENTER",
+ "config_margin": 10.0,
+ "position_anchor": "TOP",
+ "viewgroup_items": [
+ {
+ "internal_type": "TextModule",
+ "internal_title": "Date",
+ "text_expression": "$tc(cap, df(EEE))$ $df(\"d MMM\")$",
+ "text_size": 42.0,
+ "text_family": "kfile://org.kustom.provider/fonts/BarlowCondensed-Medium.ttf",
+ "paint_color": "#FFE8DEFF",
+ "internal_toggles": {
+ "paint_color": 10,
+ "text_size": 10
+ },
+ "internal_formulas": {
+ "paint_color": "$si(sysca1, 95)$",
+ "text_size": "$mu(min, si(rheight)*0.8, si(rwidth)*0.88)*0.15$"
+ },
+ "fx_shadow": "OUTER",
+ "fx_shadow_color": "#66000000",
+ "fx_shadow_direction": 270.0,
+ "fx_shadow_distance": 3.0,
+ "fx_shadow_blur": 4.0,
+ "position_anchor": "CENTER",
+ "internal_events": [
+ {
+ "type": "SINGLE_TAP",
+ "action": "LAUNCH_APP",
+ "intent": "intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;component=ws.xsoh.etar/com.android.calendar.AllInOneActivity;end"
+ }
+ ]
+ },
+ {
+ "internal_type": "TextModule",
+ "internal_title": "Weather icon",
+ "text_expression": "$if(wi(icon) = CLEAR, if(ai(isday) = 1, \"\", \"\"), if(wi(icon) = PCLOUDY, if(ai(isday) = 1, \"\", \"\"), if(wi(icon) = MCLOUDY, \"\", if(wi(icon) = FOG, \"\", if(wi(icon) = WINDY, \"\", if(wi(icon) = SHOWER, \"\", if(wi(icon) = RAIN, \"\", if(wi(icon) = TSHOWER, \"\", if(wi(icon) = TSTORM, \"\", if(wi(icon) = SLEET, \"\", if(wi(icon) = LSNOW, \"\", if(wi(icon) = SNOW, \"\", if(wi(icon) = HAIL, \"\", if(wi(icon) = TORNADO, \"\", \"\"))))))))))))))$",
+ "text_size": 42.0,
+ "text_family": "kfile://org.kustom.provider/fonts/WeatherIcons.ttf",
+ "paint_color": "#FFE8DEFF",
+ "internal_toggles": {
+ "paint_color": 10,
+ "text_size": 10
+ },
+ "internal_formulas": {
+ "paint_color": "$si(sysca1, 95)$",
+ "text_size": "$mu(min, si(rheight)*0.8, si(rwidth)*0.88)*0.13$"
+ },
+ "fx_shadow": "OUTER",
+ "fx_shadow_color": "#66000000",
+ "fx_shadow_direction": 270.0,
+ "fx_shadow_distance": 3.0,
+ "fx_shadow_blur": 4.0,
+ "position_anchor": "CENTER"
+ },
+ {
+ "internal_type": "TextModule",
+ "internal_title": "Temperature",
+ "text_expression": "$if(wi(icon) = UNKNOWN, \"\", wi(temp) + \"°\")$",
+ "text_size": 42.0,
+ "text_family": "kfile://org.kustom.provider/fonts/BarlowCondensed-Medium.ttf",
+ "paint_color": "#FFE8DEFF",
+ "internal_toggles": {
+ "paint_color": 10,
+ "text_size": 10
+ },
+ "internal_formulas": {
+ "paint_color": "$si(sysca1, 95)$",
+ "text_size": "$mu(min, si(rheight)*0.8, si(rwidth)*0.88)*0.15$"
+ },
+ "fx_shadow": "OUTER",
+ "fx_shadow_color": "#66000000",
+ "fx_shadow_direction": 270.0,
+ "fx_shadow_distance": 3.0,
+ "fx_shadow_blur": 4.0,
+ "position_anchor": "CENTER"
+ }
+ ]
+ },
+ {
+ "internal_type": "TextModule",
+ "internal_title": "Time",
+ "text_expression": "$df(HH:mm)$",
+ "text_size": 390.0,
+ "text_family": "kfile://org.kustom.provider/fonts/TallClock-v3.ttf",
+ "paint_color": "#E6C8B9FF",
+ "internal_toggles": {
+ "paint_color": 10,
+ "text_size": 10,
+ "fx_gradient_color": 10
+ },
+ "internal_formulas": {
+ "paint_color": "$ce(si(sysca1, 85), alpha, 90)$",
+ "fx_gradient_color": "$ce(si(sysca1, 85), alpha, 8)$",
+ "text_size": "$mu(min, si(rheight)*0.8, si(rwidth)*0.88)$"
+ },
+ "fx_shadow": "OUTER",
+ "fx_shadow_color": "#66000000",
+ "fx_shadow_direction": 270.0,
+ "fx_shadow_distance": 3.0,
+ "fx_shadow_blur": 4.0,
+ "position_anchor": "CENTER",
+ "fx_gradient": "VERTICAL",
+ "fx_gradient_width": 100.0,
+ "fx_gradient_color": "#1AC8B9FF"
+ },
+ {
+ "internal_type": "TextModule",
+ "internal_title": "Glass rim",
+ "text_expression": "$df(HH:mm)$",
+ "text_size": 390.0,
+ "text_family": "kfile://org.kustom.provider/fonts/TallClock-v3.ttf",
+ "paint_color": "#B3FFFFFF",
+ "internal_toggles": {
+ "text_size": 10
+ },
+ "internal_formulas": {
+ "text_size": "$mu(min, si(rheight)*0.8, si(rwidth)*0.88)$"
+ },
+ "fx_shadow": "NONE",
+ "fx_shadow_color": "#40000000",
+ "fx_shadow_direction": 270.0,
+ "fx_shadow_distance": 3.0,
+ "fx_shadow_blur": 18.0,
+ "position_anchor": "CENTER",
+ "fx_gradient": "VERTICAL",
+ "fx_gradient_width": 100.0,
+ "fx_gradient_color": "#00FFFFFF",
+ "paint_style": "STROKE",
+ "paint_stroke": 2.5
+ }
+ ],
+ "internal_events": [
+ {
+ "type": "SINGLE_TAP",
+ "action": "LAUNCH_APP",
+ "intent": "intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;component=com.android.deskclock/.DeskClock;end"
+ }
+ ]
+ },
+ {
+ "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_size": 42.0,
+ "text_family": "kfile://org.kustom.provider/fonts/BarlowCondensed-Medium.ttf",
+ "paint_color": "#FFE8DEFF",
+ "internal_toggles": {
+ "paint_color": 10,
+ "text_size": 10
+ },
+ "internal_formulas": {
+ "paint_color": "$si(sysca1, 95)$",
+ "text_size": "$mu(min, si(rheight)*0.8, si(rwidth)*0.88)*0.1$"
+ },
+ "fx_shadow": "OUTER",
+ "fx_shadow_color": "#66000000",
+ "fx_shadow_direction": 270.0,
+ "fx_shadow_distance": 3.0,
+ "fx_shadow_blur": 4.0,
+ "position_anchor": "CENTER",
+ "internal_events": [
+ {
+ "type": "SINGLE_TAP",
+ "action": "LAUNCH_APP",
+ "intent": "intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;component=ws.xsoh.etar/com.android.calendar.AllInOneActivity;end"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+} \ No newline at end of file