booru image click to open sourcee

This commit is contained in:
end-4
2025-04-28 23:59:49 +02:00
parent f24cd8fa35
commit 5de8414b64
@@ -4,6 +4,7 @@ import "root:/modules/common/widgets"
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import Quickshell.Hyprland
import Qt5Compat.GraphicalEffects
Button {
@@ -15,6 +16,10 @@ Button {
PointingHandInteraction {}
onClicked: {
Hyprland.dispatch(`exec xdg-open ${imageData.source}`)
}
background: Rectangle {
implicitWidth: imageData.width
implicitHeight: imageData.height