diff options
| author | AlexanderCurl <alexc@alexc.hu> | 2026-04-18 17:46:06 +0100 |
|---|---|---|
| committer | AlexanderCurl <alexc@alexc.hu> | 2026-04-18 17:46:06 +0100 |
| commit | 70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69 (patch) | |
| tree | ab1123d4067c1b086dd6faa7ee4ea643236b565a /raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modals/Clipboard/ClipboardHistoryPopout.qml | |
| parent | 5d94c0a7d44a2255b81815a52a7056a94a39842d (diff) | |
| download | RaveOS-PKGBUILD-70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69.tar.gz RaveOS-PKGBUILD-70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69.zip | |
Replaced file structures for themes in the correct format
Diffstat (limited to 'raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modals/Clipboard/ClipboardHistoryPopout.qml')
| -rw-r--r-- | raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modals/Clipboard/ClipboardHistoryPopout.qml | 197 |
1 files changed, 0 insertions, 197 deletions
diff --git a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modals/Clipboard/ClipboardHistoryPopout.qml b/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modals/Clipboard/ClipboardHistoryPopout.qml deleted file mode 100644 index c4f0296..0000000 --- a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modals/Clipboard/ClipboardHistoryPopout.qml +++ /dev/null @@ -1,197 +0,0 @@ -pragma ComponentBehavior: Bound - -import QtQuick -import qs.Common -import qs.Modals.Clipboard -import qs.Modals.Common -import qs.Services -import qs.Widgets - -DankPopout { - id: root - - layerNamespace: "dms:clipboard-popout" - - property var parentWidget: null - property var triggerScreen: null - property string activeTab: "recents" - property bool showKeyboardHints: false - property int activeImageLoads: 0 - readonly property int maxConcurrentLoads: 3 - - readonly property bool clipboardAvailable: ClipboardService.clipboardAvailable - readonly property bool wtypeAvailable: ClipboardService.wtypeAvailable - readonly property int totalCount: ClipboardService.totalCount - readonly property var clipboardEntries: ClipboardService.clipboardEntries - readonly property var pinnedEntries: ClipboardService.pinnedEntries - readonly property int pinnedCount: ClipboardService.pinnedCount - readonly property var unpinnedEntries: ClipboardService.unpinnedEntries - readonly property int selectedIndex: ClipboardService.selectedIndex - readonly property bool keyboardNavigationActive: ClipboardService.keyboardNavigationActive - property string searchText: ClipboardService.searchText - onSearchTextChanged: ClipboardService.searchText = searchText - - readonly property var modalFocusScope: contentLoader.item ?? null - - Ref { - service: ClipboardService - } - - function updateFilteredModel() { - ClipboardService.updateFilteredModel(); - } - - function pasteSelected() { - ClipboardService.pasteSelected(instantClose); - } - - function instantClose() { - close(); - } - - function show() { - open(); - activeImageLoads = 0; - ClipboardService.reset(); - if (clipboardAvailable) - ClipboardService.refresh(); - keyboardController.reset(); - - Qt.callLater(function () { - if (contentLoader.item?.searchField) { - contentLoader.item.searchField.text = ""; - contentLoader.item.searchField.forceActiveFocus(); - } - }); - } - - function hide() { - close(); - activeImageLoads = 0; - ClipboardService.reset(); - keyboardController.reset(); - } - - function refreshClipboard() { - ClipboardService.refresh(); - } - - function copyEntry(entry) { - ClipboardService.copyEntry(entry, hide); - } - - function deleteEntry(entry) { - ClipboardService.deleteEntry(entry); - } - - function deletePinnedEntry(entry) { - ClipboardService.deletePinnedEntry(entry, clearConfirmDialog); - } - - function pinEntry(entry) { - ClipboardService.pinEntry(entry); - } - - function unpinEntry(entry) { - ClipboardService.unpinEntry(entry); - } - - function clearAll() { - ClipboardService.clearAll(); - } - - function getEntryPreview(entry) { - return ClipboardService.getEntryPreview(entry); - } - - function getEntryType(entry) { - return ClipboardService.getEntryType(entry); - } - - popupWidth: ClipboardConstants.popoutWidth - popupHeight: ClipboardConstants.popoutHeight - triggerWidth: 55 - positioning: "" - screen: triggerScreen - shouldBeVisible: false - contentHandlesKeys: true - - onBackgroundClicked: hide() - - onShouldBeVisibleChanged: { - if (!shouldBeVisible) - return; - if (clipboardAvailable) - ClipboardService.refresh(); - keyboardController.reset(); - Qt.callLater(function () { - if (contentLoader.item?.searchField) { - contentLoader.item.searchField.text = ""; - contentLoader.item.searchField.forceActiveFocus(); - } - }); - } - - onPopoutClosed: { - activeImageLoads = 0; - ClipboardService.reset(); - keyboardController.reset(); - } - - ClipboardKeyboardController { - id: keyboardController - modal: root - } - - ConfirmModal { - id: clearConfirmDialog - confirmButtonText: I18n.tr("Clear All") - confirmButtonColor: Theme.primary - } - - property var confirmDialog: clearConfirmDialog - - content: Component { - FocusScope { - id: contentFocusScope - - LayoutMirroring.enabled: I18n.isRtl - LayoutMirroring.childrenInherit: true - - focus: true - - property alias searchField: clipboardContentItem.searchField - - Keys.onPressed: function (event) { - keyboardController.handleKey(event); - } - - Component.onCompleted: { - if (root.shouldBeVisible) - forceActiveFocus(); - } - - Connections { - target: root - function onShouldBeVisibleChanged() { - if (root.shouldBeVisible) { - Qt.callLater(() => contentFocusScope.forceActiveFocus()); - } - } - function onOpened() { - Qt.callLater(() => { - if (clipboardContentItem.searchField) { - clipboardContentItem.searchField.forceActiveFocus(); - } - }); - } - } - - ClipboardContent { - id: clipboardContentItem - modal: root - clearConfirmDialog: root.confirmDialog - } - } - } -} |