This commit is contained in:
2026-02-09 23:45:59 +01:00
parent b9a590be69
commit a0b552e796
2 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -52,8 +52,8 @@ Singleton {
property string gifFolder: Quickshell.shellDir + "/Gifs"
property var scaling: 1
property int maxWidth: 200
property int maxHeight: 200
property int maxWidth: 1000
property int maxHeight: 1000
}
}
}
+6 -2
View File
@@ -15,7 +15,7 @@ Repeater {
required property int index
required property string modelData
function xPos(): void {
function xPos(): int {
let xPos = 0;
const item = gifRepeater.itemAt(index - 1);
if ( item ) xPos += item.x + item.width;
@@ -32,8 +32,12 @@ Repeater {
AnimatedImage {
id: gif
source: gifItem.modelData
// fillMode: Image.PreserveAspectFit
fillMode: Image.PreserveAspectFit
anchors.fill: parent
Component.onCompleted: {
var s = gifItem.modelData.split("/")
console.log(s[s.length - 1].split(".")[0])
}
}
Mouse {}