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
+16 -15
View File
@@ -2,8 +2,9 @@ pragma ComponentBehavior: Bound
import QtQuick
import ZShell.Components
import qs.Config
import ZShell.Config
import qs.Components
import qs.Services
Item {
id: root
@@ -32,8 +33,8 @@ Item {
drawing.drawingState.penColor = Qt.hsva(huePicker.currentHue, saturationSlider.value, brightnessSlider.value, drawing.drawingState.penColor.a);
}
implicitHeight: column.height + Appearance.padding.larger * 2
implicitWidth: huePicker.implicitWidth + Appearance.padding.normal * 2
implicitHeight: column.height + Tokens.padding.larger * 2
implicitWidth: huePicker.implicitWidth + Tokens.padding.normal * 2
Component.onCompleted: syncFromPenColor()
@@ -96,7 +97,7 @@ Item {
anchors.left: parent.left
anchors.right: parent.right
spacing: Appearance.spacing.normal
spacing: Tokens.spacing.normal
Repeater {
model: root.colors1
@@ -112,7 +113,7 @@ Item {
anchors.left: parent.left
anchors.right: parent.right
spacing: Appearance.spacing.normal
spacing: Tokens.spacing.normal
Repeater {
model: root.colors2
@@ -140,14 +141,14 @@ Item {
ButtonRow {
anchors.left: parent.left
anchors.right: parent.right
spacing: Appearance.spacing.small
spacing: Tokens.spacing.small
IconTextButton {
fillWidth: true
font.pointSize: Appearance.font.size.normal
font.pointSize: Tokens.font.size.normal
icon: "close"
inactiveColor: DynamicColors.palette.m3error
inactiveOnColor: DynamicColors.palette.m3onError
inactiveColor: Colors.palette.m3error
inactiveOnColor: Colors.palette.m3onError
isRound: true
shapeMorph: true
text: "Exit"
@@ -157,10 +158,10 @@ Item {
IconTextButton {
fillWidth: true
font.pointSize: Appearance.font.size.normal
font.pointSize: Tokens.font.size.normal
icon: "ink_eraser"
inactiveColor: DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHighest, 2)
inactiveOnColor: DynamicColors.palette.m3onSurfaceVariant
inactiveColor: Colors.layer(Colors.palette.m3surfaceContainerHighest, 2)
inactiveOnColor: Colors.palette.m3onSurfaceVariant
isRound: true
shapeMorph: true
text: "Clear"
@@ -171,7 +172,7 @@ Item {
}
IconButton {
anchors.margins: Appearance.padding.normal
anchors.margins: Tokens.padding.normal
anchors.right: parent.right
anchors.top: parent.top
checked: root.wrapper.pinned
@@ -192,12 +193,12 @@ Item {
required property ButtonRow row
fillWidth: false
font.pointSize: Appearance.font.size.normal
font.pointSize: Tokens.font.size.normal
icon: ""
implicitHeight: buttonSize
implicitWidth: buttonSize
inactiveColor: modelData
inactiveOnColor: DynamicColors.on(modelData)
inactiveOnColor: Colors.on(modelData)
isRound: true
shapeMorph: true
shapeMorphExpansion: pressed ? 12 : 0
+6 -6
View File
@@ -4,7 +4,7 @@ import Quickshell
import QtQuick
import qs.Components
import qs.Helpers
import qs.Config
import ZShell.Config
import qs.Daemons
Item {
@@ -48,14 +48,14 @@ Item {
Behavior on implicitWidth {
Anim {
duration: Appearance.anim.durations.expressiveDefaultSpatial
easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial
duration: Tokens.anim.durations.expressiveDefaultSpatial
easing.bezierCurve: Tokens.anim.curves.expressiveDefaultSpatial
}
}
Behavior on offsetScale {
Anim {
duration: Appearance.anim.durations.expressiveDefaultSpatial
easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial
duration: Tokens.anim.durations.expressiveDefaultSpatial
easing.bezierCurve: Tokens.anim.curves.expressiveDefaultSpatial
}
}
@@ -78,7 +78,7 @@ Item {
}
}
sourceComponent: MaterialIcon {
font.pointSize: Appearance.font.size.larger
font.pointSize: Tokens.font.size.larger
text: "arrow_forward_ios"
}
}