aboutsummaryrefslogtreecommitdiffstats
path: root/clock/src/preset.json
blob: 33f346a6c01d2e39afc5b0ea6db61909d649beb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
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"
              }
            ]
          }
        ]
      }
    ]
  }
}