sfl 1.6 Style tpl_canvas { fill: "#03040f" } DataSource clock { mode: record fields { hour: int minute: int second: int day: int weekday: string } } DataSource battery { mode: record fields { level: float } onTick: level <- when(level >= 100, 0, level + 2 * time.delta) } Shader Plasma { program: plasmaGauge color: "#06081f" lowColor: "#ff2d2d" highColor: "#2dff6a" progress: <- battery.level / 100 start: 90 sweep: 360 intensity: 0.67 speed: 0.5 } Style Gauge { shape: circle fill: "#06081f" shader: Plasma } Model watch { device: watch screen: 0, 0, 300, 300 screenColor: "#06081f" Shape gauge : Gauge { layout { position: 10, 10 size: 280, 280 order: 0 } } Component scale { type: tickScale value: <- battery.level max: 100 layout { position: 0, 0 size: 300, 300 order: 1 } style { start: 90 sweep: 360 color: "#3a3f73" lowColor: "#ff2d2d" highColor: "#2dff6a" ticks: 50 major: 5 radius: 0.97 length: 0.035 thickness: 0.004 } } Component level { type: rollingNumber value: <- round(battery.level) duration: 420 layout { position: 80, 96 size: 140, 88 order: 2 } style { color: "#ffffff" fontFamily: "Roboto Mono, monospace" variant: plain fontSize: 58 fontWeight: 300 } } Text unit { text: "BATTERY" layout { position: 90, 186 size: 120, 18 order: 2 } style { fontSize: 10 fontWeight: 700 textColor: "#c7c9d9" textAlign: center letterSpacing: 3 } } Text time { text: <- when(clock.hour < 10, "0" + clock.hour, "" + clock.hour) + ":" + when(clock.minute < 10, "0" + clock.minute, "" + clock.minute) layout { position: 100, 66 size: 100, 20 order: 2 } style { fontSize: 13 fontWeight: 500 textColor: "#a9acc4" textAlign: center letterSpacing: 1 } } }