aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/appearance
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/modules/appearance')
-rw-r--r--desktop/modules/appearance/WallpaperTab.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/desktop/modules/appearance/WallpaperTab.qml b/desktop/modules/appearance/WallpaperTab.qml
index b204c6c..640f1ef 100644
--- a/desktop/modules/appearance/WallpaperTab.qml
+++ b/desktop/modules/appearance/WallpaperTab.qml
@@ -339,6 +339,28 @@ Column {
}
}
+ // In the engine's list for the screen the
+ // picker targets (WallEngine.qml). Last, so it
+ // is above the pick MouseArea and takes its own
+ // click. Outlined, so it reads on a light
+ // image too.
+ Text {
+ readonly property bool on: WallEngine.listed(modelData, Wallpapers.target)
+ anchors { top: parent.top; right: parent.right; margins: 10 }
+ visible: on || thumbHover.hovered
+ // nf-md-heart, nf-md-heart_outline.
+ text: on ? "\u{F02D1}" : "\u{F02D5}"
+ color: on ? Theme.red : Theme.text
+ style: Text.Outline
+ styleColor: Qt.alpha(Theme.base, 0.6)
+ font { family: Theme.iconFamily; pixelSize: Theme.fontSize + 8 }
+ MouseArea {
+ anchors { fill: parent; margins: -4 }
+ cursorShape: Qt.PointingHandCursor
+ onClicked: WallEngine.toggle(modelData, Wallpapers.target)
+ }
+ }
+
}
}
}