popouts fixed for real
This commit is contained in:
@@ -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
@@ -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
@@ -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 {
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user