diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-23 16:30:10 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-23 16:30:10 +0200 |
| commit | eaa035f08d5e7fdcb6f90807ac6f59ab62e0c56b (patch) | |
| tree | 3babdf6ee4392394b6ca3751fc771472bbed3521 /desktop/modules/appearance/WallpaperTab.qml | |
| parent | 65b0560f987cbea29a758696205bdf8134bdd24b (diff) | |
| download | quickshell-eaa035f08d5e7fdcb6f90807ac6f59ab62e0c56b.tar.gz quickshell-eaa035f08d5e7fdcb6f90807ac6f59ab62e0c56b.zip | |
wallpaper: a heart on each thumbnail, for the companion's list
Shown on hover, and always on a listed one. It toggles the path in the
list file and leaves the rest of the file as it was.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/appearance/WallpaperTab.qml')
| -rw-r--r-- | desktop/modules/appearance/WallpaperTab.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/desktop/modules/appearance/WallpaperTab.qml b/desktop/modules/appearance/WallpaperTab.qml index a3b3c55..f86897b 100644 --- a/desktop/modules/appearance/WallpaperTab.qml +++ b/desktop/modules/appearance/WallpaperTab.qml @@ -12,6 +12,7 @@ import Quickshell import QtQuick import "../.." +import "../../companion" // Wallpapers by folder, staged per screen and set together with Apply, beside // a mock of the two screens above them. Sized by its host: the thumbnail list scrolls @@ -338,6 +339,23 @@ Column { color: Theme.subtext } } + + // The companion blushes at the hearted ones + // (companion/Admired.qml). After the pick + // MouseArea, so it takes the click. + Text { + readonly property bool on: Admired.listed(modelData) + anchors { top: parent.top; right: parent.right; margins: 10 } + visible: on || thumbHover.hovered + text: on ? "\u{F02D1}" : "\u{F02D5}" + color: on ? Theme.red : Theme.text + font { family: Theme.iconFamily; pixelSize: Theme.fontSize } + MouseArea { + anchors { fill: parent; margins: -4 } + cursorShape: Qt.PointingHandCursor + onClicked: Admired.toggle(modelData) + } + } } } } |
