1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-13 09:12:08 -04:00

clipboard: Fix pinned entry logic

- Add keyboard nav to pinned entries
- Fix wrong copied selection upon Enter
This commit is contained in:
purian23
2026-02-09 20:53:48 -05:00
parent a168b12bb2
commit 0922e3e459
7 changed files with 158 additions and 15 deletions

View File

@@ -19,6 +19,7 @@ Rectangle {
readonly property string entryType: modal ? modal.getEntryType(entry) : "text"
readonly property string entryPreview: modal ? modal.getEntryPreview(entry) : ""
readonly property bool hasPinnedDuplicate: !entry.pinned && modal ? modal.hashedPinnedEntry(entry.hash) : false
radius: Theme.cornerRadius
color: {
@@ -111,8 +112,8 @@ Rectangle {
DankActionButton {
iconName: "push_pin"
iconSize: Theme.iconSize - 6
iconColor: entry.pinned ? Theme.primary : Theme.surfaceText
backgroundColor: entry.pinned ? Theme.primarySelected : "transparent"
iconColor: (entry.pinned || hasPinnedDuplicate) ? Theme.primary : Theme.surfaceText
backgroundColor: (entry.pinned || hasPinnedDuplicate) ? Theme.primarySelected : "transparent"
onClicked: entry.pinned ? unpinRequested() : pinRequested()
}