diff options
| author | Nippy <nippy@rp1.hu> | 2026-05-09 13:33:09 +0200 |
|---|---|---|
| committer | Nippy <nippy@rp1.hu> | 2026-05-09 13:33:09 +0200 |
| commit | a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5 (patch) | |
| tree | 1a8769217f84bfe9d6216fafaadaf8cdd876d457 /raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modals/FileBrowser/FileBrowserSaveRow.qml | |
| parent | 34b9c34f982b2596cfa9e368a2d7f74e9a17477c (diff) | |
| download | RaveOS-PKGBUILD-a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5.tar.gz RaveOS-PKGBUILD-a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5.zip | |
raveos update
Diffstat (limited to 'raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modals/FileBrowser/FileBrowserSaveRow.qml')
| -rw-r--r-- | raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modals/FileBrowser/FileBrowserSaveRow.qml | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modals/FileBrowser/FileBrowserSaveRow.qml b/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modals/FileBrowser/FileBrowserSaveRow.qml deleted file mode 100644 index 6360c7f..0000000 --- a/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modals/FileBrowser/FileBrowserSaveRow.qml +++ /dev/null @@ -1,74 +0,0 @@ -import QtQuick -import qs.Common -import qs.Widgets - -Row { - id: saveRow - - property bool saveMode: false - property string defaultFileName: "" - property string currentPath: "" - - signal saveRequested(string filePath) - - height: saveMode ? 40 : 0 - visible: saveMode - spacing: Theme.spacingM - - DankTextField { - id: fileNameInput - - width: parent.width - saveButton.width - Theme.spacingM - height: 40 - text: defaultFileName - placeholderText: I18n.tr("Enter filename...") - ignoreLeftRightKeys: false - focus: saveMode - topPadding: Theme.spacingS - bottomPadding: Theme.spacingS - Component.onCompleted: { - if (saveMode) - Qt.callLater(() => { - forceActiveFocus() - }) - } - onAccepted: { - if (text.trim() !== "") { - var basePath = currentPath.replace(/^file:\/\//, '') - var fullPath = basePath + "/" + text.trim() - fullPath = fullPath.replace(/\/+/g, '/') - saveRequested(fullPath) - } - } - } - - StyledRect { - id: saveButton - - width: 80 - height: 40 - color: fileNameInput.text.trim() !== "" ? Theme.primary : Theme.surfaceVariant - radius: Theme.cornerRadius - - StyledText { - anchors.centerIn: parent - text: I18n.tr("Save") - color: fileNameInput.text.trim() !== "" ? Theme.primaryText : Theme.surfaceVariantText - font.pixelSize: Theme.fontSizeMedium - } - - StateLayer { - stateColor: Theme.primary - cornerRadius: Theme.cornerRadius - enabled: fileNameInput.text.trim() !== "" - onClicked: { - if (fileNameInput.text.trim() !== "") { - var basePath = currentPath.replace(/^file:\/\//, '') - var fullPath = basePath + "/" + fileNameInput.text.trim() - fullPath = fullPath.replace(/\/+/g, '/') - saveRequested(fullPath) - } - } - } - } -} |