popouts fixed for real
This commit is contained in:
@@ -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);
|
||||
|
||||
+3
-1
@@ -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
|
||||
|
||||
+2
-10
@@ -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 {
|
||||
|
||||
@@ -72,6 +72,9 @@ Item {
|
||||
shouldBeActive: root.hasCurrent
|
||||
asynchronous: true
|
||||
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
||||
sourceComponent: Content {
|
||||
wrapper: root
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user