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
+19 -23
View File
@@ -8,7 +8,8 @@ import QtQuick.Layouts
import QtQuick.Controls
import qs.Components
import qs.Modules
import qs.Config
import ZShell.Config
import qs.Services
Scope {
id: root
@@ -43,7 +44,6 @@ Scope {
Anim {
id: openAnim
duration: MaterialEasing.expressiveEffectsTime
property: "opacity"
target: inputPanel
to: 1
@@ -52,7 +52,6 @@ Scope {
Anim {
id: closeAnim
duration: MaterialEasing.expressiveEffectsTime
property: "opacity"
target: inputPanel
to: 0
@@ -78,11 +77,11 @@ Scope {
id: inputPanel
anchors.centerIn: parent
color: DynamicColors.tPalette.m3surface
color: Colors.tPalette.m3surface
implicitHeight: layout.childrenRect.height + 28
implicitWidth: layout.childrenRect.width + 32
opacity: 0
radius: Appearance.rounding.small * 2
radius: Tokens.rounding.small * 2
ColumnLayout {
id: layout
@@ -138,7 +137,7 @@ Scope {
CustomText {
Layout.alignment: Qt.AlignLeft
Layout.preferredWidth: Math.min(600, contentWidth)
color: DynamicColors.tPalette.m3onSurfaceVariant
color: Colors.tPalette.m3onSurfaceVariant
font.bold: true
font.pointSize: 12
text: polkitAgent.flow?.supplementaryMessage || "No Additional Information"
@@ -150,16 +149,16 @@ Scope {
Layout.preferredHeight: 40
Layout.preferredWidth: contentColumn.implicitWidth
color: DynamicColors.palette.m3onSurfaceVariant
color: Colors.palette.m3onSurfaceVariant
echoMode: polkitAgent.flow?.responseVisible ? TextInput.Normal : TextInput.Password
placeholderText: polkitAgent.flow?.failed ? " Incorrect Password" : " Input Password"
placeholderTextColor: polkitAgent.flow?.failed ? DynamicColors.palette.m3onError : DynamicColors.tPalette.m3onSurfaceVariant
placeholderTextColor: polkitAgent.flow?.failed ? Colors.palette.m3onError : Colors.tPalette.m3onSurfaceVariant
selectByMouse: true
background: CustomRect {
color: (polkitAgent.flow?.failed && passInput.text === "") ? DynamicColors.palette.m3error : DynamicColors.tPalette.m3surfaceVariant
color: (polkitAgent.flow?.failed && passInput.text === "") ? Colors.palette.m3error : Colors.tPalette.m3surfaceVariant
implicitHeight: 40
radius: Appearance.rounding.smallest
radius: Tokens.rounding.smallest
}
onAccepted: okButton.clicked()
@@ -188,7 +187,7 @@ Scope {
Layout.fillWidth: true
Layout.preferredHeight: implicitHeight
clip: true
color: DynamicColors.tPalette.m3surfaceContainerLow
color: Colors.tPalette.m3surfaceContainerLow
implicitHeight: 0
radius: 16
visible: true
@@ -196,21 +195,18 @@ Scope {
Behavior on open {
ParallelAnimation {
Anim {
duration: MaterialEasing.expressiveEffectsTime
property: "implicitHeight"
target: detailsPanel
to: !detailsPanel.open ? textDetailsColumn.childrenRect.height + 16 : 0
}
Anim {
duration: MaterialEasing.expressiveEffectsTime
property: "opacity"
target: textDetailsColumn
to: !detailsPanel.open ? 1 : 0
}
Anim {
duration: MaterialEasing.expressiveEffectsTime
property: "scale"
target: textDetailsColumn
to: !detailsPanel.open ? 1 : 0.9
@@ -248,8 +244,8 @@ Scope {
Layout.alignment: Qt.AlignLeft
icon: "info"
inactiveColor: DynamicColors.palette.m3surfaceContainer
inactiveOnColor: DynamicColors.palette.m3onSurface
inactiveColor: Colors.palette.m3surfaceContainer
inactiveOnColor: Colors.palette.m3onSurface
isRound: true
shapeMorph: true
text: "Details"
@@ -267,16 +263,16 @@ Scope {
ButtonRow {
Layout.alignment: Qt.AlignRight
spacing: Appearance.spacing.normal
spacing: Tokens.spacing.normal
IconTextButton {
id: okButton
enabled: passInput.text.length > 0 || !!polkitAgent.flow?.isResponseRequired
horizontalPadding: Appearance.padding.large
horizontalPadding: Tokens.padding.large
icon: "check"
inactiveColor: DynamicColors.palette.m3primary
inactiveOnColor: DynamicColors.palette.m3onPrimary
inactiveColor: Colors.palette.m3primary
inactiveOnColor: Colors.palette.m3onPrimary
isRound: true
isToggle: false
shapeMorph: true
@@ -294,10 +290,10 @@ Scope {
id: cancelButton
enabled: passInput.text.length > 0 || !!polkitAgent.flow?.isResponseRequired
horizontalPadding: Appearance.padding.large
horizontalPadding: Tokens.padding.large
icon: "close"
inactiveColor: DynamicColors.palette.m3surfaceContainer
inactiveOnColor: DynamicColors.palette.m3onSurface
inactiveColor: Colors.palette.m3surfaceContainer
inactiveOnColor: Colors.palette.m3onSurface
isRound: true
isToggle: false
shapeMorph: true