config moved to c++ plugin, removed old qml + fileview implementation

This commit is contained in:
2026-08-13 02:25:26 +02:00
parent c29b91cd26
commit 3cd3209b28
341 changed files with 4851 additions and 3502 deletions
+7 -6
View File
@@ -1,8 +1,9 @@
import QtQuick
import qs.Modules.Lock.Weather
import qs.Config
import ZShell.Config
import qs.Components
import qs.Helpers
import qs.Services
CustomRect {
id: root
@@ -10,14 +11,14 @@ CustomRect {
required property int rootHeight
readonly property bool showForecast: rootHeight >= 700
color: DynamicColors.tPalette.m3surfaceContainer
color: Colors.tPalette.m3surfaceContainer
implicitHeight: {
const base = brief.implicitHeight + brief.anchors.topMargin;
if (showForecast)
return base + Appearance.spacing.large + forecast.implicitHeight + forecast.anchors.margins;
return base + Tokens.spacing.large + forecast.implicitHeight + forecast.anchors.margins;
return base + brief.anchors.topMargin;
}
radius: Appearance.rounding.small
radius: Tokens.rounding.small
Timer {
interval: 900000 // 15 minutes
@@ -33,7 +34,7 @@ CustomRect {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: Appearance.padding.extraLarge
anchors.topMargin: Tokens.padding.extraLarge
rootHeight: root.rootHeight
}
@@ -43,7 +44,7 @@ CustomRect {
active: root.showForecast
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.margins: Appearance.padding.large
anchors.margins: Tokens.padding.large
anchors.right: parent.right
asynchronous: true