From 44c05f57db5bdcc0a097e2518958730a8514b03d Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Thu, 27 Nov 2025 21:48:43 +0100 Subject: [PATCH] popouts fixed for real --- Drawers/Panels.qml | 2 ++ Modules/Content.qml | 4 +++- Modules/Launcher.qml | 12 ++---------- Modules/Wrapper.qml | 3 +++ 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Drawers/Panels.qml b/Drawers/Panels.qml index b845540..a065b86 100644 --- a/Drawers/Panels.qml +++ b/Drawers/Panels.qml @@ -21,6 +21,8 @@ Item { screen: root.screen + anchors.top: parent.top + x: { const off = currentCenter - nonAnimWidth / 2; const diff = root.width - Math.floor(off + nonAnimWidth); diff --git a/Modules/Content.qml b/Modules/Content.qml index c570410..91c58c3 100644 --- a/Modules/Content.qml +++ b/Modules/Content.qml @@ -77,7 +77,9 @@ Item { required property string name readonly property bool shouldBeActive: root.wrapper.currentName === name - anchors.centerIn: parent + anchors.top: parent.top + anchors.topMargin: 5 + anchors.horizontalCenter: parent.horizontalCenter opacity: 0 scale: 0.8 diff --git a/Modules/Launcher.qml b/Modules/Launcher.qml index 533266b..ae225b4 100644 --- a/Modules/Launcher.qml +++ b/Modules/Launcher.qml @@ -3,11 +3,10 @@ import Quickshell.Wayland import Quickshell.Hyprland import QtQuick import QtQuick.Controls -import QtQuick.Effects -import QtQuick.Layouts import qs.Config import qs.Helpers import qs.Effects +import qs.Paths Scope { id: root @@ -267,6 +266,7 @@ Scope { onCurrentItemChanged: { if ( currentItem ) SearchWallpapers.preview( currentItem.modelData.path ); + Quickshell.execDetached(["python3", Quickshell.shellPath("scripts/SchemeColorGen.py"), `--path=${currentItem.modelData.path}`, `--thumbnail=${Paths.cache}/imagecache/thumbnail.jpg`, `--output=${Paths.state}/scheme.json`]); } cacheItemCount: 5 @@ -374,14 +374,6 @@ Scope { appListView.delegate: noResultsItem } } - // State { - // name: "wallpaperpicker" - // PropertyChanges { - // appModel.values: SearchWallpapers.query( searchInput.text.split(" ").slice(1).join(" ") ) - // appListView.delegate: wallpaperItem - // appListView.orientation: ListView.Horizontal - // } - // } ] Component { diff --git a/Modules/Wrapper.qml b/Modules/Wrapper.qml index 733bfbd..e1c7e06 100644 --- a/Modules/Wrapper.qml +++ b/Modules/Wrapper.qml @@ -72,6 +72,9 @@ Item { shouldBeActive: root.hasCurrent asynchronous: true + anchors.top: parent.top + anchors.horizontalCenter: parent.horizontalCenter + sourceComponent: Content { wrapper: root }