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
+9 -8
View File
@@ -2,12 +2,13 @@ import QtQuick
import QtQuick.Layouts
import QtQuick.Shapes
import qs.Components
import qs.Config
import ZShell.Config
import qs.Services
RowLayout {
id: root
property color accentColor: warning ? DynamicColors.palette.m3error : mainColor
property color accentColor: warning ? Colors.palette.m3error : mainColor
property real animatedPercentage: 0
readonly property real arcStartAngle: 0.75 * Math.PI
readonly property real arcSweep: 1.5 * Math.PI
@@ -16,12 +17,12 @@ RowLayout {
required property color mainColor
required property double percentage
property bool shown: true
property color usageColor: warning ? DynamicColors.palette.m3error : mainColor
property color usageColor: warning ? Colors.palette.m3error : mainColor
property bool warning: percentage * 100 >= warningThreshold
property int warningThreshold: 80
percentage: 0
spacing: Appearance.spacing.smaller
spacing: Tokens.spacing.smaller
Behavior on animatedPercentage {
Anim {
@@ -41,15 +42,15 @@ RowLayout {
Layout.preferredWidth: 16
color: root.iconColor
font.pointSize: Appearance.font.size.larger
font.pointSize: Tokens.font.size.larger
text: root.icon
}
CustomClippingRect {
Layout.preferredHeight: root.height - Appearance.padding.small
Layout.preferredHeight: root.height - Tokens.padding.small
Layout.preferredWidth: 4
color: DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHigh, 2)
radius: Appearance.rounding.full
color: Colors.layer(Colors.palette.m3surfaceContainerHigh, 2)
radius: Tokens.rounding.full
CustomRect {
id: fill