diff --git a/Boateye.qml b/Boateye.qml new file mode 100644 index 0000000..b4756cb --- /dev/null +++ b/Boateye.qml @@ -0,0 +1,67 @@ +import Quickshell +import Quickshell.Wayland +import Quickshell.Widgets +import Quickshell.Io + +import QtQuick +import QtQuick.Effects + +PanelWindow { + id: root + visible: false + anchors { + left: true + bottom: true + } + implicitHeight: 540 + implicitWidth: 540 + color: "transparent" + + IpcHandler { + target: "boateye" + function open() {root.visible = true} + function close() {root.visible = false} + } + + RectangularShadow { + anchors.fill: wrapper + radius: wrapper.radius + blur: 10 + spread: 2 + } + ClippingRectangle { + color: "#181818" + anchors { + left: parent.left + bottom: parent.bottom + margins: 12 + } + width: 500 + height: 500 + id: wrapper + radius: 12 + Item { + anchors.fill: parent + ScreencopyView { + width: Quickshell.screens[0].width + height: Quickshell.screens[0].height + live: true + captureSource: Quickshell.screens[0] + x: -1292 + y: -450 + } + transform: Scale { + origin { + x: width/2 + y: height/2 + } + xScale: 15 + yScale: 10 + } + } + Image { + anchors.fill: parent + source: "/home/spingus/Pictures/boateye.png" + } + } +} diff --git a/Launcher.qml b/Launcher.qml index 4486696..40b6011 100644 --- a/Launcher.qml +++ b/Launcher.qml @@ -70,6 +70,7 @@ PanelWindow { RectangularShadow { z: -1 anchors.fill: parent + radius: 12 blur: 10 spread: 2 } diff --git a/shell.qml b/shell.qml index 04faa88..b0644e4 100644 --- a/shell.qml +++ b/shell.qml @@ -4,4 +4,5 @@ import "." as Shell ShellRoot { Shell.Wall {} Shell.Launcher {} + Shell.Boateye {} }