diff options
| author | Nippy <nippy@rp1.hu> | 2026-05-08 19:50:49 +0200 |
|---|---|---|
| committer | Nippy <nippy@rp1.hu> | 2026-05-08 19:50:49 +0200 |
| commit | 3462bcc46ecf74f576ea4397f16492c16bd75b10 (patch) | |
| tree | c5ab7aef4498647e057bda8d49c11e5f9dda74c9 /raveos-hyprland-theme/theme-data/dms/Modals/Clipboard/ClipboardHeader.qml | |
| parent | 56616f693b4f263cbf0d47da43b67424efa6022d (diff) | |
| download | RaveOS-PKGBUILD-3462bcc46ecf74f576ea4397f16492c16bd75b10.tar.gz RaveOS-PKGBUILD-3462bcc46ecf74f576ea4397f16492c16bd75b10.zip | |
raveos update
Diffstat (limited to 'raveos-hyprland-theme/theme-data/dms/Modals/Clipboard/ClipboardHeader.qml')
| -rw-r--r-- | raveos-hyprland-theme/theme-data/dms/Modals/Clipboard/ClipboardHeader.qml | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/raveos-hyprland-theme/theme-data/dms/Modals/Clipboard/ClipboardHeader.qml b/raveos-hyprland-theme/theme-data/dms/Modals/Clipboard/ClipboardHeader.qml new file mode 100644 index 0000000..fedba15 --- /dev/null +++ b/raveos-hyprland-theme/theme-data/dms/Modals/Clipboard/ClipboardHeader.qml @@ -0,0 +1,87 @@ +import QtQuick +import qs.Common +import qs.Widgets +import qs.Modals.Clipboard + +Item { + id: header + + property int totalCount: 0 + property bool showKeyboardHints: false + property string activeTab: "recents" + property int pinnedCount: 0 + + signal keyboardHintsToggled + signal clearAllClicked + signal closeClicked + signal tabChanged(string tabName) + + height: ClipboardConstants.headerHeight + + Row { + anchors.left: parent.left + anchors.verticalCenter: parent.verticalCenter + spacing: Theme.spacingM + + DankIcon { + name: "content_paste" + size: Theme.iconSize + color: Theme.primary + anchors.verticalCenter: parent.verticalCenter + } + + StyledText { + text: I18n.tr("Clipboard History") + ` (${totalCount})` + font.pixelSize: Theme.fontSizeLarge + color: Theme.surfaceText + font.weight: Font.Medium + anchors.verticalCenter: parent.verticalCenter + } + } + + Row { + anchors.right: parent.right + anchors.verticalCenter: parent.verticalCenter + spacing: Theme.spacingS + + DankActionButton { + iconName: "push_pin" + iconSize: Theme.iconSize - 4 + iconColor: header.activeTab === "saved" ? Theme.primary : Theme.surfaceText + visible: header.pinnedCount > 0 + tooltipText: I18n.tr("Saved") + onClicked: tabChanged("saved") + } + + DankActionButton { + iconName: "history" + iconSize: Theme.iconSize - 4 + iconColor: header.activeTab === "recents" ? Theme.primary : Theme.surfaceText + tooltipText: I18n.tr("History") + onClicked: tabChanged("recents") + } + + DankActionButton { + iconName: "info" + iconSize: Theme.iconSize - 4 + iconColor: showKeyboardHints ? Theme.primary : Theme.surfaceText + tooltipText: I18n.tr("Keyboard Shortcuts") + onClicked: keyboardHintsToggled() + } + + DankActionButton { + iconName: "delete_sweep" + iconSize: Theme.iconSize + iconColor: Theme.surfaceText + tooltipText: I18n.tr("Clear All") + onClicked: clearAllClicked() + } + + DankActionButton { + iconName: "close" + iconSize: Theme.iconSize - 4 + iconColor: Theme.surfaceText + onClicked: closeClicked() + } + } +} |