From 392eaea5fcd12a6b5c8094aaab35584be54daf1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=E1=BB=B3nh=20Thi=E1=BB=87n=20L=E1=BB=99c?= Date: Wed, 13 May 2026 01:10:19 +0700 Subject: [PATCH] refactor(ClipboardHistory): Sync toggle button between saved and recent tabs (#2407) * fix(ClipboardHistory): toggle button now toggles between saved and recents tabs - Change tooltip text to reflect current tab state ('Recent' when on saved tab, 'Saved' when on recents tab) - Previously always switched to saved tab; now toggles between 'saved' and 'recents' * refactor(ClipboardHistory): remove redundant History button, keep single toggle button The Saved button now toggles between saved/recents tabs, so the separate History button is redundant and has been removed for a cleaner UI. --- quickshell/Modals/Clipboard/ClipboardHeader.qml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/quickshell/Modals/Clipboard/ClipboardHeader.qml b/quickshell/Modals/Clipboard/ClipboardHeader.qml index fedba154..366695ae 100644 --- a/quickshell/Modals/Clipboard/ClipboardHeader.qml +++ b/quickshell/Modals/Clipboard/ClipboardHeader.qml @@ -49,16 +49,8 @@ Item { 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") + tooltipText: header.activeTab === "saved" ? I18n.tr("Recent") : I18n.tr("Saved") + onClicked: tabChanged(header.activeTab === "saved" ? "recents" : "saved") } DankActionButton {