From c14e5fcac27082d6245f8356e66f74093016d087 Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Thu, 9 Oct 2025 16:19:36 +0200 Subject: [PATCH] Launcher no opacity & open via IPC --- launcher/Launcher.qml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/launcher/Launcher.qml b/launcher/Launcher.qml index d6e63f3..98dfaba 100644 --- a/launcher/Launcher.qml +++ b/launcher/Launcher.qml @@ -3,13 +3,13 @@ import QtQuick import QtQuick.Layouts import QtQuick.Controls import Quickshell.Wayland -import Quickshell.Hyprland +import Quickshell.Io import "root:/singeltons" PanelWindow { id: root - property bool show: true + property bool show: false implicitWidth: 600 implicitHeight: 400 @@ -20,14 +20,18 @@ PanelWindow { WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive WlrLayershell.layer: WlrLayer.Top - HyprlandWindow.opacity: 0.9 + IpcHandler { + target: "launcher" + + function open(): void {root.show = true; } + } // Main window Rectangle { anchors.fill: parent anchors.centerIn: parent - color: Qt.hsla(0, 0, 1, 0.5) + color: "#363a4f" border.color: Qt.hsla(0, 0, 1, 0.2) border.width: 2 radius: 12