popouts fixed for real

This commit is contained in:
Zacharias-Brohn
2025-11-27 21:48:43 +01:00
parent 67ad544359
commit 44c05f57db
4 changed files with 10 additions and 11 deletions
+2
View File
@@ -21,6 +21,8 @@ Item {
screen: root.screen screen: root.screen
anchors.top: parent.top
x: { x: {
const off = currentCenter - nonAnimWidth / 2; const off = currentCenter - nonAnimWidth / 2;
const diff = root.width - Math.floor(off + nonAnimWidth); const diff = root.width - Math.floor(off + nonAnimWidth);
+3 -1
View File
@@ -77,7 +77,9 @@ Item {
required property string name required property string name
readonly property bool shouldBeActive: root.wrapper.currentName === 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 opacity: 0
scale: 0.8 scale: 0.8
+2 -10
View File
@@ -3,11 +3,10 @@ import Quickshell.Wayland
import Quickshell.Hyprland import Quickshell.Hyprland
import QtQuick import QtQuick
import QtQuick.Controls import QtQuick.Controls
import QtQuick.Effects
import QtQuick.Layouts
import qs.Config import qs.Config
import qs.Helpers import qs.Helpers
import qs.Effects import qs.Effects
import qs.Paths
Scope { Scope {
id: root id: root
@@ -267,6 +266,7 @@ Scope {
onCurrentItemChanged: { onCurrentItemChanged: {
if ( currentItem ) if ( currentItem )
SearchWallpapers.preview( currentItem.modelData.path ); 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 cacheItemCount: 5
@@ -374,14 +374,6 @@ Scope {
appListView.delegate: noResultsItem 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 { Component {
+3
View File
@@ -72,6 +72,9 @@ Item {
shouldBeActive: root.hasCurrent shouldBeActive: root.hasCurrent
asynchronous: true asynchronous: true
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
sourceComponent: Content { sourceComponent: Content {
wrapper: root wrapper: root
} }