forked from Shinonome/dots-hyprland
booru image click to open sourcee
This commit is contained in:
@@ -4,6 +4,7 @@ import "root:/modules/common/widgets"
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
import Quickshell.Hyprland
|
||||||
import Qt5Compat.GraphicalEffects
|
import Qt5Compat.GraphicalEffects
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
@@ -15,6 +16,10 @@ Button {
|
|||||||
|
|
||||||
PointingHandInteraction {}
|
PointingHandInteraction {}
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
Hyprland.dispatch(`exec xdg-open ${imageData.source}`)
|
||||||
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
implicitWidth: imageData.width
|
implicitWidth: imageData.width
|
||||||
implicitHeight: imageData.height
|
implicitHeight: imageData.height
|
||||||
|
|||||||
Reference in New Issue
Block a user