plugin: rust-side modules + theme services with serde-typed config

This commit is contained in:
Damocles 2026-05-04 22:58:12 +02:00
parent a86e90e927
commit f34f3f2f4e
95 changed files with 2477 additions and 1011 deletions

View file

@ -1,5 +1,6 @@
import QtQuick
import "../services" as S
import NovaStats as NS
Item {
id: root
@ -15,7 +16,7 @@ Item {
property bool _revealed: false
on_RawProgressChanged: if (_rawProgress >= 1)
_revealed = true
readonly property real _rawProgress: S.Theme.reducedMotion ? 1 : Math.max(0, Math.min(1, wavePhase / 300))
readonly property real _rawProgress: S.ThemeUtil.reducedMotion ? 1 : Math.max(0, Math.min(1, wavePhase / 300))
readonly property real _progress: (_revealed ? 1 : _rawProgress) * unlockFade
opacity: _progress
property real _slideX: (1 - _progress) * -80
@ -53,32 +54,32 @@ Item {
Text {
text: _clockRow._hours
color: S.Theme.base0C
color: NS.ThemeService.base0C
font.pixelSize: root._fontSize
font.family: S.Theme.fontFamily
font.family: NS.ThemeService.fontFamily
font.bold: true
}
Text {
text: ":"
color: S.Theme.base0E
color: NS.ThemeService.base0E
font.pixelSize: root._fontSize
font.family: S.Theme.fontFamily
font.family: NS.ThemeService.fontFamily
font.bold: true
}
Text {
text: _clockRow._minutes
color: S.Theme.base09
color: NS.ThemeService.base09
font.pixelSize: root._fontSize
font.family: S.Theme.fontFamily
font.family: NS.ThemeService.fontFamily
font.bold: true
}
}
Text {
text: Qt.formatDate(new Date(), "dddd, d MMMM")
color: S.Theme.base04
font.pixelSize: S.Theme.fontSize + 2
font.family: S.Theme.fontFamily
color: NS.ThemeService.base04
font.pixelSize: NS.ThemeService.fontSize + 2
font.family: NS.ThemeService.fontFamily
Timer {
interval: 60000