diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-01-10 17:29:29 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-01-10 17:29:29 -0500 |
| commit | 3ee6dcd9611986864e78df8dd06cc364e346f4a6 (patch) | |
| tree | beb0e2959e66b7f0f5a57d3377b339b8381f6181 /components/filedialog/DialogButtons.qml | |
| parent | remove more things, make lock screen use wallpaper not screenshot (diff) | |
| download | caelestia-shell-3ee6dcd9611986864e78df8dd06cc364e346f4a6.tar.gz caelestia-shell-3ee6dcd9611986864e78df8dd06cc364e346f4a6.tar.bz2 caelestia-shell-3ee6dcd9611986864e78df8dd06cc364e346f4a6.zip | |
remove more things again lol
Diffstat (limited to 'components/filedialog/DialogButtons.qml')
| -rw-r--r-- | components/filedialog/DialogButtons.qml | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/components/filedialog/DialogButtons.qml b/components/filedialog/DialogButtons.qml deleted file mode 100644 index bde9ac2..0000000 --- a/components/filedialog/DialogButtons.qml +++ /dev/null @@ -1,93 +0,0 @@ -import ".." -import qs.services -import qs.config -import QtQuick.Layouts - -StyledRect { - id: root - - required property var dialog - required property FolderContents folder - - implicitHeight: inner.implicitHeight + Appearance.padding.normal * 2 - - color: Colours.tPalette.m3surfaceContainer - - RowLayout { - id: inner - - anchors.fill: parent - anchors.margins: Appearance.padding.normal - - spacing: Appearance.spacing.small - - StyledText { - text: qsTr("Filter:") - } - - StyledRect { - Layout.fillWidth: true - Layout.fillHeight: true - Layout.rightMargin: Appearance.spacing.normal - - color: Colours.tPalette.m3surfaceContainerHigh - radius: Appearance.rounding.small - - StyledText { - anchors.fill: parent - anchors.margins: Appearance.padding.normal - - text: `${root.dialog.filterLabel} (${root.dialog.filters.map(f => `*.${f}`).join(", ")})` - } - } - - StyledRect { - color: Colours.tPalette.m3surfaceContainerHigh - radius: Appearance.rounding.small - - implicitWidth: cancelText.implicitWidth + Appearance.padding.normal * 2 - implicitHeight: cancelText.implicitHeight + Appearance.padding.normal * 2 - - StateLayer { - disabled: !root.dialog.selectionValid - - function onClicked(): void { - root.dialog.accepted(root.folder.currentItem.modelData.path); - } - } - - StyledText { - id: selectText - - anchors.centerIn: parent - anchors.margins: Appearance.padding.normal - - text: qsTr("Select") - color: root.dialog.selectionValid ? Colours.palette.m3onSurface : Colours.palette.m3outline - } - } - - StyledRect { - color: Colours.tPalette.m3surfaceContainerHigh - radius: Appearance.rounding.small - - implicitWidth: cancelText.implicitWidth + Appearance.padding.normal * 2 - implicitHeight: cancelText.implicitHeight + Appearance.padding.normal * 2 - - StateLayer { - function onClicked(): void { - root.dialog.rejected(); - } - } - - StyledText { - id: cancelText - - anchors.centerIn: parent - anchors.margins: Appearance.padding.normal - - text: qsTr("Cancel") - } - } - } -} |