diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d030248..b6e33437 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ Notable user-visible changes are recorded here. ScriptWidget follows semantic ve - Add bounded sleep, activity-ring and workout summaries, a Health Overview template and editable Web sample data. - Fix native Promise callback ownership so completed and abandoned executions release their JavaScript VM and snapshot. - Serialize native runtime subscription, result delivery and cancellation to prevent intermittent empty results and reference-lifetime crashes. +- Fix bundled templates whose text was cut off or pushed out of the widget, most visibly with the wider font of Android, Windows and Linux: Month Calendar (long month names, six-week months), the Daily Command Center, Family Command Board, Travel Day and Wellness dashboards, World Clock Faces and Year in Dots at the extra-large size, and fifteen smaller templates. - Continue expanded personal-data APIs, authenticated services/music and visual editing on the same release branch; M3–M5 remain in progress. ## Unreleased diff --git a/Gallery/index.json b/Gallery/index.json index 68bbfd3b..bf152a9c 100644 --- a/Gallery/index.json +++ b/Gallery/index.json @@ -1,5 +1,5 @@ { - "generatedAt": "2026-11-16T16:22:21.698Z", + "generatedAt": "2026-11-18T13:33:48.300Z", "items": [ { "author": "ScriptWidget Community", @@ -1025,9 +1025,9 @@ "featured": true, "files": [ { - "bytes": 3444, + "bytes": 3480, "path": "main.jsx", - "sha256": "c28b645408169b2b794684c015fe2587de62710aaa071f4c0e0e251606b215b3", + "sha256": "8cd4403948dc83ed6cd955821657695a69bac3c0f62a672bec3735c676b8a2ab", "url": "https://raw.githubusercontent.com/everettjf/scriptwidget/main/Gallery/widgets/music-playback/main.jsx" }, { @@ -1061,9 +1061,9 @@ "featured": true, "files": [ { - "bytes": 603, + "bytes": 605, "path": "main.jsx", - "sha256": "196ad38a141b5111a253c0687c96736cd1c296dc7d6ecb862ea1d0d57950debc", + "sha256": "4c9a60320892baf0870a9d882bdaec1da568961e04fbfaeb8042588a4c6b0519", "url": "https://raw.githubusercontent.com/everettjf/scriptwidget/main/Gallery/widgets/layout-starter/main.jsx" }, { diff --git a/Gallery/widgets/layout-starter/main.jsx b/Gallery/widgets/layout-starter/main.jsx index 56040d32..c0e7a93d 100644 --- a/Gallery/widgets/layout-starter/main.jsx +++ b/Gallery/widgets/layout-starter/main.jsx @@ -7,7 +7,7 @@ $render( A fresh start - Make today yours + Make today yours A little space for your ideas. ); diff --git a/Gallery/widgets/music-playback/main.jsx b/Gallery/widgets/music-playback/main.jsx index 47dd6e48..aa134a6b 100644 --- a/Gallery/widgets/music-playback/main.jsx +++ b/Gallery/widgets/music-playback/main.jsx @@ -29,9 +29,9 @@ if (family === "accessoryInline") { $render({title}{`${status} · ${playback ? playback.artist || "Music app" : "Open ScriptWidget"}`}); } else { $render( - {status}Music + {compact && !playback ? "Setup" : status}Music - {title} + {title} {subtitle} {progress !== null && {time(playback.position)}{time(playback.duration)}} {!compact && family !== "medium" && <>A playback snapshot. Refresh to update.} diff --git a/Linux/Cargo.lock b/Linux/Cargo.lock index 1218f546..189cedb2 100644 --- a/Linux/Cargo.lock +++ b/Linux/Cargo.lock @@ -6164,7 +6164,7 @@ dependencies = [ [[package]] name = "sw-cli" -version = "0.1.2" +version = "0.1.3" dependencies = [ "flate2", "getrandom 0.3.4", @@ -6179,7 +6179,7 @@ dependencies = [ [[package]] name = "sw-core" -version = "0.1.2" +version = "0.1.3" dependencies = [ "cc", "flate2", @@ -6203,7 +6203,7 @@ dependencies = [ [[package]] name = "sw-host" -version = "0.1.2" +version = "0.1.3" dependencies = [ "getrandom 0.3.4", "libc", @@ -6217,14 +6217,14 @@ dependencies = [ [[package]] name = "sw-quickjs" -version = "0.1.2" +version = "0.1.3" dependencies = [ "cc", ] [[package]] name = "sw-render" -version = "0.1.2" +version = "0.1.3" dependencies = [ "serde", "serde_json", @@ -6235,7 +6235,7 @@ dependencies = [ [[package]] name = "sw-studio" -version = "0.1.2" +version = "0.1.3" dependencies = [ "futures", "getrandom 0.3.4", diff --git a/Linux/Cargo.toml b/Linux/Cargo.toml index 7b964a03..972bcde8 100644 --- a/Linux/Cargo.toml +++ b/Linux/Cargo.toml @@ -3,7 +3,7 @@ resolver = "3" members = ["crates/sw-quickjs", "crates/sw-core", "crates/sw-render", "crates/sw-cli", "crates/sw-host", "crates/sw-studio"] [workspace.package] -version = "0.1.2" +version = "0.1.3" edition = "2024" license = "Apache-2.0" publish = false diff --git a/Linux/crates/sw-cli/src/commands.rs b/Linux/crates/sw-cli/src/commands.rs index bf424192..f0b8218b 100644 --- a/Linux/crates/sw-cli/src/commands.rs +++ b/Linux/crates/sw-cli/src/commands.rs @@ -641,14 +641,15 @@ const size = $getenv("widget-size"); $render( - + - - Your next idea - Start editing main.jsx to make it yours. + + Your next idea + Start editing main.jsx to make it yours. + ); "##; diff --git a/Linux/crates/sw-render/examples/layout_tree.rs b/Linux/crates/sw-render/examples/layout_tree.rs new file mode 100644 index 00000000..a7714a67 --- /dev/null +++ b/Linux/crates/sw-render/examples/layout_tree.rs @@ -0,0 +1,54 @@ +//! Lays out canonical element trees and writes the recorded elements as JSON, +//! without painting: what `Linux/scripts/find-truncated-text.mjs` reads to +//! find text that did not fit. +//! +//! cargo run --release -p sw-render --example layout_tree -- [assets directory] < jobs +//! +//! Each line of standard input is one job, its fields separated by tabs: +//! ` `. +//! One line is printed for each job: `ok` or `failed: `. The assets +//! directory is the one `node Linux/scripts/build-shared-js.mjs` writes +//! (default: `Linux/assets/scriptwidget`). A tree is what a package execution +//! returns; this example does not run packages. + +use std::io::BufRead; +use std::path::PathBuf; +use std::process::ExitCode; +use std::sync::Arc; + +use sw_core::{DiskPackageFiles, PackageFiles, SharedScripts}; +use sw_render::{RenderRequest, WidgetRenderer}; + +fn lay_out(renderer: &WidgetRenderer, line: &str) -> Result<(), String> { + let [tree_file, family, now, package, output] = line.split('\t').collect::>()[..] else { + return Err("a job is , separated by tabs".into()); + }; + let tree = std::fs::read_to_string(tree_file).map_err(|error| format!("{tree_file}: {error}"))?; + let mut request = RenderRequest::for_family(tree, family, 1.0).ok_or_else(|| format!("{family} is not a widget family"))?; + if now != "-" { + request.now_milliseconds = Some(now.parse().map_err(|_| format!("{now} is not a time"))?); + } + if package != "-" { + request.files = Some(Arc::new(DiskPackageFiles::new(PathBuf::from(package))) as Arc); + } + let layout = renderer.layout(request).map_err(|error| error.to_string())?; + std::fs::write(output, layout).map_err(|error| format!("{output}: {error}")) +} + +fn main() -> ExitCode { + let assets = std::env::args().nth(1).map_or_else(|| PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../assets/scriptwidget"), PathBuf::from); + let renderer = match SharedScripts::new(assets).map_err(|error| error.to_string()).and_then(|scripts| WidgetRenderer::new(Arc::new(scripts)).map_err(|error| error.to_string())) { + Ok(renderer) => renderer, + Err(message) => { + eprintln!("{message}"); + return ExitCode::FAILURE; + } + }; + for line in std::io::stdin().lock().lines().map_while(Result::ok).filter(|line| !line.is_empty()) { + match lay_out(&renderer, &line) { + Ok(()) => println!("ok"), + Err(message) => println!("failed: {}", message.replace('\n', " ")), + } + } + ExitCode::SUCCESS +} diff --git a/Linux/omarchy-plugin/README.md b/Linux/omarchy-plugin/README.md index 0ee63312..54d85c51 100644 --- a/Linux/omarchy-plugin/README.md +++ b/Linux/omarchy-plugin/README.md @@ -47,9 +47,9 @@ Read from the environment of the shell process with `Quickshell.env`, for develo The contract is section 4.8 of [`docs/linux/plan.md`](../../docs/linux/plan.md). The plugin runs `scriptwidget watch` and reads one JSON event per line. - **Widgets.** Each `widget` event becomes one layer-shell window, namespace `scriptwidget`, on the bottom layer (above the wallpaper, below every window), on the screen the event names or the first screen. It is transparent, reserves no space and never takes the keyboard. -- **Taps.** The input region of a widget window is exactly its tap regions. A click in a region runs `scriptwidget tap `; a click anywhere else on the widget goes to whatever is below it. Where regions overlap, the one named last wins. +- **Taps and the menu.** A widget window takes the pointer over its whole area. A left click in a tap region runs `scriptwidget tap ` (where regions overlap, the one named last wins); a left click elsewhere on the widget does nothing. A right click anywhere on the widget opens its menu: `resize-small`, `resize-medium`, `resize-large`, `resize-extraLarge`, `edit`, `refresh` and `remove` run `scriptwidget menu `, and "Move widgets…" / "Done moving" runs `scriptwidget arrange`. - **Show on top** (`mode.peek`). The same windows move to the overlay layer and back. -- **Arrange** (`mode.arrange`). The widget windows are replaced by one window per screen, namespace `scriptwidget-arrange`, that shows the same pictures with an outline. A widget can be dragged; letting go runs `scriptwidget move `. Within 40 px of an edge of the usable area a widget snaps to 16 px from it. The usable area is the screen without the bar and without the Omarchy dock: the plugin asks Hyprland (`hyprctl -j layers`) where the `omarchy-dock` layer is each time arrange mode starts and each time a drag starts. A right click opens a menu that runs `scriptwidget menu ` with `resize-small`, `resize-medium`, `resize-large`, `resize-extraLarge`, `edit`, `refresh` or `remove`. +- **Arrange** (`mode.arrange`). The widget windows are replaced by one window per screen, namespace `scriptwidget-arrange`, that shows the same pictures with an outline. A widget can be dragged; letting go runs `scriptwidget move `. Within 40 px of an edge of the usable area a widget snaps to 16 px from it. The usable area is the screen without the bar and without the Omarchy dock: the plugin asks Hyprland (`hyprctl -j layers`) where the `omarchy-dock` layer is each time arrange mode starts and each time a drag starts. A right click opens the same menu as outside arrange mode. - **Frames.** A widget with `frames` cycles through them. The cycle stops while a fullscreen window is on the workspace in front of the widget (and "show on top" is off), while arranging, and while the service is not running. It does not stop when ordinary windows cover the widget or when the session is locked: Quickshell has no cheap signal for either. - **Reports.** After every `hello`, and when they change: `scriptwidget screen ` for each screen (the scale Hyprland reports; logical size) and `scriptwidget theme `, judged from the brightness of the theme's background color. - **Bar entry.** Left click opens the management window. Right click opens a card with "Show widgets on top" and "Arrange widgets", which run `scriptwidget peek` and `scriptwidget arrange` and show the state the last `mode` event gave. diff --git a/Linux/omarchy-plugin/Service.qml b/Linux/omarchy-plugin/Service.qml index baa9e2da..feb2f53a 100644 --- a/Linux/omarchy-plugin/Service.qml +++ b/Linux/omarchy-plugin/Service.qml @@ -209,9 +209,11 @@ Item { } else if (event.event === "remove") { if (validId(event.id)) drop([event.id]) } else if (event.event === "mode") { + var arranging = arrange arrange = event.arrange === true peek = event.peek === true - if (!arrange) closeMenu() + // A menu opened in arrange mode goes with it; one opened outside it stays. + if (arranging && !arrange) closeMenu() } else if (event.event === "bye") { // The pictures stay; the retry below finds the service again. greeted = false @@ -365,7 +367,7 @@ Item { } function openMenu(id, screen, x, y) { - if (!arrange || !widgets[id]) return + if (!widgets[id]) return menuScreen = screen menuX = x menuY = y @@ -504,8 +506,8 @@ Item { } } - // The menu of a widget in arrange mode: one window over the whole screen, - // so a click anywhere else closes it. + // The menu of a widget, opened by a right click on it (in arrange mode or + // not): one window over the whole screen, so a click anywhere else closes it. PanelWindow { id: menu @@ -575,6 +577,35 @@ Item { } } } + + // Not a word for the service: switches arrange mode, where widgets are dragged. + Rectangle { + id: arrangeRow + width: rows.width + height: Commons.Style.spacing.popupRowHeight + radius: Math.max(0, card.radius - Commons.Style.spacing.sm) + color: arrangeHover.containsMouse ? Commons.Style.hoverFill : "transparent" + + Text { + anchors.verticalCenter: parent.verticalCenter + x: Commons.Style.spacing.controlPaddingX + width: parent.width - 2 * x + textFormat: Text.PlainText + text: strings.t(root.arrange ? "menu.arrange.done" : "menu.arrange") + color: Commons.Color.popups.text + font.family: Commons.Style.font.family + font.pixelSize: Commons.Style.font.body + elide: Text.ElideRight + } + + MouseArea { + id: arrangeHover + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + onClicked: { root.closeMenu(); root.toggleArrange() } + } + } } } } diff --git a/Linux/omarchy-plugin/WidgetWindow.qml b/Linux/omarchy-plugin/WidgetWindow.qml index e4b65d27..e64adc83 100644 --- a/Linux/omarchy-plugin/WidgetWindow.qml +++ b/Linux/omarchy-plugin/WidgetWindow.qml @@ -29,7 +29,14 @@ PanelWindow { // does not come up on the display it is given next. Hiding it for a moment // and showing it again does bring it up there. property bool moving: false - onScreenChanged: { moving = true; remap.restart() } + // The trigger is the set of displays changing, not this window's own + // "screen changed": the shell reports that one also while it is showing the + // window, and reacting to it hid the window again. With a display added or + // removed, every widget window is shown again, also one that stays where it is. + Connections { + target: Quickshell + function onScreensChanged() { if (!panel.moving) { panel.moving = true; remap.restart() } } + } Timer { id: remap; interval: 200; onTriggered: panel.moving = false } anchors { top: true; left: true } margins { left: widget.x; top: widget.y } @@ -60,33 +67,10 @@ PanelWindow { } Timer { id: layerSync; interval: 350; onTriggered: panel.syncLayer() } - // The input region: the tap regions and nothing else. - mask: Region { regions: panel.tapRegions } - - property list tapRegions - - function collectRegions() { - var found = [] - for (var index = 0; index < regionMaker.count; index++) { - var region = regionMaker.objectAt(index) - if (region) found.push(region) - } - tapRegions = found - } - - Instantiator { - id: regionMaker - model: panel.widget.regions - delegate: Region { - required property var modelData - x: modelData.x - y: modelData.y - width: modelData.width - height: modelData.height - } - onObjectAdded: panel.collectRegions() - onObjectRemoved: panel.collectRegions() - } + // The whole widget takes the pointer: a left click on a tap region is a tap, + // and a right click anywhere on it opens the widget's menu. (Earlier only + // the tap regions took input and the menu existed in arrange mode alone, + // which made a widget look as if it ignored the mouse.) onFramesChanged: if (frame >= frames.length) frame = 0 @@ -103,19 +87,34 @@ PanelWindow { } MouseArea { + id: pointer anchors.fill: parent - cursorShape: Qt.PointingHandCursor + acceptedButtons: Qt.LeftButton | Qt.RightButton + hoverEnabled: true + cursorShape: overRegion ? Qt.PointingHandCursor : Qt.ArrowCursor - onClicked: function (mouse) { - // Where regions overlap, the one named last is on top. + property bool overRegion: false + + // The tap region at a point, or null. Where regions overlap, the one named last is on top. + function regionAt(x, y) { var regions = panel.widget.regions for (var index = regions.length - 1; index >= 0; index--) { var region = regions[index] - if (mouse.x >= region.x && mouse.x < region.x + region.width && mouse.y >= region.y && mouse.y < region.y + region.height) { - panel.service.tap(panel.modelData, region.n) - return - } + if (x >= region.x && x < region.x + region.width && y >= region.y && y < region.y + region.height) return region + } + return null + } + + onPositionChanged: function (mouse) { overRegion = regionAt(mouse.x, mouse.y) !== null } + onExited: overRegion = false + + onClicked: function (mouse) { + if (mouse.button === Qt.RightButton) { + panel.service.openMenu(panel.modelData, panel.screen, panel.widget.x + mouse.x, panel.widget.y + mouse.y) + return } + var region = regionAt(mouse.x, mouse.y) + if (region) panel.service.tap(panel.modelData, region.n) } } } diff --git a/Linux/omarchy-plugin/i18n/en.json b/Linux/omarchy-plugin/i18n/en.json index 4da4af45..78827718 100644 --- a/Linux/omarchy-plugin/i18n/en.json +++ b/Linux/omarchy-plugin/i18n/en.json @@ -14,5 +14,7 @@ "menu.resize-extraLarge": "Extra large", "menu.edit": "Edit", "menu.refresh": "Refresh", - "menu.remove": "Remove" + "menu.remove": "Remove", + "menu.arrange": "Move widgets…", + "menu.arrange.done": "Done moving" } diff --git a/Linux/omarchy-plugin/i18n/zh-CN.json b/Linux/omarchy-plugin/i18n/zh-CN.json index 8b7cd104..e5dc93cc 100644 --- a/Linux/omarchy-plugin/i18n/zh-CN.json +++ b/Linux/omarchy-plugin/i18n/zh-CN.json @@ -14,5 +14,7 @@ "menu.resize-extraLarge": "特大", "menu.edit": "编辑", "menu.refresh": "刷新", - "menu.remove": "移除" + "menu.remove": "移除", + "menu.arrange": "移动小组件…", + "menu.arrange.done": "完成移动" } diff --git a/Linux/omarchy-plugin/manifest.json b/Linux/omarchy-plugin/manifest.json index 6baa177e..1484b2c9 100644 --- a/Linux/omarchy-plugin/manifest.json +++ b/Linux/omarchy-plugin/manifest.json @@ -2,7 +2,7 @@ "schemaVersion": 1, "id": "com.atomsprout.scriptwidget", "name": "ScriptWidget", - "version": "0.1.2", + "version": "0.1.3", "author": "AtomSprout", "description": "Shows the widgets ScriptWidget draws on the desktop layer and passes clicks back to it", "license": "Apache-2.0", diff --git a/Linux/omarchy-plugin/tests/check.sh b/Linux/omarchy-plugin/tests/check.sh index 90144d38..a83ea8b6 100755 --- a/Linux/omarchy-plugin/tests/check.sh +++ b/Linux/omarchy-plugin/tests/check.sh @@ -191,15 +191,25 @@ if [ -n "$catcher_pid" ] && until_true 5 test -e "$T/clicks"; then check "peek: the widgets move to the overlay layer" until_true 3 has_layer "3 460 80 170 170" shot "0,0 1000x420" "$out/2-peek-over-window.png" - before=$(received); click 545 165 - check "pass through: a click on a widget without regions reaches the window below" [ "$(received)" -gt "$before" ] + # A widget takes the pointer over its whole area (so that a right click on + # it can open its menu); a click on it never reaches a window below. + before=$(received); clear_log; click 545 165 + check "on top: a click on a widget without regions stays with the widget" [ "$(received)" = "$before" ] before=$(received); click 120 100 - check "pass through: a click beside the region reaches the window below" [ "$(received)" -gt "$before" ] + check "on top: a click beside the region stays with the widget" [ "$(received)" = "$before" ] + no_tap() { ! logged 'command tap'; } + check "on top: and is not a tap" no_tap + right_click 545 165 + check "menu: a right click on a widget opens its menu outside arrange mode" until_true 3 is menu true + check "menu: over the whole screen" until_true 3 count_is scriptwidget-menu 1 + click 1500 900 + check "menu: a click elsewhere closes it" until_true 3 is menu false + no_menu_word() { ! logged 'command menu'; } + check "menu: and sends nothing" no_menu_word before=$(received); clear_log; click 244 207 check "pass through: a click in the region is a tap" until_true 3 logged 'command tap a 1$' check "pass through: and does not reach the window below" [ "$(received)" = "$before" ] - # The other way round, so the three checks above can be seen to fail. "$sw" arrange; until_true 3 is arrange true; sleep 0.5 before=$(received); click 545 165 check "pass through: in arrange mode the click stays with the widget" [ "$(received)" = "$before" ] @@ -270,6 +280,33 @@ DETAIL=$(widget_layers | tr '\n' ';') check "arrange: the widget windows are back on the bottom layer, where they were dropped" until_true 3 has_layer "1 680 480 329 170" check "menu: b now has the medium size" has_layer "1 1000 600 329 170" +# ------------------------------------------------- a display comes and goes + +# An earlier version of the plugin made the shell crash here. +shell_now() { pgrep -f 'quickshell -n -p' | head -1; } +crash_count() { ls "$HOME/.cache/quickshell/crashes" 2>/dev/null | wc -l; } +monitor_count_is() { [ "$(hyprctl -j monitors | jq length)" = "$1" ]; } +on_display() { hyprctl -j layers | jq -e --arg m "$1" '.[$m].levels | to_entries[] | .value[] | select(.namespace == "scriptwidget")' >/dev/null; } +shell_before=$(shell_now); crashes_before=$(crash_count) +hyprctl output create headless >/dev/null +if until_true 6 monitor_count_is 2; then + second=$(hyprctl -j monitors | jq -r --arg s "$screen" '.[] | select(.name != $s) | .name' | head -1) + sleep 1 + "$sw" move a "$second" 100 100 + check "displays: a widget moved to a second display is shown there" until_true 6 on_display "$second" + hyprctl output remove "$second" >/dev/null + until_true 6 monitor_count_is 1 + check "displays: when that display goes away the widget shows on the first one" until_true 8 has_layer "1 100 100 329 170" + "$sw" move a "$screen" 680 480 + check "displays: and it can be moved back" until_true 6 has_layer "1 680 480 329 170" + same_shell() { [ "$(shell_now)" = "$shell_before" ]; } + no_new_crash() { [ "$(crash_count)" = "$crashes_before" ]; } + check "displays: the shell is still the same process" same_shell + check "displays: and wrote no crash report" no_new_crash +else + skip "displays" "could not add a headless display" +fi + # ------------------------------------------------- remove, and bad messages "$sw" menu b remove diff --git a/Linux/scripts/find-truncated-text.mjs b/Linux/scripts/find-truncated-text.mjs new file mode 100644 index 00000000..e6e0dc72 --- /dev/null +++ b/Linux/scripts/find-truncated-text.mjs @@ -0,0 +1,262 @@ +#!/usr/bin/env node +// Finds text that does not fit in the bundled templates when it is drawn with +// Inter, the font of Android, Windows and Linux, which is wider than Apple's +// system font. Every package of Script.bundle is run at the four desktop +// families on a handful of dates chosen for the longest strings, laid out by +// the shared renderer with Skia's Inter metrics, and the recorded elements +// are searched for: +// +// truncated a text the layout cut and ended with "…" +// clipped a text narrower than "…" that the layout cut at its frame +// wrapped a short text (one or two words) broken over more than one line +// outside a text whose box leaves the widget +// +// A finding is a candidate, not a verdict: a long title elided on purpose is +// reported too. Look at the picture (--pictures) before changing a template. +// +// node Linux/scripts/build-shared-js.mjs +// cd Linux && cargo build --release -p sw-cli && cargo build --release -p sw-render --example layout_tree +// node Linux/scripts/find-truncated-text.mjs [--only ] [--pictures ] [--json ] [--keep ] +// +// On macOS the cargo commands need PKG_CONFIG_PATH="$(brew --prefix icu4c)/lib/pkgconfig". +// The script's clock is fixed by putting a `Date` whose "now" is the chosen +// moment in front of each source file of a temporary copy of the package; +// the templates themselves are not touched. Packages that need the network or +// an API Linux lacks draw their fallback or fail; the ones that fail are +// listed as not checked. Exit code 1 when anything was found. + +import { execFile, spawn } from "node:child_process"; +import { cpSync, existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs"; +import { tmpdir } from "node:os"; +import { dirname, join, relative, resolve } from "node:path"; +import { fileURLToPath } from "node:url"; + +const root = resolve(dirname(fileURLToPath(import.meta.url)), "../.."); +const bundle = join(root, "Shared/ScriptWidgetRuntime/Resource/Script.bundle"); +const assets = process.env.SCRIPTWIDGET_RUNTIME_ASSETS ?? join(root, "Linux/assets/scriptwidget"); +const cli = join(root, "Linux/target/release/scriptwidget"); +const layoutTree = join(root, "Linux/target/release/examples/layout_tree"); +const timeZone = "UTC"; + +// The families of the Linux, Windows and Mac desktops (see FAMILY_SIZES in sw-render). +const families = ["small", "medium", "large", "extraLarge"]; +// The moments, in UTC, that give the longest strings the templates format. +const moments = { + // "Wednesday", "September", "12:59 PM", day 259 of the year with 106 left. + "wed-sep-16-1259": Date.UTC(2026, 8, 16, 12, 59, 58), + // "Wednesday", "November", a wide 24-hour time. + "wed-nov-18-2048": Date.UTC(2026, 10, 18, 20, 48, 38), + // A month of six weeks, "Saturday", day 241. + "sat-aug-29-2248": Date.UTC(2026, 7, 29, 22, 48, 8), + // The end of the year: "December", 100 % and 364 days gone. + "wed-dec-30-2359": Date.UTC(2026, 11, 30, 23, 59, 59), + // The start of the year: "12:00 AM", 0 % and 364 days left. + "thu-jan-01-0000": Date.UTC(2026, 0, 1, 0, 0, 5), +}; + +function option(name) { + const index = process.argv.indexOf(`--${name}`); + return index === -1 ? null : process.argv[index + 1] ?? null; +} +const only = option("only"); +const pictures = option("pictures"); +const jsonFile = option("json"); +const keep = option("keep"); + +for (const file of [cli, layoutTree, join(assets, "render.js")]) { + if (!existsSync(file)) { console.error(`${relative(root, file)} is missing; see the top of this script for the commands that build it.`); process.exit(2); } +} + +function packages() { + const found = []; + const walk = (directory) => { + const names = readdirSync(directory); + if (names.includes("main.jsx") || names.includes("widget.json")) { found.push(directory); return; } + for (const name of names) if (statSync(join(directory, name)).isDirectory()) walk(join(directory, name)); + }; + walk(bundle); + return found.map((directory) => relative(bundle, directory)).filter((name) => !only || name.includes(only)).sort(); +} + +/// A `Date` whose "now" is `moment`, on one line so that line numbers stay. +const clock = (moment) => `if (!globalThis.__fixedClock) { globalThis.__fixedClock = true; const RealDate = Date; const fixed = ${moment}; globalThis.Date = class Date extends RealDate { constructor(...values) { if (values.length) super(...values); else super(fixed); } static now() { return fixed; } }; } `; + +function withClock(source, target, moment) { + cpSync(source, target, { recursive: true }); + const walk = (directory) => { + for (const name of readdirSync(directory)) { + const file = join(directory, name); + if (statSync(file).isDirectory()) walk(file); + else if (/\.jsx?$/.test(name)) writeFileSync(file, clock(moment) + readFileSync(file, "utf8")); + } + }; + walk(target); +} + +const environment = { ...process.env, TZ: timeZone, LC_ALL: "en_US.UTF-8", LANG: "en_US.UTF-8", SCRIPTWIDGET_RUNTIME_ASSETS: assets }; + +function run(arguments_) { + return new Promise((done) => { + execFile(cli, arguments_, { env: environment, maxBuffer: 256 * 1024 * 1024, timeout: 120_000 }, (error, stdout) => { + try { done(JSON.parse(stdout)); } catch { done({ ok: false, error: { message: String(error ?? "no report") } }); } + }); + }); +} + +async function inParallel(items, limit, work) { + let next = 0; + await Promise.all(Array.from({ length: limit }, async () => { while (next < items.length) { const item = items[next++]; await work(item); } })); +} + +const pixels = (value) => (typeof value === "string" && value.endsWith("px") ? Number.parseFloat(value) : 0); +const texts = (tree, into = []) => { + if (tree === null || typeof tree !== "object") { if (tree !== null && tree !== undefined) into.push(String(tree)); return into; } + if (Array.isArray(tree)) { for (const item of tree) texts(item, into); return into; } + texts(tree.children ?? [], into); + return into; +}; + +/// The findings of one laid-out tree. `sources` are the texts of the canonical tree. +function inspect(layout, sources) { + const findings = []; + const walk = (element, left, top, clipped) => { + if (element.t === "style" || element.g === 1) return; + const style = element.s ?? {}; + const positioned = style.position === "absolute"; + const x = left + (positioned ? pixels(style.left) : 0); + const y = top + (positioned ? pixels(style.top) : 0); + const content = (element.c ?? []).find((child) => typeof child.x === "string" && child.t === "div"); + if (style.fontSize && content) { + const drawn = content.x; + const width = pixels(style.width); const height = pixels(style.height); const lineHeight = pixels(style.lineHeight); + const size = pixels(style.fontSize); + const box = { x: Math.round(x * 10) / 10, y: Math.round(y * 10) / 10, width, height, size, weight: style.fontWeight ?? "400", inter: /^"ScriptWidget Inter"/.test(style.fontFamily ?? "") }; + const cut = content.s?.whiteSpace === "pre" && content.s?.overflow === "hidden"; + const source = () => { + const prefix = drawn.split("\n").at(-1).replace(/…$/, ""); + return sources.find((text) => text !== drawn && text.replace(/\s+/g, " ").includes(prefix)) ?? null; + }; + if (cut && style.overflow !== "hidden" && drawn.endsWith("…")) findings.push({ kind: "truncated", drawn, source: source(), ...box }); + // Narrower than "…": the frame cuts the text. One character in its own width is the usual harmless case. + else if (style.overflow === "hidden" && [...drawn.trim()].length > 1) findings.push({ kind: "clipped", drawn, ...box }); + else if (!cut && lineHeight > 0 && height > lineHeight * 1.5 && !drawn.includes("\n") && drawn.trim().split(/\s+/).length <= 2) findings.push({ kind: "wrapped", drawn, ...box }); + if (drawn.trim() !== "" && width > 0 && !clipped && (x < -1 || y < -1 || x + width > layout.width + 1 || y + height > layout.height + 1)) findings.push({ kind: "outside", drawn, ...box }); + return; + } + // What a clipping ancestor hides is not drawn outside the widget. + const clips = clipped || (element !== layout.root && (style.overflow === "hidden" || style.overflowY === "auto" || Boolean(style.clipPath))); + for (const child of element.c ?? []) walk(child, x, y, clips); + }; + walk(layout.root, 0, 0, false); + return findings; +} + +const work = keep ? resolve(keep) : mkdtempSync(join(tmpdir(), "scriptwidget-truncation-")); +mkdirSync(work, { recursive: true }); +const names = packages(); +const jobs = []; +for (const [index, name] of names.entries()) { + for (const [label, moment] of Object.entries(moments)) { + const directory = join(work, label, String(index).padStart(3, "0"), name.split("/").at(-1)); + mkdirSync(dirname(directory), { recursive: true }); + rmSync(directory, { recursive: true, force: true }); + withClock(join(bundle, name), directory, moment); + for (const family of families) jobs.push({ name, label, moment, family, directory, tree: join(dirname(directory), `${family}.tree.json`), layout: join(dirname(directory), `${family}.layout.json`) }); + } +} + +// Run every package; a run that returns no tree is not checked. +const notChecked = new Map(); +await inParallel(jobs, 8, async (job) => { + const report = await run(["run", job.directory, "--family", job.family]); + if (report.tree === undefined || report.tree === null || report.ok === false) { + notChecked.set(job.name, String(report.error?.message ?? report.errors?.[0]?.message ?? report.status ?? "no tree").slice(0, 200)); + return; + } + job.sources = texts(report.tree); + job.logs = (report.logs ?? []).filter((entry) => entry.level === "error").map((entry) => entry.message); + writeFileSync(job.tree, JSON.stringify(report.tree)); +}); + +// Lay all of them out in one process. +const ran = jobs.filter((job) => job.sources); +function layOut(lines) { + return new Promise((done, failed) => { + const child = spawn(layoutTree, [assets], { env: environment, stdio: ["pipe", "pipe", "inherit"] }); + let output = ""; + child.stdout.on("data", (chunk) => { output += chunk; }); + child.on("error", failed); + child.on("close", () => done(output.split("\n").filter(Boolean))); + child.stdin.end(lines.map((line) => line.join("\t")).join("\n") + "\n"); + }); +} +const answers = await layOut(ran.map((job) => [job.tree, job.family, job.moment, job.directory, job.layout])); +const offenders = []; +for (const [index, job] of ran.entries()) { + if (answers[index] !== "ok") { notChecked.set(job.name, `layout ${answers[index] ?? "did not answer"}`.slice(0, 200)); continue; } + const findings = inspect(JSON.parse(readFileSync(job.layout, "utf8")), job.sources); + if (findings.length) offenders.push({ name: job.name, family: job.family, moment: job.label, directory: job.directory, findings }); +} + +// Measure each text alone, to say how much room it needed. A text in a frame +// narrower than "…" is recorded as clipped even when it has all the width it +// needs ("11" in a calendar cell); those are dropped here. +const weights = { 100: "ultralight", 200: "thin", 300: "light", 400: "regular", 500: "medium", 600: "semibold", 700: "bold", 800: "heavy", 900: "black" }; +const whole = (finding) => (finding.kind === "truncated" ? finding.source : finding.drawn); +const probeKey = (finding) => `${finding.size}|${finding.weight}|${whole(finding)}`; +const measured = new Map(); +for (const offender of offenders) { + for (const finding of offender.findings) if (finding.inter && whole(finding) && !whole(finding).includes("\n")) measured.set(probeKey(finding), null); +} +const probes = [...measured.keys()].map((key, index) => { + const [size, weight, ...text] = key.split("|"); + const tree = join(work, `probe-${index}.tree.json`); + // Wide enough for any line: the probe is a horizontal stack that may grow past the widget. + writeFileSync(tree, JSON.stringify({ $element: "hstack", props: { frame: "4000,100" }, children: [{ $element: "text", props: { font: size, fontWeight: weights[weight] ?? "regular" }, children: [text.join("|")] }] })); + return { key, job: [tree, "extraLarge", "-", "-", join(work, `probe-${index}.layout.json`)] }; +}); +if (probes.length) { + const probed = await layOut(probes.map((probe) => probe.job)); + for (const [index, probe] of probes.entries()) { + if (probed[index] !== "ok") continue; + const find = (element) => (element.s?.fontSize ? pixels(element.s.width) : (element.c ?? []).map(find).find((width) => width !== undefined)); + measured.set(probe.key, find(JSON.parse(readFileSync(probe.job[4], "utf8")).root) ?? null); + } + for (const offender of offenders) { + offender.findings = offender.findings.filter((finding) => { + finding.natural = measured.get(probeKey(finding)) ?? null; + return finding.kind !== "clipped" || finding.natural === null || finding.natural > finding.width + 0.75; + }); + } +} +for (let index = offenders.length - 1; index >= 0; index--) if (!offenders[index].findings.length) offenders.splice(index, 1); + +if (pictures) { + mkdirSync(resolve(pictures), { recursive: true }); + await inParallel(offenders, 8, async (offender) => { + offender.picture = join(resolve(pictures), `${offender.name.replace(/[^A-Za-z0-9]+/g, "-")}.${offender.family}.${offender.moment}.png`); + await run(["render", offender.directory, "--family", offender.family, "--now", String(moments[offender.moment]), "--output", offender.picture]); + }); +} + +// One line for each distinct finding of a package and family, with the moments that show it. +const lines = new Map(); +for (const offender of offenders) { + for (const finding of offender.findings) { + const key = `${offender.name}\t${offender.family}\t${finding.kind}\t${finding.drawn.replace(/\n/g, "⏎")}`; + const line = lines.get(key) ?? { ...finding, name: offender.name, family: offender.family, moments: [] }; + if (!line.moments.includes(offender.moment)) line.moments.push(offender.moment); + lines.set(key, line); + } +} +for (const line of [...lines.values()].sort((a, b) => a.name.localeCompare(b.name) || a.family.localeCompare(b.family))) { + const source = line.source ? ` (of "${line.source.replace(/\n/g, "⏎").slice(0, 60)}")` : ""; + console.log(`${line.name} [${line.family}] ${line.kind}: "${line.drawn.replace(/\n/g, "⏎")}"${source} ${line.size} pt at ${line.x},${line.y} ${line.width}x${line.height}${line.natural ? `, needs ${line.natural}` : ""} — ${line.moments.join(", ")}`); +} +const withErrors = [...new Set(ran.filter((job) => job.logs.length).map((job) => job.name))]; +console.log(`\n${names.length} packages, ${ran.length} of ${jobs.length} runs laid out (${families.length} families, ${Object.keys(moments).length} moments, ${timeZone}); ${new Set(offenders.map((offender) => offender.name)).size} packages with findings.`); +if (notChecked.size) console.log(`Not checked (no tree on at least one run):\n${[...notChecked].map(([name, reason]) => ` ${name}: ${reason}`).join("\n")}`); +if (withErrors.length) console.log(`Drew after logging an error (their content may be a fallback):\n${withErrors.map((name) => ` ${name}`).join("\n")}`); +if (jsonFile) writeFileSync(resolve(jsonFile), JSON.stringify({ offenders: offenders.map(({ directory, ...rest }) => rest), notChecked: Object.fromEntries(notChecked) }, null, 2)); +if (!keep) rmSync(work, { recursive: true, force: true }); +process.exit(lines.size ? 1 : 0); diff --git a/README.md b/README.md index d5c41ffe..1e16e3e6 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Website: [![GitHub Stars](https://img.shields.io/github/stars/everettjf/ScriptWidget?style=flat-square&color=4ECDC4)](https://github.com/everettjf/ScriptWidget/stargazers) [![GitHub Forks](https://img.shields.io/github/forks/everettjf/ScriptWidget?style=flat-square)](https://github.com/everettjf/ScriptWidget/network) [![License](https://img.shields.io/badge/License-Apache%202.0-blue?style=flat-square)](LICENSE) -[![Platform](https://img.shields.io/badge/Platform-iOS%20%7C%20macOS%20%7C%20Android-lightgrey?style=flat-square)](#-platforms) +[![Platform](https://img.shields.io/badge/Platform-iOS%20%7C%20macOS%20%7C%20Android%20%7C%20Windows%20%7C%20Linux-lightgrey?style=flat-square)](#-platforms) [![Version](https://img.shields.io/badge/Version-3.0-blue?style=flat-square)](https://github.com/everettjf/ScriptWidget/releases) [![Release Readiness](https://github.com/everettjf/ScriptWidget/actions/workflows/release-readiness.yml/badge.svg)](https://github.com/everettjf/ScriptWidget/actions/workflows/release-readiness.yml) @@ -368,11 +368,31 @@ See [Package 2.0](docs/package-format.md), [modern WidgetKit features](docs/widg | **iOS** | ✅ Full | iOS 16+ (iPhone, iPad) | | **macOS** | ✅ Full | macOS 26+ (Mac) | | **Android** | ✅ 1.0.0 | Android 15+; [APK on GitHub Releases](https://github.com/everettjf/scriptwidget/releases/tag/android-v1.0.0), Google Play in closed testing. Runs the same packages; [differences from iOS](docs/android/README.md) | +| **Windows** | 🧪 Preview 0.1.0 | Windows 11; desktop widgets and a management window. [Installer on GitHub Releases](https://github.com/everettjf/scriptwidget/releases/tag/windows-v0.1.0); see [ScriptWidget for Windows](docs/windows/README.md) | +| **Linux** | 🧪 Preview | [Omarchy](https://omarchy.org) 4.5; widgets on the desktop, a management window and a command line. [Archives on GitHub Releases](https://github.com/everettjf/scriptwidget/releases); see [ScriptWidget for Linux](docs/linux/README.md) | | **watchOS** | — | Not in the current roadmap | | **visionOS** | — | Not in the current roadmap | Feature-by-feature support is in [Platform support](docs/platform-support.md). +### Screenshots + +Real screenshots of each platform. Windows and Linux are previews. + +| iPhone | iPad | Mac | +| --- | --- | --- | +| ![The template gallery on iPhone](docs/images/platforms/iphone-templates.webp) | ![The editor on iPad](docs/images/platforms/ipad-editor.webp) | ![ScriptWidget Studio on Mac](docs/images/platforms/mac-studio.webp) | +| ![The editor on iPhone](docs/images/platforms/iphone-editor.webp) | | | + +| Android | Windows | Linux (Omarchy) | +| --- | --- | --- | +| ![Widgets on the Android home screen](docs/images/platforms/android-widgets.webp) | ![Widgets on the Windows desktop](docs/images/platforms/windows-desktop.webp) | ![Widgets on the Omarchy desktop](docs/images/platforms/linux-desktop.webp) | +| ![The editor on Android](docs/images/platforms/android-editor.webp) | ![The editor on Windows](docs/images/platforms/windows-editor.webp) | ![The editor on Linux](docs/images/platforms/linux-editor.webp) | + +| Web Studio | +| --- | +| ![Web Studio in a browser](docs/images/platforms/web-studio.webp) | + --- ## 🤝 Contributing diff --git a/README_CN.md b/README_CN.md index 13f5de67..e5312f51 100644 --- a/README_CN.md +++ b/README_CN.md @@ -31,6 +31,26 @@ ScriptWidget 是一个 Apache 2.0 开源的 Widget 创作平台。你不需要 Android 版(1.0.0,要求 Android 15 或更高版本)已在 [GitHub Releases](https://github.com/everettjf/scriptwidget/releases/tag/android-v1.0.0) 提供 APK。Google Play 版正在封闭测试:先加入 [Atomsprout Testers 群组](https://groups.google.com/g/atomsprout),再[成为测试者](https://play.google.com/apps/testing/com.atomsprout.scriptwidget),然后从 Google Play 安装。与 iOS 的差异详见 [Android 版 ScriptWidget](docs/android/README.md)。 +Windows 版和 Linux 版是预览版:[Windows 0.1.0](https://github.com/everettjf/scriptwidget/releases/tag/windows-v0.1.0) 需要 Windows 11,见 [Windows 版 ScriptWidget](docs/windows/README.md);Linux 版目前支持 [Omarchy](https://omarchy.org) 4.5,安装包在 [GitHub Releases](https://github.com/everettjf/scriptwidget/releases),见 [Linux 版 ScriptWidget](docs/linux/README.md)。两者运行同样的小组件包,但没有健康、日历、定位、音乐等设备数据 API。 + +### 各平台截图 + +都是真实截图。Windows 和 Linux 是预览版。 + +| iPhone | iPad | Mac | +| --- | --- | --- | +| ![iPhone 上的模板库](docs/images/platforms/iphone-templates.webp) | ![iPad 上的编辑器](docs/images/platforms/ipad-editor.webp) | ![Mac 上的 ScriptWidget Studio](docs/images/platforms/mac-studio.webp) | + +| Android | Windows | Linux(Omarchy) | +| --- | --- | --- | +| ![Android 桌面上的小组件](docs/images/platforms/android-widgets.webp) | ![Windows 桌面上的小组件](docs/images/platforms/windows-desktop.webp) | ![Omarchy 桌面上的小组件](docs/images/platforms/linux-desktop.webp) | +| ![Android 上的编辑器](docs/images/platforms/android-editor.webp) | ![Windows 上的编辑器](docs/images/platforms/windows-editor.webp) | ![Linux 上的编辑器](docs/images/platforms/linux-editor.webp) | + +| Web Studio | +| --- | +| ![浏览器里的 Web Studio](docs/images/platforms/web-studio.webp) | + + ## 为什么选择 ScriptWidget - 一份脚本适配 iOS、iPadOS 与 macOS,以及 Android,多尺寸布局可通过 `$getenv("widget-size")` 调整。 diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/An Empty Widget/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/An Empty Widget/main.jsx index ccb5b9c7..0c385bb1 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/An Empty Widget/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/An Empty Widget/main.jsx @@ -10,9 +10,10 @@ const size = $getenv("widget-size"); $render( - - - Your next idea - Start editing this template to make it yours. + + + Your next idea + Start editing this template to make it yours. + ); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Birthday Countdown/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Birthday Countdown/main.jsx index 84041961..b565a359 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Birthday Countdown/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Birthday Countdown/main.jsx @@ -1,3 +1,3 @@ // widget-param: name,MM-DD (optional), e.g. Alex,12-18 const p = ($getenv("widget-param") || "Alex,12-18").split(","); const name=p[0].trim(); const md=(p[1]||"12-18").split("-").map(Number); const now=new Date(); let next=new Date(now.getFullYear(),md[0]-1,md[1]); if(next{name}{days}days until the celebration); +$render({name}{days}days until the celebration); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Check Is Friday Today/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Check Is Friday Today/main.jsx index d6f3562f..fefc2523 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Check Is Friday Today/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Check Is Friday Today/main.jsx @@ -10,9 +10,9 @@ console.log(n); $render( - FRIDAY CHECK + FRIDAY CHECK{d.toLocaleDateString("en-US", { month: "short", day: "numeric" })} - {n == 5 ? "Yes!" : "Not yet"} + {n == 5 ? "Yes!" : "Not yet"} {n == 5 ? "The weekend starts here." : `${(5-n+7)%7} days to go.`} ); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Check Is Working Day Today/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Check Is Working Day Today/main.jsx index 3172a775..7803e078 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Check Is Working Day Today/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Check Is Working Day Today/main.jsx @@ -10,9 +10,9 @@ console.log(n); const working = n >= 1 && n <= 5; $render( - DAY STATUS + DAY STATUS{d.toLocaleDateString("en-US", { month: "short", day: "numeric" })} - {working ? "Work day" : "Day off"} + {working ? "Work day" : "Day off"} {working ? "Choose one meaningful priority." : "Rest, reset, and enjoy."} ); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Condition Content/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Condition Content/main.jsx index 047b3502..39f034ba 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Condition Content/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Condition Content/main.jsx @@ -10,12 +10,12 @@ const widget_size = $getenv("widget-size"); const morning = new Date().getHours() < 12; const content = morning - ? Good morningStart with what matters. - : Good eveningMake space to unwind.; + ? Good morningStart with what matters. + : Good eveningMake space to unwind.; $render( - CONDITIONAL CONTENT + CONDITION {content} ); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Daily Affirmation/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Daily Affirmation/main.jsx index f7849616..d9063535 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Daily Affirmation/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Daily Affirmation/main.jsx @@ -1,3 +1,3 @@ // widget-param: your affirmation (optional) const words=($getenv("widget-param")||"I have everything I need for today.").trim(); -$render({words}DAILY AFFIRMATION); +$render({words}DAILY AFFIRMATION); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Daily Command Center/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Daily Command Center/main.jsx index fd51426b..dfbad11d 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Daily Command Center/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Daily Command Center/main.jsx @@ -7,16 +7,15 @@ const now = new Date(); const progress = (now.getHours() * 60 + now.getMinutes()) / 1440; const Row = ({ text, index }) => ( - + {text.trim()} - ); $render( - + Today diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Datetime Timezone/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Datetime Timezone/main.jsx index 72145ac7..ab6f21d3 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Datetime Timezone/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Datetime Timezone/main.jsx @@ -13,6 +13,6 @@ const time = zone => new Date().toLocaleTimeString([], { timeZone: zone, hour: " $render( World Clock - BEIJING{time("Asia/Shanghai")}SAN JOSE{time("America/Los_Angeles")}NEW YORK{time("America/New_York")} + BEIJING{time("Asia/Shanghai")}SAN JOSE{time("America/Los_Angeles")}NEW YORK{time("America/New_York")} ); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Family Command Board/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Family Command Board/main.jsx index e9d19924..6546d3a0 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Family Command Board/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Family Command Board/main.jsx @@ -6,21 +6,26 @@ const chores = (parts[2] || "").split(",").filter(Boolean).slice(0, 3); const dinner = (parts[3] || "Plan dinner together").trim(); const colors = ["#fb7185", "#fbbf24", "#60a5fa"]; -const Event = ({ text, index }) => ( - {text.trim()} -); +// "08:15 School drop-off" is drawn as the time above the title, so both fit the half-width card. +const Event = ({ text, index }) => { + const words = text.trim().split(" "); + const time = words.length > 1 ? words[0] : ""; + return ( + {time ? {time} : null}{words.slice(time ? 1 : 0).join(" ")} + ); +}; $render( - {family}Home at a glance + {family}Home at a glance - - TODAY + + TODAY{new Date().toLocaleDateString("en-US", { month: "short", day: "numeric" })} {events.map((item, i) => )} - + CHORES - {chores.map(item => {item.trim()})} + {chores.map(item => {item.trim()})} DINNER PLAN{dinner} diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Layout Starter/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Layout Starter/main.jsx index 56040d32..c0e7a93d 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Layout Starter/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Layout Starter/main.jsx @@ -7,7 +7,7 @@ $render( A fresh start - Make today yours + Make today yours A little space for your ideas. ); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Location Snapshot/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Location Snapshot/main.jsx index bf539504..bc4521db 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Location Snapshot/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Location Snapshot/main.jsx @@ -6,18 +6,24 @@ // Requires Location permission in the main app. // +// The card of the two states without a location. At the small size a row has +// no room for the icon beside the words, so the icon sits above them. +const Card = ({ symbol, title, detail }) => { + const compact = $getenv("widget-size") === "small"; + const words = LOCATION SNAPSHOT{title}{detail}; + return compact + ? {words} + : {words}; +}; + if (!$location.isAvailable()) { - $render( - LOCATION SNAPSHOTMade for iPhoneSee coordinates and accuracy on iOS. - ); + $render(); } else { const status = $location.authorizationStatus(); const authorized = status === "authorizedWhenInUse" || status === "authorizedAlways"; if (!authorized) { - $render( - LOCATION SNAPSHOTEnable locationAllow access to reveal your coordinates. - ); + $render(); } else { let location; try { diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Meal Planner/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Meal Planner/main.jsx index 534c2f6d..31925e40 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Meal Planner/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Meal Planner/main.jsx @@ -1,3 +1,3 @@ // widget-param: breakfast,lunch,dinner (optional) const meals=($getenv("widget-param")||"Oatmeal,Grain bowl,Pasta").split(","); const labels=["Morning","Lunch","Dinner"]; -$render(Today's menu{labels.map((label,i)=>{label}{(meals[i]||"Flexible").trim()})}); +$render(Today's menu{labels.map((label,i)=>{label}{(meals[i]||"Flexible").trim()})}); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Month Calendar/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Month Calendar/main.jsx index b40fe60f..80f5c831 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Month Calendar/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Month Calendar/main.jsx @@ -21,6 +21,8 @@ const month = now.toLocaleString("en-US", { month: "long" }); const day = now.getDate(); const firstWeekday = new Date(now.getFullYear(), now.getMonth(), 1).getDay(); const dayCount = new Date(now.getFullYear(), now.getMonth() + 1, 0).getDate(); +// A month that touches six weeks gets smaller cells, so the grid keeps its height. +const sixWeeks = firstWeekday + dayCount > 35; const MonthGrid = ({ cell, font, spacing }) => { const columns = JSON.stringify(Array.from({ length: 7 }, () => ({ type: "fixed", value: String(cell) }))); @@ -105,11 +107,11 @@ if (size === "accessoryCircular") { {month} {now.getFullYear()} - {weekday} + {wide ? weekday : weekday.slice(0, 3)} {wide - ? {agenda} - : } + ? {agenda} + : } {wide ? null : agenda} ); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Music Playback/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Music Playback/main.jsx index 47dd6e48..aa134a6b 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Music Playback/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Music Playback/main.jsx @@ -29,9 +29,9 @@ if (family === "accessoryInline") { $render({title}{`${status} · ${playback ? playback.artist || "Music app" : "Open ScriptWidget"}`}); } else { $render( - {status}Music + {compact && !playback ? "Setup" : status}Music - {title} + {title} {subtitle} {progress !== null && {time(playback.position)}{time(playback.duration)}} {!compact && family !== "medium" && <>A playback snapshot. Refresh to update.} diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/System Insights/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/System Insights/main.jsx index 2cee542e..f2b697ef 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/System Insights/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/System Insights/main.jsx @@ -19,9 +19,9 @@ $render( - - - + + + ); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Text Days To End Of Month/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Text Days To End Of Month/main.jsx index 0cd7428c..ddfe398e 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Text Days To End Of Month/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Text Days To End Of Month/main.jsx @@ -12,7 +12,7 @@ var b = moment(); var days = a.diff(b, 'days'); $render( - - MONTH PROGRESS{days}days remaining + + THIS MONTH{days}days remaining ); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Text Days to End Of Year/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Text Days to End Of Year/main.jsx index b6a3083f..521bf56c 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Text Days to End Of Year/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Text Days to End Of Year/main.jsx @@ -12,7 +12,7 @@ var b = moment(); var days = a.diff(b, 'days'); $render( - - YEAR PROGRESS{days}days remaining + + THIS YEAR{days}days remaining ); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Text Year Days Left/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Text Year Days Left/main.jsx index 8cda3f5a..57b104d5 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Text Year Days Left/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Text Year Days Left/main.jsx @@ -13,7 +13,7 @@ var perDay = 1000 * 60 * 60 * 24; var leftDays = Math.ceil((lastDay.getTime() - today.getTime()) / perDay); $render( - - 今年还剩{leftDays} 天把今天过得有意义 + + 今年还剩{leftDays} 天把今天过得有意义 ); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Travel Day Dashboard/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Travel Day Dashboard/main.jsx index 6c4ab7de..f642007b 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Travel Day Dashboard/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Travel Day Dashboard/main.jsx @@ -9,21 +9,21 @@ const weather = parts[5] || "58° · Light rain"; const essentials = (parts[6] || "Passport,Headphones,Charger").split(",").slice(0, 3); $render( - - Travel DayEverything before boarding - - {origin}DEPART - - {destination}ARRIVE + + Travel DayEverything before boarding + + {origin}DEPART + + {destination}ARRIVE - - DEPARTURE{departure} - GATE{gate} - DESTINATION{weather} + + DEPARTURE{departure} + GATE{gate} + DESTINATION{weather} - - BEFORE YOU GO - {essentials.map(item => {item.trim()}PACKED?)} + + BEFORE YOU GO + {essentials.map(item => {item.trim()}PACKED?)} ); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Wellness Dashboard/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Wellness Dashboard/main.jsx index 19d85657..a5bc40d5 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Wellness Dashboard/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Wellness Dashboard/main.jsx @@ -7,22 +7,22 @@ const mood = (values[3] || "Steady").trim(); const score = Math.round(Math.min(100, sleep / 8 * 35 + water / 8 * 25 + steps / 10000 * 40)); const Metric = ({ icon, title, value, detail, color, progress, total }) => ( - - {title} - {value} + + {title} + {value}{detail} - {detail} ); $render( - - Wellness TodaySmall choices, steady energy - - - DAILY BALANCEGood momentumAdd one glass and a short walk. + + Wellness TodaySmall choices, steady energy + + + DAILY BALANCEGood momentumAdd one glass and a short walk. + - + diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/World Clock Faces/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/World Clock Faces/main.jsx index b4118afa..ed3d9185 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/World Clock Faces/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/World Clock Faces/main.jsx @@ -89,7 +89,7 @@ if (size === "accessoryCircular") { $render( World Clock - {cities.map((city) => )} + {cities.map((city) => )} ); diff --git a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Year in Dots/main.jsx b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Year in Dots/main.jsx index 68560268..72f6a602 100644 --- a/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Year in Dots/main.jsx +++ b/Shared/ScriptWidgetRuntime/Resource/Script.bundle/template/Year in Dots/main.jsx @@ -83,7 +83,7 @@ if (size === "accessoryCircular") { <spacer /> - <Dots count={total} first={1} columns={wide ? 31 : 21} dot={wide ? 14 : 6} spacing={wide ? 8 : 5} /> + <Dots count={total} first={1} columns={wide ? 31 : 21} dot={wide ? 12 : 6} spacing={wide ? 6 : 5} /> <spacer /> <text font="caption" color="#8A8273">Day {today} · {total - today} days left</text> </vstack> diff --git a/Web/preview-engine/test/parity/layout-edit-trees.json b/Web/preview-engine/test/parity/layout-edit-trees.json index 3cf0c142..2acae2bc 100644 --- a/Web/preview-engine/test/parity/layout-edit-trees.json +++ b/Web/preview-engine/test/parity/layout-edit-trees.json @@ -1,12 +1,12 @@ { "examples" : { "after" : { - "source" : "\/\/ Open Layout in the editor to select, edit, add and move these layers.\n\/\/ Code remains the source of truth. This template needs no permissions.\n$render(\n <vstack frame=\"max\" alignment={\"trailing\"} spacing=\"8\" padding=\"16\" background=\"#f1f6fb\">\n <hstack spacing=\"6\">\n <icon systemName=\"sparkles\" size=\"18\" color=\"#526f9e\"\/>\n <text font=\"caption\" color=\"#657b96\">A fresh start<\/text>\n <\/hstack>\n <spacer\/>\n <text font=\"title2\" fontWeight=\"semibold\" color=\"#263e60\">{\"A calmer day\"}<\/text>\n <text font=\"caption\" color=\"#657b96\">A little space for your ideas.<\/text>\n <\/vstack>\n);\n", - "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"trailing\",\"background\":\"#f1f6fb\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"6\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#526f9e\",\"size\":\"18\",\"systemName\":\"sparkles\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A fresh start\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#263e60\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"A calmer day\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A little space for your ideas.\"]}]}" + "source" : "\/\/ Open Layout in the editor to select, edit, add and move these layers.\n\/\/ Code remains the source of truth. This template needs no permissions.\n$render(\n <vstack frame=\"max\" alignment={\"trailing\"} spacing=\"8\" padding=\"16\" background=\"#f1f6fb\">\n <hstack spacing=\"6\">\n <icon systemName=\"sparkles\" size=\"18\" color=\"#526f9e\"\/>\n <text font=\"caption\" color=\"#657b96\">A fresh start<\/text>\n <\/hstack>\n <spacer\/>\n <text font=\"headline\" fontWeight=\"semibold\" color=\"#263e60\">{\"A calmer day\"}<\/text>\n <text font=\"caption\" color=\"#657b96\">A little space for your ideas.<\/text>\n <\/vstack>\n);\n", + "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"trailing\",\"background\":\"#f1f6fb\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"6\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#526f9e\",\"size\":\"18\",\"systemName\":\"sparkles\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A fresh start\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#263e60\",\"font\":\"headline\",\"fontWeight\":\"semibold\"},\"children\":[\"A calmer day\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A little space for your ideas.\"]}]}" }, "before" : { - "source" : "\/\/ Open Layout in the editor to select, edit, add and move these layers.\n\/\/ Code remains the source of truth. This template needs no permissions.\n$render(\n <vstack frame=\"max\" alignment=\"leading\" spacing=\"8\" padding=\"16\" background=\"#f1f6fb\">\n <hstack spacing=\"6\">\n <icon systemName=\"sparkles\" size=\"18\" color=\"#526f9e\"\/>\n <text font=\"caption\" color=\"#657b96\">A fresh start<\/text>\n <\/hstack>\n <spacer\/>\n <text font=\"title2\" fontWeight=\"semibold\" color=\"#263e60\">Make today yours<\/text>\n <text font=\"caption\" color=\"#657b96\">A little space for your ideas.<\/text>\n <\/vstack>\n);\n", - "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f1f6fb\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"6\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#526f9e\",\"size\":\"18\",\"systemName\":\"sparkles\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A fresh start\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#263e60\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Make today yours\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A little space for your ideas.\"]}]}" + "source" : "\/\/ Open Layout in the editor to select, edit, add and move these layers.\n\/\/ Code remains the source of truth. This template needs no permissions.\n$render(\n <vstack frame=\"max\" alignment=\"leading\" spacing=\"8\" padding=\"16\" background=\"#f1f6fb\">\n <hstack spacing=\"6\">\n <icon systemName=\"sparkles\" size=\"18\" color=\"#526f9e\"\/>\n <text font=\"caption\" color=\"#657b96\">A fresh start<\/text>\n <\/hstack>\n <spacer\/>\n <text font=\"headline\" fontWeight=\"semibold\" color=\"#263e60\">Make today yours<\/text>\n <text font=\"caption\" color=\"#657b96\">A little space for your ideas.<\/text>\n <\/vstack>\n);\n", + "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f1f6fb\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"6\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#526f9e\",\"size\":\"18\",\"systemName\":\"sparkles\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A fresh start\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#263e60\",\"font\":\"headline\",\"fontWeight\":\"semibold\"},\"children\":[\"Make today yours\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A little space for your ideas.\"]}]}" } }, "formatVersion" : 1 diff --git a/Web/preview-engine/test/parity/music-playback-trees.json b/Web/preview-engine/test/parity/music-playback-trees.json index 083d80b6..ece0502a 100644 --- a/Web/preview-engine/test/parity/music-playback-trees.json +++ b/Web/preview-engine/test/parity/music-playback-trees.json @@ -9,7 +9,7 @@ "denied\/extraLargePortrait" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Allow Music access\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Allow Music access\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Open Music access in ScriptWidget Settings.\"]},false,{\"$element\":\"Fragment\",\"props\":null,\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"A playback snapshot. Refresh to update.\"]}]}]}", "denied\/large" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Allow Music access\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Allow Music access\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Open Music access in ScriptWidget Settings.\"]},false,{\"$element\":\"Fragment\",\"props\":null,\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"A playback snapshot. Refresh to update.\"]}]}]}", "denied\/medium" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Allow Music access\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Allow Music access\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Open Music access in ScriptWidget Settings.\"]},false,false]}", - "denied\/small" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Allow Music access\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"headline\",\"fontWeight\":\"semibold\"},\"children\":[\"Allow Music access\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Open Music access in ScriptWidget Settings.\"]},false,false]}", + "denied\/small" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Setup\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"subheadline\",\"fontWeight\":\"semibold\"},\"children\":[\"Allow Music access\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Open Music access in ScriptWidget Settings.\"]},false,false]}", "paused\/accessoryCircular" : "{\"$element\":\"vstack\",\"props\":{\"spacing\":\"2\"},\"children\":[{\"$element\":\"image\",\"props\":{\"systemName\":\"pause.fill\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"font\":\"caption2\"},\"children\":[\"Paused\"]}]}", "paused\/accessoryInline" : "{\"$element\":\"text\",\"props\":null,\"children\":[\"Paused · Morning Light\"]}", "paused\/accessoryRectangular" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"headline\"},\"children\":[\"Morning Light\"]},{\"$element\":\"text\",\"props\":{\"font\":\"caption2\"},\"children\":[\"Paused · ScriptWidget Sessions\"]}]}", @@ -17,7 +17,7 @@ "paused\/extraLargePortrait" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"pause.fill\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Paused\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Morning Light\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"ScriptWidget Sessions · Focus\"]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"progress\",\"props\":{\"color\":\"#3e3159\",\"value\":\"0.38392857142857145\"},\"children\":[]},{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"1:26\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"3:44\"]}]}]},{\"$element\":\"Fragment\",\"props\":null,\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"A playback snapshot. Refresh to update.\"]}]}]}", "paused\/large" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"pause.fill\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Paused\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Morning Light\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"ScriptWidget Sessions · Focus\"]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"progress\",\"props\":{\"color\":\"#3e3159\",\"value\":\"0.38392857142857145\"},\"children\":[]},{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"1:26\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"3:44\"]}]}]},{\"$element\":\"Fragment\",\"props\":null,\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"A playback snapshot. Refresh to update.\"]}]}]}", "paused\/medium" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"pause.fill\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Paused\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Morning Light\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"ScriptWidget Sessions · Focus\"]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"progress\",\"props\":{\"color\":\"#3e3159\",\"value\":\"0.38392857142857145\"},\"children\":[]},{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"1:26\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"3:44\"]}]}]},false]}", - "paused\/small" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"pause.fill\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Paused\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"headline\",\"fontWeight\":\"semibold\"},\"children\":[\"Morning Light\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"ScriptWidget Sessions · Focus\"]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"progress\",\"props\":{\"color\":\"#3e3159\",\"value\":\"0.38392857142857145\"},\"children\":[]},{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"1:26\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"3:44\"]}]}]},false]}", + "paused\/small" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"pause.fill\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Paused\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"subheadline\",\"fontWeight\":\"semibold\"},\"children\":[\"Morning Light\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"ScriptWidget Sessions · Focus\"]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"progress\",\"props\":{\"color\":\"#3e3159\",\"value\":\"0.38392857142857145\"},\"children\":[]},{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"1:26\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"3:44\"]}]}]},false]}", "playing\/accessoryCircular" : "{\"$element\":\"vstack\",\"props\":{\"spacing\":\"2\"},\"children\":[{\"$element\":\"image\",\"props\":{\"systemName\":\"waveform\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"font\":\"caption2\"},\"children\":[\"Playing\"]}]}", "playing\/accessoryInline" : "{\"$element\":\"text\",\"props\":null,\"children\":[\"Playing · Morning Light\"]}", "playing\/accessoryRectangular" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"headline\"},\"children\":[\"Morning Light\"]},{\"$element\":\"text\",\"props\":{\"font\":\"caption2\"},\"children\":[\"Playing · ScriptWidget Sessions\"]}]}", @@ -25,7 +25,7 @@ "playing\/extraLargePortrait" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"waveform\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Playing\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Morning Light\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"ScriptWidget Sessions · Focus\"]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"progress\",\"props\":{\"color\":\"#3e3159\",\"value\":\"0.38392857142857145\"},\"children\":[]},{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"1:26\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"3:44\"]}]}]},{\"$element\":\"Fragment\",\"props\":null,\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"A playback snapshot. Refresh to update.\"]}]}]}", "playing\/large" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"waveform\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Playing\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Morning Light\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"ScriptWidget Sessions · Focus\"]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"progress\",\"props\":{\"color\":\"#3e3159\",\"value\":\"0.38392857142857145\"},\"children\":[]},{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"1:26\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"3:44\"]}]}]},{\"$element\":\"Fragment\",\"props\":null,\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"A playback snapshot. Refresh to update.\"]}]}]}", "playing\/medium" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"waveform\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Playing\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Morning Light\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"ScriptWidget Sessions · Focus\"]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"progress\",\"props\":{\"color\":\"#3e3159\",\"value\":\"0.38392857142857145\"},\"children\":[]},{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"1:26\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"3:44\"]}]}]},false]}", - "playing\/small" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"waveform\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Playing\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"headline\",\"fontWeight\":\"semibold\"},\"children\":[\"Morning Light\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"ScriptWidget Sessions · Focus\"]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"progress\",\"props\":{\"color\":\"#3e3159\",\"value\":\"0.38392857142857145\"},\"children\":[]},{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"1:26\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"3:44\"]}]}]},false]}", + "playing\/small" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"waveform\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Playing\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"subheadline\",\"fontWeight\":\"semibold\"},\"children\":[\"Morning Light\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"ScriptWidget Sessions · Focus\"]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"progress\",\"props\":{\"color\":\"#3e3159\",\"value\":\"0.38392857142857145\"},\"children\":[]},{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"1:26\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"3:44\"]}]}]},false]}", "stopped\/accessoryCircular" : "{\"$element\":\"vstack\",\"props\":{\"spacing\":\"2\"},\"children\":[{\"$element\":\"image\",\"props\":{\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"font\":\"caption2\"},\"children\":[\"Stopped\"]}]}", "stopped\/accessoryInline" : "{\"$element\":\"text\",\"props\":null,\"children\":[\"Stopped · No current track\"]}", "stopped\/accessoryRectangular" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"headline\"},\"children\":[\"No current track\"]},{\"$element\":\"text\",\"props\":{\"font\":\"caption2\"},\"children\":[\"Stopped · Music app\"]}]}", @@ -33,7 +33,7 @@ "stopped\/extraLargePortrait" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Stopped\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"No current track\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Music app\"]},false,{\"$element\":\"Fragment\",\"props\":null,\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"A playback snapshot. Refresh to update.\"]}]}]}", "stopped\/large" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Stopped\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"No current track\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Music app\"]},false,{\"$element\":\"Fragment\",\"props\":null,\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"A playback snapshot. Refresh to update.\"]}]}]}", "stopped\/medium" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Stopped\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"No current track\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Music app\"]},false,false]}", - "stopped\/small" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Stopped\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"headline\",\"fontWeight\":\"semibold\"},\"children\":[\"No current track\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Music app\"]},false,false]}", + "stopped\/small" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Stopped\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"subheadline\",\"fontWeight\":\"semibold\"},\"children\":[\"No current track\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Music app\"]},false,false]}", "unavailable\/accessoryCircular" : "{\"$element\":\"vstack\",\"props\":{\"spacing\":\"2\"},\"children\":[{\"$element\":\"image\",\"props\":{\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"font\":\"caption2\"},\"children\":[\"Setup\"]}]}", "unavailable\/accessoryInline" : "{\"$element\":\"text\",\"props\":null,\"children\":[\"Music unavailable · Music unavailable\"]}", "unavailable\/accessoryRectangular" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"headline\"},\"children\":[\"Music unavailable\"]},{\"$element\":\"text\",\"props\":{\"font\":\"caption2\"},\"children\":[\"Music unavailable · Open ScriptWidget\"]}]}", @@ -41,7 +41,7 @@ "unavailable\/extraLargePortrait" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Music unavailable\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Music unavailable\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"This platform cannot read the system Music player.\"]},false,{\"$element\":\"Fragment\",\"props\":null,\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"A playback snapshot. Refresh to update.\"]}]}]}", "unavailable\/large" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Music unavailable\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Music unavailable\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"This platform cannot read the system Music player.\"]},false,{\"$element\":\"Fragment\",\"props\":null,\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"A playback snapshot. Refresh to update.\"]}]}]}", "unavailable\/medium" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Music unavailable\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Music unavailable\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"This platform cannot read the system Music player.\"]},false,false]}", - "unavailable\/small" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Music unavailable\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"headline\",\"fontWeight\":\"semibold\"},\"children\":[\"Music unavailable\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"This platform cannot read the system Music player.\"]},false,false]}", + "unavailable\/small" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"music.note\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Setup\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"subheadline\",\"fontWeight\":\"semibold\"},\"children\":[\"Music unavailable\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"This platform cannot read the system Music player.\"]},false,false]}", "withheld\/accessoryCircular" : "{\"$element\":\"vstack\",\"props\":{\"spacing\":\"2\"},\"children\":[{\"$element\":\"image\",\"props\":{\"systemName\":\"waveform\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"font\":\"caption2\"},\"children\":[\"Playing\"]}]}", "withheld\/accessoryInline" : "{\"$element\":\"text\",\"props\":null,\"children\":[\"Playing · Track details unavailable\"]}", "withheld\/accessoryRectangular" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"headline\"},\"children\":[\"Track details unavailable\"]},{\"$element\":\"text\",\"props\":{\"font\":\"caption2\"},\"children\":[\"Playing · Music app\"]}]}", @@ -49,6 +49,6 @@ "withheld\/extraLargePortrait" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"waveform\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Playing\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Track details unavailable\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Music app\"]},false,{\"$element\":\"Fragment\",\"props\":null,\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"A playback snapshot. Refresh to update.\"]}]}]}", "withheld\/large" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"waveform\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Playing\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Track details unavailable\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Music app\"]},false,{\"$element\":\"Fragment\",\"props\":null,\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"A playback snapshot. Refresh to update.\"]}]}]}", "withheld\/medium" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"waveform\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Playing\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Track details unavailable\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Music app\"]},false,false]}", - "withheld\/small" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"waveform\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Playing\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"headline\",\"fontWeight\":\"semibold\"},\"children\":[\"Track details unavailable\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Music app\"]},false,false]}" + "withheld\/small" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f5f1fc\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"image\",\"props\":{\"color\":\"#3e3159\",\"font\":\"title2\",\"systemName\":\"waveform\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Playing\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption2\"},\"children\":[\"Music\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#3e3159\",\"font\":\"subheadline\",\"fontWeight\":\"semibold\"},\"children\":[\"Track details unavailable\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#796b90\",\"font\":\"caption\"},\"children\":[\"Music app\"]},false,false]}" } } \ No newline at end of file diff --git a/Web/preview-engine/test/parity/native-trees.json b/Web/preview-engine/test/parity/native-trees.json index a884569b..59298a7d 100644 --- a/Web/preview-engine/test/parity/native-trees.json +++ b/Web/preview-engine/test/parity/native-trees.json @@ -176,7 +176,7 @@ "skipped" : "live-data" }, "gallery/layout-starter" : { - "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f1f6fb\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"6\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#526f9e\",\"size\":\"18\",\"systemName\":\"sparkles\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A fresh start\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#263e60\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Make today yours\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A little space for your ideas.\"]}]}" + "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f1f6fb\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"6\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#526f9e\",\"size\":\"18\",\"systemName\":\"sparkles\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A fresh start\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#263e60\",\"font\":\"headline\",\"fontWeight\":\"semibold\"},\"children\":[\"Make today yours\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A little space for your ideas.\"]}]}" }, "gallery/local-weather" : { "tree" : "{\"$element\":\"vstack\",\"props\":{\"background\":\"#eff6ff\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"7\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#3b82f6\",\"size\":\"26\",\"systemName\":\"cloud\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#1e3a8a\",\"font\":\"headline\"},\"children\":[\"Choose a saved city\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#475569\",\"font\":\"caption2\"},\"children\":[\"Open Records & Configuration. Location is optional.\"]}]}" @@ -224,7 +224,7 @@ "skipped" : "live-data" }, "template/An Empty Widget" : { - "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#1d4ed8\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#60a5fa\",\"size\":\"22\",\"systemName\":\"wand.and.stars\"},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"badge\",\"props\":{\"color\":\"#93c5fd\",\"text\":\"medium\"},\"children\":[]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"Your next idea\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption\"},\"children\":[\"Start editing this template to make it yours.\"]}]}" + "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#1d4ed8\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#60a5fa\",\"size\":\"22\",\"systemName\":\"wand.and.stars\"},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"badge\",\"props\":{\"color\":\"#93c5fd\",\"text\":\"medium\"},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"frame\":\"max,bottomLeading\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"Your next idea\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption\"},\"children\":[\"Start editing this template to make it yours.\"]}]}]}" }, "template/Animation Aquarium" : { "tree" : "{\"$element\":\"vstack\",\"props\":{\"background\":\"gradient:{\\\"type\\\":\\\"linear\\\",\\\"colors\\\":[\\\"#013A63\\\",\\\"#1E81B0\\\",\\\"#E0FBFC\\\"],\\\"startPoint\\\":\\\"top\\\",\\\"endPoint\\\":\\\"bottom\\\"}\",\"frame\":\"max\",\"padding\":\"10\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,28\",\"spacing\":\"0\"},\"children\":[[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🛟\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"animation\":\"animation:{\\\"type\\\":\\\"swing\\\",\\\"duration\\\":15,\\\"direction\\\":\\\"vertical\\\",\\\"distance\\\":6}\",\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🫧\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🪼\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🐟\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"animation\":\"animation:{\\\"type\\\":\\\"swing\\\",\\\"duration\\\":15,\\\"direction\\\":\\\"vertical\\\",\\\"distance\\\":6}\",\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🫧\"]}]}]]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,28\",\"spacing\":\"0\"},\"children\":[[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🪼\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🐟\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"animation\":\"animation:{\\\"type\\\":\\\"swing\\\",\\\"duration\\\":30,\\\"direction\\\":\\\"vertical\\\",\\\"distance\\\":5}\",\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🐠\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"animation\":\"animation:{\\\"type\\\":\\\"swing\\\",\\\"duration\\\":15,\\\"direction\\\":\\\"vertical\\\",\\\"distance\\\":6}\",\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🫧\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🐬\"]}]}]]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,28\",\"spacing\":\"0\"},\"children\":[[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"animation\":\"animation:{\\\"type\\\":\\\"swing\\\",\\\"duration\\\":15,\\\"direction\\\":\\\"vertical\\\",\\\"distance\\\":6}\",\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🫧\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🦐\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"animation\":\"animation:{\\\"type\\\":\\\"swing\\\",\\\"duration\\\":20,\\\"direction\\\":\\\"horizontal\\\",\\\"distance\\\":10}\",\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🐡\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🐟\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"animation\":\"animation:{\\\"type\\\":\\\"swing\\\",\\\"duration\\\":15,\\\"direction\\\":\\\"vertical\\\",\\\"distance\\\":6}\",\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🫧\"]}]}]]},false,false,{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,28\",\"spacing\":\"0\"},\"children\":[[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🍀\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🪸\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🌿\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"⚓️\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🐙\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🌿\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"font\":\"20\",\"frame\":\"28,28\"},\"children\":[\"🪸\"]}]}]]}]}" @@ -251,19 +251,19 @@ "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"#111827\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"18\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"6\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"6\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#4ade80\",\"size\":\"18\",\"systemName\":\"battery.100\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#86efac\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"BATTERY\"]}]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[\"80\",\"%\"]},{\"$element\":\"badge\",\"props\":{\"color\":\"#4ade80\",\"text\":\"unplugged\"},\"children\":[]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"rect\",\"props\":{\"color\":\"#334155\",\"frame\":\"1,104\"},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"6\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"6\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#38bdf8\",\"size\":\"18\",\"systemName\":\"sun.max.fill\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#7dd3fc\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"DISPLAY\"]}]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[\"50%\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption\"},\"children\":[\"Brightness\"]}]}]}" }, "template/Birthday Countdown" : { - "tree" : "{\"$element\":\"vstack\",\"props\":{\"background\":\"#be185d\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"7\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#fbcfe8\",\"size\":\"22\",\"systemName\":\"birthday.cake.fill\"},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#fce7f3\",\"font\":\"caption\"},\"children\":[\"Alex\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[351]},{\"$element\":\"text\",\"props\":{\"color\":\"#fdf2f8\",\"font\":\"callout\"},\"children\":[\"days until the celebration\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}" + "tree" : "{\"$element\":\"vstack\",\"props\":{\"background\":\"#be185d\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"7\"},\"children\":[{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#fbcfe8\",\"size\":\"22\",\"systemName\":\"birthday.cake.fill\"},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#fce7f3\",\"font\":\"caption\"},\"children\":[\"Alex\"]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"7\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[351]},{\"$element\":\"text\",\"props\":{\"color\":\"#fdf2f8\",\"font\":\"callout\"},\"children\":[\"days until the celebration\"]}]}]}" }, "template/Calendar Agenda" : { "skipped" : "live-data" }, "template/Check Is Friday Today" : { - "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#4f46e5\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#c4b5fd\",\"font\":\"caption\"},\"children\":[\"FRIDAY CHECK\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"date\",\"props\":{\"color\":\"#ddd6fe\",\"date\":\"now\",\"font\":\"caption\",\"style\":\"date\"},\"children\":[]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"hstack\",\"props\":{\"spacing\":\"10\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#fbbf24\",\"size\":\"28\",\"systemName\":\"calendar\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[\"Not yet\"]}]},{\"$element\":\"text\",\"props\":{\"color\":\"#ddd6fe\",\"font\":\"caption\"},\"children\":[\"1 days to go.\"]}]}" + "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#4f46e5\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#c4b5fd\",\"font\":\"caption\"},\"children\":[\"FRIDAY CHECK\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#ddd6fe\",\"font\":\"caption\"},\"children\":[\"Jan 1\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"hstack\",\"props\":{\"spacing\":\"10\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#fbbf24\",\"size\":\"28\",\"systemName\":\"calendar\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"Not yet\"]}]},{\"$element\":\"text\",\"props\":{\"color\":\"#ddd6fe\",\"font\":\"caption\"},\"children\":[\"1 days to go.\"]}]}" }, "template/Check Is Working Day Today" : { - "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#0f3d3e\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#99f6e4\",\"font\":\"caption\"},\"children\":[\"DAY STATUS\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"date\",\"props\":{\"color\":\"white\",\"date\":\"now\",\"font\":\"caption\",\"style\":\"date\"},\"children\":[]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"hstack\",\"props\":{\"spacing\":\"10\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#5eead4\",\"size\":\"28\",\"systemName\":\"briefcase.fill\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title\",\"weight\":\"bold\"},\"children\":[\"Work day\"]}]},{\"$element\":\"text\",\"props\":{\"color\":\"#ccfbf1\",\"font\":\"caption\"},\"children\":[\"Choose one meaningful priority.\"]}]}" + "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#0f3d3e\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#99f6e4\",\"font\":\"caption\"},\"children\":[\"DAY STATUS\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"caption\"},\"children\":[\"Jan 1\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"hstack\",\"props\":{\"spacing\":\"10\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#5eead4\",\"size\":\"28\",\"systemName\":\"briefcase.fill\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title3\",\"weight\":\"bold\"},\"children\":[\"Work day\"]}]},{\"$element\":\"text\",\"props\":{\"color\":\"#ccfbf1\",\"font\":\"caption\"},\"children\":[\"Choose one meaningful priority.\"]}]}" }, "template/Condition Content" : { - "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#1e3a8a\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"10\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#bfdbfe\",\"font\":\"caption\"},\"children\":[\"CONDITIONAL CONTENT\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"badge\",\"props\":{\"color\":\"#dbeafe\",\"text\":\"medium\"},\"children\":[]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#fbbf24\",\"size\":\"28\",\"systemName\":\"sun.max.fill\"},\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"Good morning\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#bfdbfe\",\"font\":\"caption\"},\"children\":[\"Start with what matters.\"]}]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}" + "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#1e3a8a\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"10\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#bfdbfe\",\"font\":\"caption\"},\"children\":[\"CONDITION\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"badge\",\"props\":{\"color\":\"#dbeafe\",\"text\":\"medium\"},\"children\":[]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"6\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#fbbf24\",\"size\":\"28\",\"systemName\":\"sun.max.fill\"},\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"Good morning\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#bfdbfe\",\"font\":\"caption\"},\"children\":[\"Start with what matters.\"]}]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}" }, "template/Control Switch" : { "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#eff6ff\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"10\"},\"children\":[{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#2563eb\",\"size\":\"22\",\"systemName\":\"switch.2\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#1e3a8a\",\"font\":\"headline\"},\"children\":[\"Local switch\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"toggle\",\"props\":{\"actionID\":\"setFlag\",\"on\":false,\"stateKey\":\"switch.enabled\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#1e3a8a\"},\"children\":[\"Off\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#475569\",\"font\":\"caption2\"},\"children\":[\"Shared with this widget’s control and Shortcuts\"]}]}" @@ -278,13 +278,13 @@ "skipped" : "live-data" }, "template/Daily Affirmation" : { - "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#7c3aed\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#ede9fe\",\"size\":\"22\",\"systemName\":\"quote.opening\"},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title3\",\"weight\":\"bold\"},\"children\":[\"I have everything I need for today.\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#f5f3ff\",\"font\":\"caption\"},\"children\":[\"DAILY AFFIRMATION\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}]}" + "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#7c3aed\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#ede9fe\",\"size\":\"22\",\"systemName\":\"quote.opening\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"frame\":\"max,leading\",\"weight\":\"bold\"},\"children\":[\"I have everything I need for today.\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#f5f3ff\",\"font\":\"caption\"},\"children\":[\"DAILY AFFIRMATION\"]}]}" }, "template/Daily Agenda" : { "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#2563eb\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title3\",\"weight\":\"bold\"},\"children\":[\"Today\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"date\",\"props\":{\"color\":\"#dbeafe\",\"date\":\"now\",\"font\":\"caption\",\"style\":\"date\"},\"children\":[]}]},[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"badge\",\"props\":{\"color\":\"#bfdbfe\",\"text\":\"1\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"callout\"},\"children\":[\"Plan the day\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"badge\",\"props\":{\"color\":\"#bfdbfe\",\"text\":\"2\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"callout\"},\"children\":[\"Deep work\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"badge\",\"props\":{\"color\":\"#bfdbfe\",\"text\":\"3\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"callout\"},\"children\":[\"Take a walk\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}]]}" }, "template/Daily Command Center" : { - "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#172554\",\"frame\":\"max\",\"padding\":\"18\",\"spacing\":\"12\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"Today\"]},{\"$element\":\"date\",\"props\":{\"color\":\"#94a3b8\",\"date\":\"now\",\"font\":\"caption\",\"style\":\"date\"},\"children\":[]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"badge\",\"props\":{\"color\":\"#93c5fd\",\"text\":\"COMMAND CENTER\"},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#1d4ed8\",\"corner\":\"14\",\"frame\":\"max,76,leading\",\"padding\":\"12\",\"spacing\":\"5\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#93c5fd\",\"font\":\"caption2\",\"weight\":\"bold\"},\"children\":[\"PRIMARY OUTCOME\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title3\",\"weight\":\"bold\"},\"children\":[\"Ship the weekly update\"]},{\"$element\":\"progress\",\"props\":{\"color\":\"#60a5fa\",\"thickness\":\"5\",\"total\":\"1\",\"trackColor\":\"#1e3a8a\",\"value\":0.16666666666666666},\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"12\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#111827\",\"corner\":\"14\",\"frame\":\"max,146,topLeading\",\"padding\":\"12\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#a5b4fc\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"SCHEDULE\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#818cf8\",\"size\":\"14\",\"systemName\":\"clock.fill\"},\"children\":[]}]},[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#60a5fa\",\"frame\":\"7,7\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#f8fafc\",\"font\":\"caption\"},\"children\":[\"09:00 Stand-up\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#334155\",\"frame\":\"7,7\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#cbd5e1\",\"font\":\"caption\"},\"children\":[\"11:30 Deep work\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#334155\",\"frame\":\"7,7\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#cbd5e1\",\"font\":\"caption\"},\"children\":[\"15:00 Review\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}]]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#111827\",\"corner\":\"14\",\"frame\":\"max,146,topLeading\",\"padding\":\"12\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#6ee7b7\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"QUICK TASKS\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#34d399\",\"size\":\"14\",\"systemName\":\"checkmark.circle.fill\"},\"children\":[]}]},[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#60a5fa\",\"frame\":\"7,7\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#f8fafc\",\"font\":\"caption\"},\"children\":[\"Reply to Sam\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#334155\",\"frame\":\"7,7\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#cbd5e1\",\"font\":\"caption\"},\"children\":[\"Book dentist\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#334155\",\"frame\":\"7,7\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#cbd5e1\",\"font\":\"caption\"},\"children\":[\"Walk 20 min\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}]]}]}]}" + "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#172554\",\"frame\":\"max\",\"padding\":\"18\",\"spacing\":\"12\"},\"children\":[{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"Today\"]},{\"$element\":\"date\",\"props\":{\"color\":\"#94a3b8\",\"date\":\"now\",\"font\":\"caption\",\"style\":\"date\"},\"children\":[]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"badge\",\"props\":{\"color\":\"#93c5fd\",\"text\":\"COMMAND CENTER\"},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#1d4ed8\",\"corner\":\"14\",\"frame\":\"max,76,leading\",\"padding\":\"12\",\"spacing\":\"5\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#93c5fd\",\"font\":\"caption2\",\"weight\":\"bold\"},\"children\":[\"PRIMARY OUTCOME\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title3\",\"weight\":\"bold\"},\"children\":[\"Ship the weekly update\"]},{\"$element\":\"progress\",\"props\":{\"color\":\"#60a5fa\",\"thickness\":\"5\",\"total\":\"1\",\"trackColor\":\"#1e3a8a\",\"value\":0.16666666666666666},\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"12\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#111827\",\"corner\":\"14\",\"frame\":\"max,146,topLeading\",\"padding\":\"12\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#a5b4fc\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"SCHEDULE\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#818cf8\",\"size\":\"14\",\"systemName\":\"clock.fill\"},\"children\":[]}]},[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,leading\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#60a5fa\",\"frame\":\"7,7\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#f8fafc\",\"font\":\"caption\"},\"children\":[\"09:00 Stand-up\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,leading\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#334155\",\"frame\":\"7,7\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#cbd5e1\",\"font\":\"caption\"},\"children\":[\"11:30 Deep work\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,leading\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#334155\",\"frame\":\"7,7\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#cbd5e1\",\"font\":\"caption\"},\"children\":[\"15:00 Review\"]}]}]]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#111827\",\"corner\":\"14\",\"frame\":\"max,146,topLeading\",\"padding\":\"12\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#6ee7b7\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"QUICK TASKS\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#34d399\",\"size\":\"14\",\"systemName\":\"checkmark.circle.fill\"},\"children\":[]}]},[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,leading\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#60a5fa\",\"frame\":\"7,7\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#f8fafc\",\"font\":\"caption\"},\"children\":[\"Reply to Sam\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,leading\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#334155\",\"frame\":\"7,7\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#cbd5e1\",\"font\":\"caption\"},\"children\":[\"Book dentist\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,leading\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#334155\",\"frame\":\"7,7\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#cbd5e1\",\"font\":\"caption\"},\"children\":[\"Walk 20 min\"]}]}]]}]}]}" }, "template/Daily Quote" : { "skipped" : "live-data" @@ -293,7 +293,7 @@ "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"#172554\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#93c5fd\",\"font\":\"caption\"},\"children\":[\"CURRENT TIME\"]},{\"$element\":\"date\",\"props\":{\"color\":\"white\",\"date\":\"now\",\"font\":\"largeTitle\",\"style\":\"time\",\"weight\":\"bold\"},\"children\":[]},{\"$element\":\"date\",\"props\":{\"color\":\"#bfdbfe\",\"date\":\"now\",\"font\":\"caption\",\"style\":\"date\"},\"children\":[]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#60a5fa\",\"size\":\"42\",\"systemName\":\"clock.fill\"},\"children\":[]}]}" }, "template/Datetime Timezone" : { - "tree" : "{\"$element\":\"vstack\",\"props\":{\"background\":\"#111827\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"World Clock\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#60a5fa\",\"size\":\"20\",\"systemName\":\"globe.americas.fill\"},\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption\"},\"children\":[\"BEIJING\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title3\",\"weight\":\"bold\"},\"children\":[\"08:00 PM\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption\"},\"children\":[\"SAN JOSE\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title3\",\"weight\":\"bold\"},\"children\":[\"04:00 AM\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption\"},\"children\":[\"NEW YORK\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title3\",\"weight\":\"bold\"},\"children\":[\"07:00 AM\"]}]}]}]}" + "tree" : "{\"$element\":\"vstack\",\"props\":{\"background\":\"#111827\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"World Clock\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#60a5fa\",\"size\":\"20\",\"systemName\":\"globe.americas.fill\"},\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption\"},\"children\":[\"BEIJING\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"08:00 PM\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption\"},\"children\":[\"SAN JOSE\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"04:00 AM\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption\"},\"children\":[\"NEW YORK\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"07:00 AM\"]}]}]}]}" }, "template/Day Rhythm" : { "skipped" : "live-data" @@ -302,7 +302,7 @@ "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"#0f766e\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"4\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#5eead4\",\"font\":\"caption\"},\"children\":[\"DEVICE BATTERY\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[\"80\",\"%\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#99f6e4\",\"font\":\"caption\"},\"children\":[\"Power at a glance\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"ring\",\"props\":{\"color\":\"#2dd4bf\",\"frame\":\"82,82\",\"thickness\":\"10\",\"trackColor\":\"#134e4a\",\"value\":0.8},\"children\":[]}]}" }, "template/Family Command Board" : { - "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#831843\",\"frame\":\"max\",\"padding\":\"18\",\"spacing\":\"12\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"The Parkers\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#a1a1aa\",\"font\":\"caption\"},\"children\":[\"Home at a glance\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#fb7185\",\"size\":\"26\",\"systemName\":\"house.fill\"},\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"12\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#9d174d\",\"corner\":\"14\",\"frame\":\"max,154,topLeading\",\"padding\":\"13\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fda4af\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"TODAY\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"date\",\"props\":{\"color\":\"#a1a1aa\",\"date\":\"now\",\"font\":\"caption2\",\"style\":\"date\"},\"children\":[]}]},[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"rect\",\"props\":{\"color\":\"#fb7185\",\"corner\":\"2\",\"frame\":\"4,28\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#f8fafc\",\"font\":\"caption\"},\"children\":[\"08:15 School drop-off\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"rect\",\"props\":{\"color\":\"#fbbf24\",\"corner\":\"2\",\"frame\":\"4,28\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#f8fafc\",\"font\":\"caption\"},\"children\":[\"17:30 Soccer practice\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"rect\",\"props\":{\"color\":\"#60a5fa\",\"corner\":\"2\",\"frame\":\"4,28\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#f8fafc\",\"font\":\"caption\"},\"children\":[\"19:00 Call Grandma\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}]]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#9d174d\",\"corner\":\"14\",\"frame\":\"max,154,topLeading\",\"padding\":\"13\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fde68a\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"CHORES\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"badge\",\"props\":{\"color\":\"#fbbf24\",\"text\":\"3 LEFT\"},\"children\":[]}]},[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#3f3f46\",\"frame\":\"12,12\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#e4e4e7\",\"font\":\"caption\"},\"children\":[\"Mia · Feed Mochi\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#3f3f46\",\"frame\":\"12,12\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#e4e4e7\",\"font\":\"caption\"},\"children\":[\"Noah · Recycling\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#3f3f46\",\"frame\":\"12,12\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#e4e4e7\",\"font\":\"caption\"},\"children\":[\"All · Tidy kitchen\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}]]}]},{\"$element\":\"hstack\",\"props\":{\"background\":\"#be185d\",\"corner\":\"14\",\"frame\":\"max,72,leading\",\"padding\":\"13\",\"spacing\":\"12\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#fce7f3\",\"size\":\"22\",\"systemName\":\"fork.knife\"},\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fce7f3\",\"font\":\"caption2\",\"weight\":\"bold\"},\"children\":[\"DINNER PLAN\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\"},\"children\":[\"Taco bowls · 18:30\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}]}" + "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#831843\",\"frame\":\"max\",\"padding\":\"18\",\"spacing\":\"12\"},\"children\":[{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"The Parkers\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#a1a1aa\",\"font\":\"caption\"},\"children\":[\"Home at a glance\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#fb7185\",\"size\":\"26\",\"systemName\":\"house.fill\"},\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"12\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#9d174d\",\"corner\":\"14\",\"frame\":\"max,158,topLeading\",\"padding\":\"11\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fda4af\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"TODAY\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#a1a1aa\",\"font\":\"caption2\"},\"children\":[\"Jan 1\"]}]},[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,leading\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"rect\",\"props\":{\"color\":\"#fb7185\",\"corner\":\"2\",\"frame\":\"4,28\"},\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fda4af\",\"font\":\"caption2\"},\"children\":[\"08:15\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#f8fafc\",\"font\":\"caption\"},\"children\":[\"School drop-off\"]}]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,leading\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"rect\",\"props\":{\"color\":\"#fbbf24\",\"corner\":\"2\",\"frame\":\"4,28\"},\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fda4af\",\"font\":\"caption2\"},\"children\":[\"17:30\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#f8fafc\",\"font\":\"caption\"},\"children\":[\"Soccer practice\"]}]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,leading\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"rect\",\"props\":{\"color\":\"#60a5fa\",\"corner\":\"2\",\"frame\":\"4,28\"},\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fda4af\",\"font\":\"caption2\"},\"children\":[\"19:00\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#f8fafc\",\"font\":\"caption\"},\"children\":[\"Call Grandma\"]}]}]}]]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#9d174d\",\"corner\":\"14\",\"frame\":\"max,158,topLeading\",\"padding\":\"11\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fde68a\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"CHORES\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"badge\",\"props\":{\"color\":\"#fbbf24\",\"text\":\"3 LEFT\"},\"children\":[]}]},[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,leading\",\"spacing\":\"7\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#3f3f46\",\"frame\":\"10,10\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#e4e4e7\",\"font\":\"caption\"},\"children\":[\"Mia · Feed Mochi\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,leading\",\"spacing\":\"7\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#3f3f46\",\"frame\":\"10,10\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#e4e4e7\",\"font\":\"caption\"},\"children\":[\"Noah · Recycling\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max,leading\",\"spacing\":\"7\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#3f3f46\",\"frame\":\"10,10\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#e4e4e7\",\"font\":\"caption\"},\"children\":[\"All · Tidy kitchen\"]}]}]]}]},{\"$element\":\"hstack\",\"props\":{\"background\":\"#be185d\",\"corner\":\"14\",\"frame\":\"max,72,leading\",\"padding\":\"13\",\"spacing\":\"12\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#fce7f3\",\"size\":\"22\",\"systemName\":\"fork.knife\"},\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fce7f3\",\"font\":\"caption2\",\"weight\":\"bold\"},\"children\":[\"DINNER PLAN\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\"},\"children\":[\"Taco bowls · 18:30\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}]}" }, "template/Focus Countdown" : { "tree" : "{\"$element\":\"vstack\",\"props\":{\"background\":\"#1e293b\",\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption\"},\"children\":[\"Focus Timer\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#e2e8f0\",\"font\":\"title2\"},\"children\":[\"25:00\"]},{\"$element\":\"gauge\",\"props\":{\"angle\":\"260\",\"label\":\"0%\",\"labelFont\":\"caption\",\"thickness\":\"8\",\"title\":\"Session\",\"titleFont\":\"caption\",\"value\":0},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"Cycle: \",25,\" min\"]}]}" @@ -344,7 +344,7 @@ "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"#111827\",\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"zstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"image\",\"props\":{\"frame\":\"max\",\"id\":\"image0\",\"mode\":\"fill\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"Explore\"]}]},{\"$element\":\"zstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"image\",\"props\":{\"frame\":\"max\",\"id\":\"image1\",\"mode\":\"fill\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"Create\"]}]},{\"$element\":\"zstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"image\",\"props\":{\"frame\":\"max\",\"id\":\"image2\",\"mode\":\"fill\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"Enjoy\"]}]}]}" }, "template/Layout Starter" : { - "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f1f6fb\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"6\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#526f9e\",\"size\":\"18\",\"systemName\":\"sparkles\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A fresh start\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#263e60\",\"font\":\"title2\",\"fontWeight\":\"semibold\"},\"children\":[\"Make today yours\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A little space for your ideas.\"]}]}" + "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#f1f6fb\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"6\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#526f9e\",\"size\":\"18\",\"systemName\":\"sparkles\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A fresh start\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#263e60\",\"font\":\"headline\",\"fontWeight\":\"semibold\"},\"children\":[\"Make today yours\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#657b96\",\"font\":\"caption\"},\"children\":[\"A little space for your ideas.\"]}]}" }, "template/Live Activity Demo" : { "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"#eff6ff\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"14\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#2563eb\",\"size\":\"30\",\"systemName\":\"timer\"},\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"frame\":\"max,leading\",\"spacing\":\"5\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#1e3a8a\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"Ready to start\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#475569\",\"font\":\"caption\"},\"children\":[\"Start or update this activity in ScriptWidget.\"]},false,false]},{\"$element\":\"text\",\"props\":{\"color\":\"#1e3a8a\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"Ready\"]}]}" @@ -362,7 +362,7 @@ "tree" : "{\"$element\":\"zstack\",\"props\":{\"background\":\"#E7F6EE\",\"frame\":\"max\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"opacity\":0.7,\"rotation3d\":\"12,0,1,0\",\"spacing\":\"4\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#41B982\",\"frame\":\"80\"},\"children\":[]},{\"$element\":\"ellipse\",\"props\":{\"color\":\"#F1C486\",\"frame\":\"48,92\",\"rotation\":\"28\"},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"background\":\"#FAFFFC\",\"backgroundMaterial\":\"thin\",\"corner\":\"20\",\"padding\":\"18\",\"spacing\":\"7\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#1C4C39\",\"font\":\"headline\",\"fontDesign\":\"rounded\"},\"children\":[\"A little calm\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#4E7764\",\"font\":\"caption\"},\"children\":[\"Your own quiet corner.\"]}]}]}" }, "template/Meal Planner" : { - "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#c2410c\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"7\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"Today's menu\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#ffedd5\",\"size\":\"19\",\"systemName\":\"fork.knife\"},\"children\":[]}]},[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fed7aa\",\"font\":\"caption\"},\"children\":[\"Morning\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"callout\",\"weight\":\"semibold\"},\"children\":[\"Oatmeal\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fed7aa\",\"font\":\"caption\"},\"children\":[\"Lunch\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"callout\",\"weight\":\"semibold\"},\"children\":[\"Grain bowl\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fed7aa\",\"font\":\"caption\"},\"children\":[\"Dinner\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"callout\",\"weight\":\"semibold\"},\"children\":[\"Pasta\"]}]}]]}" + "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#c2410c\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"7\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"0\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"Today's menu\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#ffedd5\",\"size\":\"16\",\"systemName\":\"fork.knife\"},\"children\":[]}]},[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fed7aa\",\"font\":\"caption\"},\"children\":[\"Morning\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"callout\",\"weight\":\"semibold\"},\"children\":[\"Oatmeal\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fed7aa\",\"font\":\"caption\"},\"children\":[\"Lunch\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"callout\",\"weight\":\"semibold\"},\"children\":[\"Grain bowl\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fed7aa\",\"font\":\"caption\"},\"children\":[\"Dinner\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"callout\",\"weight\":\"semibold\"},\"children\":[\"Pasta\"]}]}]]}" }, "template/Meeting Countdown" : { "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#1e293b\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"7\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#93c5fd\",\"font\":\"caption\"},\"children\":[\"NEXT MEETING\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#60a5fa\",\"size\":\"19\",\"systemName\":\"video.fill\"},\"children\":[]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[\"1h 30m\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#cbd5e1\",\"font\":\"caption\"},\"children\":[\"Starts \",\"05:30 AM\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}" @@ -446,25 +446,25 @@ "skipped" : "live-data" }, "template/System Insights" : { - "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"#0f172a\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"18\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"6\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"7\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#60a5fa\",\"size\":\"19\",\"systemName\":\"desktopcomputer\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#93c5fd\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"SYSTEM\"]}]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"IOS\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#64748b\",\"font\":\"caption2\"},\"children\":[\"Version 26.0\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"7\"},\"children\":[{\"$element\":\"stat\",\"props\":{\"color\":\"#38bdf8\",\"subtitle\":\"active\",\"title\":\"CPU\",\"value\":\"6 / 6\"},\"children\":[]},{\"$element\":\"stat\",\"props\":{\"color\":\"#a78bfa\",\"subtitle\":\"physical\",\"title\":\"MEMORY\",\"value\":\"8.0 GB\"},\"children\":[]},{\"$element\":\"stat\",\"props\":{\"color\":\"#34d399\",\"subtitle\":\"since boot\",\"title\":\"UPTIME\",\"value\":\"1.0h\"},\"children\":[]}]}]}" + "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"#0f172a\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"18\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"6\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"7\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#60a5fa\",\"size\":\"19\",\"systemName\":\"desktopcomputer\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#93c5fd\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"SYSTEM\"]}]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"IOS\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#64748b\",\"font\":\"caption2\"},\"children\":[\"Version 26.0\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"7\"},\"children\":[{\"$element\":\"stat\",\"props\":{\"color\":\"#38bdf8\",\"title\":\"ACTIVE CPU\",\"value\":\"6 / 6\"},\"children\":[]},{\"$element\":\"stat\",\"props\":{\"color\":\"#a78bfa\",\"title\":\"MEMORY\",\"value\":\"8.0 GB\"},\"children\":[]},{\"$element\":\"stat\",\"props\":{\"color\":\"#34d399\",\"title\":\"UPTIME\",\"value\":\"1.0h\"},\"children\":[]}]}]}" }, "template/System Status Panel" : { "tree" : "{\"$element\":\"vstack\",\"props\":{\"background\":\"#111827\",\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#9ca3af\",\"font\":\"caption\"},\"children\":[\"System Status\"]},{\"$element\":\"hstack\",\"props\":{\"spacing\":\"12\"},\"children\":[{\"$element\":\"vstack\",\"props\":null,\"children\":[{\"$element\":\"gauge\",\"props\":{\"angle\":\"220\",\"label\":\"80%\",\"labelFont\":\"caption2\",\"sections\":\"[{\\\"color\\\":\\\"#22c55e\\\",\\\"value\\\":0.4},{\\\"color\\\":\\\"#fbbf24\\\",\\\"value\\\":0.3},{\\\"color\\\":\\\"#ef4444\\\",\\\"value\\\":0.3}]\",\"thickness\":\"8\",\"title\":\"BATTERY\",\"titleFont\":\"caption2\",\"value\":0.8},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":null,\"children\":[{\"$element\":\"gauge\",\"props\":{\"angle\":\"220\",\"label\":\"50%\",\"labelFont\":\"caption2\",\"sections\":\"[{\\\"color\\\":\\\"#22c55e\\\",\\\"value\\\":0.4},{\\\"color\\\":\\\"#fbbf24\\\",\\\"value\\\":0.3},{\\\"color\\\":\\\"#ef4444\\\",\\\"value\\\":0.3}]\",\"thickness\":\"8\",\"title\":\"STORAGE\",\"titleFont\":\"caption2\",\"value\":0.5},\"children\":[]}]}]},{\"$element\":\"text\",\"props\":{\"color\":\"#9ca3af\",\"font\":\"caption2\"},\"children\":[\"Low Power: \",\"Off\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#9ca3af\",\"font\":\"caption2\"},\"children\":[\"Thermal: \",\"nominal\"]}]}" }, "template/Text Days To End Of Month" : { - "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"#7c3aed\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"3\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#d8b4fe\",\"font\":\"caption\"},\"children\":[\"MONTH PROGRESS\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[30]},{\"$element\":\"text\",\"props\":{\"color\":\"#e9d5ff\",\"font\":\"caption\"},\"children\":[\"days remaining\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#c084fc\",\"size\":\"42\",\"systemName\":\"calendar\"},\"children\":[]}]}" + "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"#7c3aed\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"6\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"3\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#d8b4fe\",\"font\":\"caption\"},\"children\":[\"THIS MONTH\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[30]},{\"$element\":\"text\",\"props\":{\"color\":\"#e9d5ff\",\"font\":\"caption\"},\"children\":[\"days remaining\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#c084fc\",\"size\":\"28\",\"systemName\":\"calendar\"},\"children\":[]}]}" }, "template/Text Days to End Of Year" : { - "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"#0284c7\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"3\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#7dd3fc\",\"font\":\"caption\"},\"children\":[\"YEAR PROGRESS\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[364]},{\"$element\":\"text\",\"props\":{\"color\":\"#bae6fd\",\"font\":\"caption\"},\"children\":[\"days remaining\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#38bdf8\",\"size\":\"42\",\"systemName\":\"hourglass\"},\"children\":[]}]}" + "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"#0284c7\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"6\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"3\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#7dd3fc\",\"font\":\"caption\"},\"children\":[\"THIS YEAR\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[364]},{\"$element\":\"text\",\"props\":{\"color\":\"#bae6fd\",\"font\":\"caption\"},\"children\":[\"days remaining\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#38bdf8\",\"size\":\"28\",\"systemName\":\"hourglass\"},\"children\":[]}]}" }, "template/Text Today Week" : { "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"#e11d48\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"3\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fca5a5\",\"font\":\"caption\"},\"children\":[\"TODAY\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[\"Thursday\"]},{\"$element\":\"date\",\"props\":{\"color\":\"#fecaca\",\"date\":\"now\",\"font\":\"caption\",\"style\":\"date\"},\"children\":[]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#f87171\",\"size\":\"44\",\"systemName\":\"calendar.circle.fill\"},\"children\":[]}]}" }, "template/Text Year Days Left" : { - "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"#9f1239\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"16\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"3\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fda4af\",\"font\":\"caption\"},\"children\":[\"今年还剩\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[395,\" 天\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#fecdd3\",\"font\":\"caption\"},\"children\":[\"把今天过得有意义\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#fb7185\",\"size\":\"40\",\"systemName\":\"sparkles\"},\"children\":[]}]}" + "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"#9f1239\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"4\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"3\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#fda4af\",\"font\":\"caption\"},\"children\":[\"今年还剩\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title\",\"weight\":\"bold\"},\"children\":[395,\" 天\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#fecdd3\",\"font\":\"caption\"},\"children\":[\"把今天过得有意义\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#fb7185\",\"size\":\"26\",\"systemName\":\"sparkles\"},\"children\":[]}]}" }, "template/Travel Day Dashboard" : { - "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#075985\",\"frame\":\"max\",\"padding\":\"18\",\"spacing\":\"13\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"Travel Day\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#7dd3fc\",\"font\":\"caption\"},\"children\":[\"Everything before boarding\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"badge\",\"props\":{\"color\":\"#38bdf8\",\"text\":\"SW 218\"},\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"background\":\"#0369a1\",\"corner\":\"15\",\"frame\":\"max\",\"padding\":\"15\",\"spacing\":\"12\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[\"SFO\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#7dd3fc\",\"font\":\"caption\"},\"children\":[\"DEPART\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"5\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#38bdf8\",\"size\":\"28\",\"systemName\":\"airplane\"},\"children\":[]},{\"$element\":\"rect\",\"props\":{\"color\":\"#164e63\",\"corner\":\"1\",\"frame\":\"92,2\"},\"children\":[]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"trailing\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"largeTitle\",\"weight\":\"bold\"},\"children\":[\"SEA\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#7dd3fc\",\"font\":\"caption\"},\"children\":[\"ARRIVE\"]}]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"10\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#10253a\",\"corner\":\"12\",\"frame\":\"max,82,leading\",\"padding\":\"11\",\"spacing\":\"4\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#64748b\",\"font\":\"caption2\"},\"children\":[\"DEPARTURE\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\"},\"children\":[\"10:40 AM\"]}]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#10253a\",\"corner\":\"12\",\"frame\":\"max,82,leading\",\"padding\":\"11\",\"spacing\":\"4\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#64748b\",\"font\":\"caption2\"},\"children\":[\"GATE\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\"},\"children\":[\"B12\"]}]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#10253a\",\"corner\":\"12\",\"frame\":\"max,82,leading\",\"padding\":\"11\",\"spacing\":\"4\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#64748b\",\"font\":\"caption2\"},\"children\":[\"DESTINATION\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\"},\"children\":[\"58° · Light rain\"]}]}]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#10253a\",\"corner\":\"14\",\"frame\":\"max\",\"padding\":\"13\",\"spacing\":\"10\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#bae6fd\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"BEFORE YOU GO\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#38bdf8\",\"size\":\"15\",\"systemName\":\"checklist\"},\"children\":[]}]},[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#164e63\",\"frame\":\"12,12\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#e0f2fe\",\"font\":\"callout\"},\"children\":[\"Passport\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#38bdf8\",\"font\":\"caption2\"},\"children\":[\"PACKED?\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#164e63\",\"frame\":\"12,12\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#e0f2fe\",\"font\":\"callout\"},\"children\":[\"Headphones\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#38bdf8\",\"font\":\"caption2\"},\"children\":[\"PACKED?\"]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#164e63\",\"frame\":\"12,12\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#e0f2fe\",\"font\":\"callout\"},\"children\":[\"Charger\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#38bdf8\",\"font\":\"caption2\"},\"children\":[\"PACKED?\"]}]}]]}]}" + "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#075985\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"10\"},\"children\":[{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"Travel Day\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#7dd3fc\",\"font\":\"caption\"},\"children\":[\"Everything before boarding\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"badge\",\"props\":{\"color\":\"#38bdf8\",\"text\":\"SW 218\"},\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"background\":\"#0369a1\",\"corner\":\"15\",\"padding\":\"10\",\"spacing\":\"8\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title\",\"weight\":\"bold\"},\"children\":[\"SFO\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#7dd3fc\",\"font\":\"caption\"},\"children\":[\"DEPART\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"5\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#38bdf8\",\"size\":\"24\",\"systemName\":\"airplane\"},\"children\":[]},{\"$element\":\"rect\",\"props\":{\"color\":\"#164e63\",\"corner\":\"1\",\"frame\":\"72,2\"},\"children\":[]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"trailing\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title\",\"weight\":\"bold\"},\"children\":[\"SEA\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#7dd3fc\",\"font\":\"caption\"},\"children\":[\"ARRIVE\"]}]}]},{\"$element\":\"hstack\",\"props\":{\"spacing\":\"8\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#10253a\",\"corner\":\"12\",\"frame\":\"max,56,leading\",\"padding\":\"9\",\"spacing\":\"3\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#64748b\",\"font\":\"caption2\"},\"children\":[\"DEPARTURE\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"subheadline\",\"weight\":\"semibold\"},\"children\":[\"10:40 AM\"]}]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#10253a\",\"corner\":\"12\",\"frame\":\"max,56,leading\",\"padding\":\"9\",\"spacing\":\"3\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#64748b\",\"font\":\"caption2\"},\"children\":[\"GATE\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"subheadline\",\"weight\":\"semibold\"},\"children\":[\"B12\"]}]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#10253a\",\"corner\":\"12\",\"frame\":\"max,56,leading\",\"padding\":\"9\",\"spacing\":\"3\"},\"children\":[{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#64748b\",\"font\":\"caption2\"},\"children\":[\"DESTINATION\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"subheadline\",\"weight\":\"semibold\"},\"children\":[\"58° · Light rain\"]}]}]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#10253a\",\"corner\":\"14\",\"padding\":\"11\",\"spacing\":\"5\"},\"children\":[{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#bae6fd\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"BEFORE YOU GO\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"icon\",\"props\":{\"color\":\"#38bdf8\",\"size\":\"15\",\"systemName\":\"checklist\"},\"children\":[]}]},[{\"$element\":\"hstack\",\"props\":{\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#164e63\",\"frame\":\"10,10\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#e0f2fe\",\"font\":\"caption\"},\"children\":[\"Passport\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#38bdf8\",\"font\":\"caption2\"},\"children\":[\"PACKED?\"]}]},{\"$element\":\"hstack\",\"props\":{\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#164e63\",\"frame\":\"10,10\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#e0f2fe\",\"font\":\"caption\"},\"children\":[\"Headphones\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#38bdf8\",\"font\":\"caption2\"},\"children\":[\"PACKED?\"]}]},{\"$element\":\"hstack\",\"props\":{\"spacing\":\"9\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#164e63\",\"frame\":\"10,10\"},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#e0f2fe\",\"font\":\"caption\"},\"children\":[\"Charger\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#38bdf8\",\"font\":\"caption2\"},\"children\":[\"PACKED?\"]}]}]]}]}" }, "template/Wallpaper Match" : { "skipped" : "live-data" @@ -485,7 +485,7 @@ "tree" : "{\"$element\":\"vstack\",\"props\":{\"background\":\"#0f172a\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"12\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"6\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#f8fafc\",\"font\":\"headline\"},\"children\":[\"This Week\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption\"},\"children\":[\"Make today count\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"date\",\"props\":{\"color\":\"#cbd5e1\",\"date\":\"now\",\"font\":\"caption\",\"style\":\"date\"},\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"10\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"SUN\"]},{\"$element\":\"circle\",\"props\":{\"color\":\"#334155\",\"frame\":\"8\"},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"MON\"]},{\"$element\":\"circle\",\"props\":{\"color\":\"#334155\",\"frame\":\"8\"},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"TUE\"]},{\"$element\":\"circle\",\"props\":{\"color\":\"#334155\",\"frame\":\"8\"},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"WED\"]},{\"$element\":\"circle\",\"props\":{\"color\":\"#334155\",\"frame\":\"8\"},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#ffffff\",\"font\":\"caption2\"},\"children\":[\"THU\"]},{\"$element\":\"circle\",\"props\":{\"color\":\"#60a5fa\",\"frame\":\"8\"},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"FRI\"]},{\"$element\":\"circle\",\"props\":{\"color\":\"#334155\",\"frame\":\"8\"},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"spacing\":\"4\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"SAT\"]},{\"$element\":\"circle\",\"props\":{\"color\":\"#334155\",\"frame\":\"8\"},\"children\":[]}]}]}]}" }, "template/Wellness Dashboard" : { - "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#312e81\",\"frame\":\"max\",\"padding\":\"18\",\"spacing\":\"13\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"Wellness Today\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption\"},\"children\":[\"Small choices, steady energy\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"badge\",\"props\":{\"color\":\"#c4b5fd\",\"text\":\"CALM\"},\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"background\":\"#5b21b6\",\"corner\":\"15\",\"frame\":\"max\",\"padding\":\"14\",\"spacing\":\"14\"},\"children\":[{\"$element\":\"progress\",\"props\":{\"color\":\"#a78bfa\",\"frame\":\"76\",\"label\":\"79\",\"style\":\"circular\",\"thickness\":\"9\",\"total\":\"100\",\"trackColor\":\"#49356d\",\"value\":79},\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"4\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#c4b5fd\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"DAILY BALANCE\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title3\",\"weight\":\"bold\"},\"children\":[\"Good momentum\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#ddd6fe\",\"font\":\"caption\"},\"children\":[\"Add one glass and a short walk.\"]}]}]},{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"10\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#172033\",\"corner\":\"13\",\"frame\":\"max,92,leading\",\"padding\":\"11\",\"spacing\":\"5\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#818cf8\",\"size\":\"16\",\"systemName\":\"bed.double.fill\"},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"SLEEP\"]}]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title3\",\"weight\":\"bold\"},\"children\":[\"7.5h\"]},{\"$element\":\"progress\",\"props\":{\"color\":\"#818cf8\",\"thickness\":\"5\",\"total\":\"8\",\"trackColor\":\"#273449\",\"value\":7.5},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"8h target\"]}]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#172033\",\"corner\":\"13\",\"frame\":\"max,92,leading\",\"padding\":\"11\",\"spacing\":\"5\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#38bdf8\",\"size\":\"16\",\"systemName\":\"drop.fill\"},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"WATER\"]}]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title3\",\"weight\":\"bold\"},\"children\":[\"6/8\"]},{\"$element\":\"progress\",\"props\":{\"color\":\"#38bdf8\",\"thickness\":\"5\",\"total\":\"8\",\"trackColor\":\"#273449\",\"value\":6},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"glasses\"]}]}]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#172033\",\"corner\":\"13\",\"frame\":\"max,92,leading\",\"padding\":\"11\",\"spacing\":\"5\"},\"children\":[{\"$element\":\"hstack\",\"props\":{\"frame\":\"max\"},\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#34d399\",\"size\":\"16\",\"systemName\":\"figure.walk\"},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"MOVEMENT\"]}]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title3\",\"weight\":\"bold\"},\"children\":[\"6,840\"]},{\"$element\":\"progress\",\"props\":{\"color\":\"#34d399\",\"thickness\":\"5\",\"total\":\"10000\",\"trackColor\":\"#273449\",\"value\":6840},\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"10,000 step target\"]}]}]}" + "tree" : "{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#312e81\",\"frame\":\"max\",\"padding\":\"16\",\"spacing\":\"10\"},\"children\":[{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"2\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"title2\",\"weight\":\"bold\"},\"children\":[\"Wellness Today\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption\"},\"children\":[\"Small choices, steady energy\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"badge\",\"props\":{\"color\":\"#c4b5fd\",\"text\":\"CALM\"},\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"background\":\"#5b21b6\",\"corner\":\"15\",\"padding\":\"12\",\"spacing\":\"12\"},\"children\":[{\"$element\":\"progress\",\"props\":{\"color\":\"#a78bfa\",\"frame\":\"52\",\"label\":\"79\",\"style\":\"circular\",\"thickness\":\"7\",\"total\":\"100\",\"trackColor\":\"#49356d\",\"value\":79},\"children\":[]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"spacing\":\"3\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"#c4b5fd\",\"font\":\"caption\",\"weight\":\"bold\"},\"children\":[\"DAILY BALANCE\"]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"Good momentum\"]},{\"$element\":\"text\",\"props\":{\"color\":\"#ddd6fe\",\"font\":\"caption\"},\"children\":[\"Add one glass and a short walk.\"]}]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"hstack\",\"props\":{\"spacing\":\"10\"},\"children\":[{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#172033\",\"corner\":\"13\",\"frame\":\"max,74,leading\",\"padding\":\"10\",\"spacing\":\"5\"},\"children\":[{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#818cf8\",\"size\":\"16\",\"systemName\":\"bed.double.fill\"},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"SLEEP\"]}]},{\"$element\":\"hstack\",\"props\":{\"alignment\":\"bottom\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"7.5h\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"8h target\"]}]},{\"$element\":\"progress\",\"props\":{\"color\":\"#818cf8\",\"thickness\":\"5\",\"total\":\"8\",\"trackColor\":\"#273449\",\"value\":7.5},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#172033\",\"corner\":\"13\",\"frame\":\"max,74,leading\",\"padding\":\"10\",\"spacing\":\"5\"},\"children\":[{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#38bdf8\",\"size\":\"16\",\"systemName\":\"drop.fill\"},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"WATER\"]}]},{\"$element\":\"hstack\",\"props\":{\"alignment\":\"bottom\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"6/8\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"glasses\"]}]},{\"$element\":\"progress\",\"props\":{\"color\":\"#38bdf8\",\"thickness\":\"5\",\"total\":\"8\",\"trackColor\":\"#273449\",\"value\":6},\"children\":[]}]}]},{\"$element\":\"vstack\",\"props\":{\"alignment\":\"leading\",\"background\":\"#172033\",\"corner\":\"13\",\"frame\":\"max,74,leading\",\"padding\":\"10\",\"spacing\":\"5\"},\"children\":[{\"$element\":\"hstack\",\"props\":null,\"children\":[{\"$element\":\"icon\",\"props\":{\"color\":\"#34d399\",\"size\":\"16\",\"systemName\":\"figure.walk\"},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"MOVEMENT\"]}]},{\"$element\":\"hstack\",\"props\":{\"alignment\":\"bottom\"},\"children\":[{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"headline\",\"weight\":\"bold\"},\"children\":[\"6,840\"]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"text\",\"props\":{\"color\":\"#94a3b8\",\"font\":\"caption2\"},\"children\":[\"10,000 step target\"]}]},{\"$element\":\"progress\",\"props\":{\"color\":\"#34d399\",\"thickness\":\"5\",\"total\":\"10000\",\"trackColor\":\"#273449\",\"value\":6840},\"children\":[]}]}]}" }, "template/World Clock Faces" : { "tree" : "{\"$element\":\"hstack\",\"props\":{\"background\":\"black\",\"padding\":\"14\",\"spacing\":\"6\"},\"children\":[[{\"$element\":\"vstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"4\"},\"children\":[{\"$element\":\"zstack\",\"props\":{\"frame\":\"62,62\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"62,62\"},\"children\":[]},[{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":0,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":30,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":60,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":90,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":120,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":150,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":180,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":210,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":240,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":270,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":300,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":330,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}],{\"$element\":\"vstack\",\"props\":{\"frame\":\"3.1,62\",\"rotation\":120,\"spacing\":\"0\"},\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"3.1,17.360000000000003\"},\"children\":[]},{\"$element\":\"rect\",\"props\":{\"color\":\"clear\",\"frame\":\"3.1,31\"},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2.1700000000000004,62\",\"rotation\":0,\"spacing\":\"0\"},\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"2.1700000000000004,24.8\"},\"children\":[]},{\"$element\":\"rect\",\"props\":{\"color\":\"clear\",\"frame\":\"2.1700000000000004,31\"},\"children\":[]}]},{\"$element\":\"circle\",\"props\":{\"color\":\"#FF9F0A\",\"frame\":\"4.96,4.96\"},\"children\":[]}]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"caption\",\"fontWeight\":\"semibold\"},\"children\":[\"Cupertino\"]},null,{\"$element\":\"text\",\"props\":{\"color\":\"#8E8E93\",\"font\":\"caption2\"},\"children\":[\"Local\"]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"4\"},\"children\":[{\"$element\":\"zstack\",\"props\":{\"frame\":\"62,62\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#F2F2F7\",\"frame\":\"62,62\"},\"children\":[]},[{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":0,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":30,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":60,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":90,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":120,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":150,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":180,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":210,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":240,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":270,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":300,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":330,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}],{\"$element\":\"vstack\",\"props\":{\"frame\":\"3.1,62\",\"rotation\":210,\"spacing\":\"0\"},\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"3.1,17.360000000000003\"},\"children\":[]},{\"$element\":\"rect\",\"props\":{\"color\":\"clear\",\"frame\":\"3.1,31\"},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2.1700000000000004,62\",\"rotation\":0,\"spacing\":\"0\"},\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"2.1700000000000004,24.8\"},\"children\":[]},{\"$element\":\"rect\",\"props\":{\"color\":\"clear\",\"frame\":\"2.1700000000000004,31\"},\"children\":[]}]},{\"$element\":\"circle\",\"props\":{\"color\":\"#FF9F0A\",\"frame\":\"4.96,4.96\"},\"children\":[]}]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"caption\",\"fontWeight\":\"semibold\"},\"children\":[\"New York\"]},null,{\"$element\":\"text\",\"props\":{\"color\":\"#8E8E93\",\"font\":\"caption2\"},\"children\":[\"+3H\"]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"4\"},\"children\":[{\"$element\":\"zstack\",\"props\":{\"frame\":\"62,62\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#F2F2F7\",\"frame\":\"62,62\"},\"children\":[]},[{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":0,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":30,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":60,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":90,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":120,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":150,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":180,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":210,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":240,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":270,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":300,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":330,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}],{\"$element\":\"vstack\",\"props\":{\"frame\":\"3.1,62\",\"rotation\":0,\"spacing\":\"0\"},\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"3.1,17.360000000000003\"},\"children\":[]},{\"$element\":\"rect\",\"props\":{\"color\":\"clear\",\"frame\":\"3.1,31\"},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2.1700000000000004,62\",\"rotation\":0,\"spacing\":\"0\"},\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"capsule\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"2.1700000000000004,24.8\"},\"children\":[]},{\"$element\":\"rect\",\"props\":{\"color\":\"clear\",\"frame\":\"2.1700000000000004,31\"},\"children\":[]}]},{\"$element\":\"circle\",\"props\":{\"color\":\"#FF9F0A\",\"frame\":\"4.96,4.96\"},\"children\":[]}]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"caption\",\"fontWeight\":\"semibold\"},\"children\":[\"London\"]},null,{\"$element\":\"text\",\"props\":{\"color\":\"#8E8E93\",\"font\":\"caption2\"},\"children\":[\"+8H\"]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"max\",\"spacing\":\"4\"},\"children\":[{\"$element\":\"zstack\",\"props\":{\"frame\":\"62,62\"},\"children\":[{\"$element\":\"circle\",\"props\":{\"color\":\"#1C1C1E\",\"frame\":\"62,62\"},\"children\":[]},[{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":0,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":30,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":60,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":90,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":120,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":150,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":180,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":210,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":240,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":270,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"2,5.58\",\"opacity\":1},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":300,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2,56\",\"rotation\":330,\"spacing\":\"0\"},\"children\":[{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"1.5,3.1\",\"opacity\":0.4},\"children\":[]},{\"$element\":\"spacer\",\"props\":null,\"children\":[]}]}],{\"$element\":\"vstack\",\"props\":{\"frame\":\"3.1,62\",\"rotation\":240,\"spacing\":\"0\"},\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"3.1,17.360000000000003\"},\"children\":[]},{\"$element\":\"rect\",\"props\":{\"color\":\"clear\",\"frame\":\"3.1,31\"},\"children\":[]}]},{\"$element\":\"vstack\",\"props\":{\"frame\":\"2.1700000000000004,62\",\"rotation\":0,\"spacing\":\"0\"},\"children\":[{\"$element\":\"spacer\",\"props\":null,\"children\":[]},{\"$element\":\"capsule\",\"props\":{\"color\":\"white\",\"frame\":\"2.1700000000000004,24.8\"},\"children\":[]},{\"$element\":\"rect\",\"props\":{\"color\":\"clear\",\"frame\":\"2.1700000000000004,31\"},\"children\":[]}]},{\"$element\":\"circle\",\"props\":{\"color\":\"#FF9F0A\",\"frame\":\"4.96,4.96\"},\"children\":[]}]},{\"$element\":\"text\",\"props\":{\"color\":\"white\",\"font\":\"caption\",\"fontWeight\":\"semibold\"},\"children\":[\"Beijing\"]},null,{\"$element\":\"text\",\"props\":{\"color\":\"#8E8E93\",\"font\":\"caption2\"},\"children\":[\"+16H\"]}]}]]}" diff --git a/docs/images/platforms/android-editor.webp b/docs/images/platforms/android-editor.webp new file mode 100644 index 00000000..f0484892 Binary files /dev/null and b/docs/images/platforms/android-editor.webp differ diff --git a/docs/images/platforms/android-home.webp b/docs/images/platforms/android-home.webp new file mode 100644 index 00000000..70a37850 Binary files /dev/null and b/docs/images/platforms/android-home.webp differ diff --git a/docs/images/platforms/android-widgets.webp b/docs/images/platforms/android-widgets.webp new file mode 100644 index 00000000..bcc4c582 Binary files /dev/null and b/docs/images/platforms/android-widgets.webp differ diff --git a/docs/images/platforms/ipad-editor.webp b/docs/images/platforms/ipad-editor.webp new file mode 100644 index 00000000..4b9c91b4 Binary files /dev/null and b/docs/images/platforms/ipad-editor.webp differ diff --git a/docs/images/platforms/iphone-editor.webp b/docs/images/platforms/iphone-editor.webp new file mode 100644 index 00000000..911937a6 Binary files /dev/null and b/docs/images/platforms/iphone-editor.webp differ diff --git a/docs/images/platforms/iphone-templates.webp b/docs/images/platforms/iphone-templates.webp new file mode 100644 index 00000000..62e9fa39 Binary files /dev/null and b/docs/images/platforms/iphone-templates.webp differ diff --git a/docs/images/platforms/linux-desktop.webp b/docs/images/platforms/linux-desktop.webp new file mode 100644 index 00000000..ac5cebe8 Binary files /dev/null and b/docs/images/platforms/linux-desktop.webp differ diff --git a/docs/images/platforms/linux-editor.webp b/docs/images/platforms/linux-editor.webp new file mode 100644 index 00000000..2b7573a6 Binary files /dev/null and b/docs/images/platforms/linux-editor.webp differ diff --git a/docs/images/platforms/linux-templates.webp b/docs/images/platforms/linux-templates.webp new file mode 100644 index 00000000..99a958c2 Binary files /dev/null and b/docs/images/platforms/linux-templates.webp differ diff --git a/docs/images/platforms/mac-studio.webp b/docs/images/platforms/mac-studio.webp new file mode 100644 index 00000000..d9e56fa1 Binary files /dev/null and b/docs/images/platforms/mac-studio.webp differ diff --git a/docs/images/platforms/web-studio.webp b/docs/images/platforms/web-studio.webp new file mode 100644 index 00000000..acbf9e01 Binary files /dev/null and b/docs/images/platforms/web-studio.webp differ diff --git a/docs/images/platforms/windows-desktop.webp b/docs/images/platforms/windows-desktop.webp new file mode 100644 index 00000000..c6851779 Binary files /dev/null and b/docs/images/platforms/windows-desktop.webp differ diff --git a/docs/images/platforms/windows-editor.webp b/docs/images/platforms/windows-editor.webp new file mode 100644 index 00000000..0e58a56d Binary files /dev/null and b/docs/images/platforms/windows-editor.webp differ diff --git a/docs/linux/README.md b/docs/linux/README.md index ef5defa1..fb20d40d 100644 --- a/docs/linux/README.md +++ b/docs/linux/README.md @@ -47,8 +47,11 @@ sh install.sh ## Using it - **Add a widget.** Open ScriptWidget from the launcher or the bar entry, open a template, choose "Use this template", then "Add to desktop". From a terminal: `scriptwidget install <folder or .swt>`, then `scriptwidget add <name> --family medium`. -- **Move a widget.** Right-click the ScriptWidget entry in the bar and turn on "Arrange widgets" (or run `scriptwidget arrange`). Drag widgets; they snap to the screen edges and stay out of the bar and the dock. Turn it off when done. Outside this mode only buttons, toggles and links react; clicks anywhere else on a widget go through to the desktop. -- **Change its size, edit or remove it.** In arrange mode, right-click the widget. +- **Change its size, edit, refresh or remove it.** Right-click the widget. + + ![The menu of a widget](images/widget-menu.png) +- **Move a widget.** Right-click it and choose "Move widgets…" (or turn on "Arrange widgets" in the bar entry, or run `scriptwidget arrange`). Drag widgets; they snap to the screen edges and stay out of the bar and the dock. Right-click and choose "Done moving" when done. +- **Click.** A left click works on buttons, toggles and links; elsewhere on a widget it does nothing. - **See widgets above your windows.** "Show widgets on top" in the bar entry, or `scriptwidget peek`; once more puts them back. - **Edit.** The preview next to the code is drawn by the same painter as the desktop widget. `scriptwidget dev <folder>` watches a folder and refreshes the placed widgets of that package on save. - **Move a widget to another device.** Export it as a `.swt` file and open that file in ScriptWidget on the other device; a `.swt` from another device is imported the same way. diff --git a/docs/linux/TODO.md b/docs/linux/TODO.md index a1bac3a4..e35cff1e 100644 --- a/docs/linux/TODO.md +++ b/docs/linux/TODO.md @@ -17,7 +17,7 @@ The plan is in [plan.md](plan.md) (Chinese); what was tested is in [testing.md]( - **Screens.** No message tells the service a display went away: a widget on a display that is gone is shown on the first display at the same coordinates, still drawn at the old display's scale until it is moved. Dragging a widget from one display to another has code but never ran. - **Time zone changes** are not noticed until the next refresh. - **Management window:** closing it with unsaved changes does not ask (moving to another page does); no "new file" button; the components and API reference pages of the Windows app are missing; changing the refresh interval writes the setting but does not tell the running service; in the test machine the editor's blinking cursor costs a quarter of a core under software rendering. -- **Plugin:** frames do not pause behind ordinary windows or on the lock screen; the bar entry starts `scriptwidget-studio` without checking that it exists; widgets are not moved when the dock appears later; the Chinese strings were not seen on screen. +- **Plugin:** a widget takes the pointer over its whole area, so while widgets are shown on top the windows under them cannot be clicked through them; frames do not pause behind ordinary windows or on the lock screen; the bar entry starts `scriptwidget-studio` without checking that it exists; widgets are not moved when the dock appears later; the Chinese strings were not seen on screen. - **Service:** real suspend and resume and the path that drops a slow display were not exercised; `doctor` does not ask the plugin for its status. - `docs/platform-support.md`, the website and Web Studio list Linux; the root README files do not yet. diff --git a/docs/linux/images/widget-menu.png b/docs/linux/images/widget-menu.png new file mode 100644 index 00000000..08f2278d Binary files /dev/null and b/docs/linux/images/widget-menu.png differ diff --git a/docs/linux/protocol.md b/docs/linux/protocol.md index 2fe328e7..811a265e 100644 --- a/docs/linux/protocol.md +++ b/docs/linux/protocol.md @@ -42,7 +42,7 @@ One JSON object a line, UTF-8, each with a string member `event`. A display igno Examples, exactly as printed: ``` -{"event":"hello","protocol":1,"dark":false,"arrange":false,"peek":false,"service":"0.1.2"} +{"event":"hello","protocol":1,"dark":false,"arrange":false,"peek":false,"service":"0.1.3"} {"event":"widget","id":"5ef2d5c170089ecf","screen":"eDP-1","x":40,"y":40,"width":329,"height":170,"image":"/run/user/1000/scriptwidget/frames/5ef2d5c170089ecf-1d639a55-3.png","version":3,"regions":[{"n":0,"x":16,"y":120,"width":96,"height":34}],"family":"medium","families":["small","medium","large"]} {"event":"widget","id":"c45467fe6c9c2b4a","screen":"","x":68,"y":68,"width":170,"height":170,"image":"/run/user/1000/scriptwidget/frames/c45467fe6c9c2b4a-1d639a55-1-0.png","version":1,"regions":[],"frames":[{"image":"/run/user/1000/scriptwidget/frames/c45467fe6c9c2b4a-1d639a55-1-0.png","ms":200},{"image":"/run/user/1000/scriptwidget/frames/c45467fe6c9c2b4a-1d639a55-1-1.png","ms":300}],"family":"small","families":["small","medium","large","extraLarge"]} {"event":"remove","id":"5ef2d5c170089ecf"} diff --git a/docs/linux/testing.md b/docs/linux/testing.md index 81f9ae6b..65d7e586 100644 --- a/docs/linux/testing.md +++ b/docs/linux/testing.md @@ -393,6 +393,90 @@ Omarchy 的空闲锁屏在这台机器上是关着的(`omarchy-toggle-idle` 所以"重启电脑 → 登录 → 小组件自己回到桌面"这一整条通过。之前试过用会话管理器(`uwsm`)在 SSH 里起一个无屏会话来代替登录,它的环境预加载步骤失败了,没有成。 +## 2026-11-18,第二台测试虚拟机:0.1.3(右键菜单,以及一个会让外壳崩溃的问题) + +机器同上,会话是重启后用户登录的真实会话。 + +### 用户反馈:小组件点了没反应,右键也没反应 + +属实。0.1.2 及之前:只有按钮、开关、链接的区域接收鼠标,其余地方的点击穿透到桌面;右键菜单只在摆放模式里有。桌面上四个小组件里三个没有按钮,所以怎么点都没有反应。 + +0.1.3 改成:整个小组件都接收鼠标;左键点在按钮区域是点击,点在别处什么都不做;右键点在小组件任何位置都弹出菜单(改尺寸、编辑、刷新、移除),菜单里多一项"Move widgets…"进入摆放模式,摆放模式里这一项变成"Done moving"。代价是小组件提到最上层时,它下面的窗口不再能透过小组件被点到。 + +| 检查(真实会话,虚拟指针) | 结果 | +| --- | --- | +| 在日历(没有按钮)上右键 | 菜单出现,八项;截图在 `images/widget-menu.png` | +| 选一个尺寸 | 日历变成那个尺寸,菜单关闭 | +| 在心情小组件的按钮上左键 | 脚本重新运行 | +| 右键选"Move widgets…" | 进入摆放模式;拖动时钟,位置保存 | +| 摆放模式里右键选"Done moving" | 退出摆放模式,四个窗口回到 `bottom` 层 | + +### 发现:0.1.2 在显示器增减时会让 Omarchy 外壳崩溃 + +检查脚本因为"工作区不是空的"拒绝运行,一看是六个"Quickshell has crashed"的报告窗口。`~/.cache/quickshell/crashes` 里一共七份崩溃报告:两份在 02:58:49 和 02:59:09,五份在 05:14:07 到 05:14:42,都是段错误,栈里是 QML 绑定更新,起点是读子进程的输出。时间都对得上我在增减虚拟显示器的时候。 + +原因:0.1.2 为了"显示器断开后小组件回到主屏",在小组件窗口的"屏幕变了"信号里把窗口藏一下再显示。但外壳在显示窗口的过程中也会报这个信号,于是在绑定更新的中途又改了窗口的可见性,Quickshell 在这里崩溃。外壳崩溃后 Omarchy 会自动把它重新拉起来,所以 0.1.2 当时的测试结果看上去是通过的;崩溃报告窗口开在别的工作区,没被看到。前两份崩溃报告就是 0.1.2 的这段代码产生的。 + +0.1.3 的做法:不再理会窗口自己的"屏幕变了",改为在显示器列表变化(`Quickshell.screens` 变了)时把每个小组件窗口藏一下再显示。 + +| 检查 | 结果 | +| --- | --- | +| 六轮:加一块虚拟显示器、把两个小组件移过去、拔掉显示器 | 每轮四个窗口都在,拔掉后回到主屏;外壳的进程号没变;没有新的崩溃报告 | +| 缩放 2、1.5、1 | 都跟上,没有新的崩溃报告 | +| 外壳启动时的"Binding loop"警告 | 0.1.2 的写法每个窗口一条,0.1.3 没有 | +| 插件的检查脚本,新增"显示器增减"一组五项(含外壳进程号不变、没有新的崩溃报告),并按新的鼠标行为改了三项、加了四项 | 74 项里 74 项通过 | + +教训记在这里:外壳崩溃后会被自动重启,光看"小组件还在"发现不了崩溃。检查脚本现在比对外壳的进程号和崩溃报告的数量。 +## 2026-11-18,模板里放不下的文字 + +Linux、Windows 和 Android 用 Inter 画字,比苹果的系统字体宽一点;共用的排版放不下的字会被截掉并加上"…"。在 Linux 上看到的是 Month Calendar 的大尺寸把"November"画成"Novem…"。这一轮把随应用带的模板都查了一遍,改的是模板本身,所以每个平台都受益。 + +这些都是在 Mac 上跑的(macOS 27.2,Apple 芯片,Rust 1.98.1,Node 24.21.0,ICU 79.1),没有在虚拟机或真实的 Linux 上跑。Mac 上没有 Linux 的系统字体,但 Inter 是程序自带的,这里要查的正是它。 + +### 检查的办法 + +```sh +node Linux/scripts/build-shared-js.mjs +cd Linux && cargo build --release -p sw-cli && cargo build --release -p sw-render --example layout_tree +node Linux/scripts/find-truncated-text.mjs --pictures <目录> --json <文件> +``` + +(Mac 上的 `cargo` 要加 `PKG_CONFIG_PATH="$(brew --prefix icu4c)/lib/pkgconfig"`。) + +脚本把 `Script.bundle` 里的每个包复制一份,在每个源文件前面放一个固定时间的 `Date`,用命令行在四个桌面尺寸各运行一次,再用新加的 `layout_tree` 例子只排版、不画,然后在排好的元素里找四种情况:被截断(以"…"结尾)、被框裁掉、一两个词的短文字被折成多行、文字的框超出小组件。时间选了五个:9 月 16 日周三 12:59("September"、"Wednesday"、"12:59 PM"、一年的第 259 天还剩 106 天)、11 月 18 日周三 20:48、8 月 29 日周六 22:48(跨六周的月份)、12 月 30 日 23:59、1 月 1 日 00:00。找到的只是候选,每一个都看了画出来的图再判断。 + +### 结果 + +| 检查 | 结果 | +| --- | --- | +| 改之前 | 140 个包,2800 次运行里 2766 次排了版;45 个包有候选 | +| 改之后 | 140 个包,2800 次运行里 2778 次排了版;29 个包有候选,都不在模板自己支持的尺寸上,或者是有意的省略,见下 | +| 改了的模板(22 个) | Month Calendar、Daily Command Center、Family Command Board、Travel Day Dashboard、Wellness Dashboard、World Clock Faces、Year in Dots、An Empty Widget、Birthday Countdown、Check Is Friday Today、Check Is Working Day Today、Condition Content、Daily Affirmation、Datetime Timezone、Layout Starter、Location Snapshot、Meal Planner、Music Playback、System Insights、Text Days To End Of Month、Text Days to End Of Year、Text Year Days Left。`scriptwidget new` 的起始模板和 An Empty Widget 是同一个样子,也一起改了 | +| Month Calendar,大尺寸,11 月的周三 | 改之前标题是"Novem… 2026 Wednesday",改之后是"November 2026 Wed";跨六周的月份(2026 年 8 月)改之前日程的最后一行超出小组件,改之后格子变小、整体不超出 | +| 苹果的参考树 | 在 iOS 27.2 模拟器(iPhone 18 Pro Max)上用 JavaScriptCore 重新生成了 `native-trees.json`、`music-playback-trees.json`、`layout-edit-trees.json`;`native-trees.json` 变了 18 项,只有树变了。macOS 的测试程序在沙盒里,写不了仓库里的文件,所以生成用的是模拟器;之后在 macOS 上不带生成开关跑了 `BrowserPreviewParityTests`、`MusicRuntimeTests`、`VisualLayoutEditorTests`、`RuntimeExecutionTests`:154 个里 11 个跳过(都是要开关才导出的测试),没有失败 | +| `cd Web/preview-engine && npm test` | 199 个通过 | +| `cd Web/studio && npm test`、`cd Editor/editorfe && npm test` | 114 个通过、52 个通过 | +| `cargo test --locked --workspace`(Mac) | 506 个通过,1 个忽略;与 JavaScriptCore 的树对比 127/127 相同 | +| `./gradlew :core:testDebugUnitTest --rerun`(Mac,JDK 21) | 482 个通过 | +| `node Scripts/validate-release.mjs`、`validate-doc-links.mjs`、`sync-gallery-templates.mjs`、`node --test Scripts/tests/*.mjs` | 都通过(Gallery 里的 Layout Starter 和 Music Playback 用 `--write` 同步过) | + +哪个尺寸算"模板支持的":模板读了 `widget-size` 并按尺寸分支的,每个尺寸都算;只有一种排法的模板,按 `Resource/WidgetDemoScreenshots` 里它的截图的尺寸算(有 `widget.json` 的按它声明的算)。 + +### 留下没改的候选 + +- 只有一种排法、截图是中等或大尺寸的模板,在小尺寸上放不下:Animation Clock、Battery & Brightness、Daily Command Center、Datetime Current、Datetime Timezone、Device Battery Percent、Family Command Board、Live Activity Demo、Monthly Budget Planner、Open Link、Personal Dashboard、Pomodoro Focus、Reading Goal、Shape、Sleep Schedule、Sunrise & Sunset、System Insights、Text Today Week、Travel Day Dashboard、Weekly Planner、Wellness Dashboard;大尺寸的 Travel Day Dashboard 和 Wellness Dashboard 在中等尺寸上也放不下。这不是字体的问题:用苹果的系统字体量同一段文字,绝大多数也放不下。要给它们各做一个小尺寸的排法,这次没做。 +- `api/` 下的示例(health、location、storage、system):逐行列出数值的示例,`api/system` 有 14 行,中等尺寸放不下,大尺寸放得下;另外三个只是标题在小尺寸折成两行。 +- New Episode Tracker:节目名画在固定 200 点宽的框里,长名字被省略是有意的,而且内容来自网络。 +- Now Playing 特大尺寸的"Midnight Drive"、Image Basic Usage 小尺寸的"Photo spotlight":两个词在空格处折成两行,没有被截断。 +- Hydration Goal iCloud:Linux 没有 iCloud,画的是出错时的卡片,里面是任意长的错误信息,小尺寸上被省略。 + +### 没跑的 + +- 要联网的模板在这台 Mac 上能跑的都跑了,但内容取决于当时的网络;Daily Quote 每次都没有画出来(返回的不是 JSON),Stock Snapshot、New Episode Tracker、Weather Display 各有一轮超过 5 秒没有画出来。 +- 没有在苹果的系统上把改过的模板画成图来看:`Tools/ScriptWidgetPreview` 现在编不过(工程里缺新加的存储源文件)。"在苹果上不变差"是按排版规则和用系统字体量出的宽度判断的,不是看图。 +- Windows 的测试、Android 的真机测试、`Scripts/release-readiness.sh`、Web Studio 的浏览器冒烟测试都没跑。 +- Text Year Days Left 算的是到下一年 1 月 31 日的天数(`new Date(year, 12, 31)`),比"今年还剩"多 31 天;这次没改。 + ## 没跑的(汇总) - 真实的 Linux 电脑、真实的 x86_64 处理器、真实显卡、Omarchy 以外的桌面。