From 255006172f9079ddcd8e884edb69b12f47243cf4 Mon Sep 17 00:00:00 2001 From: vaguesyntax Date: Sat, 6 Dec 2025 00:22:13 +0300 Subject: [PATCH 1/3] fix: make thumbnail generator script actually work --- .../quickshell/ii/scripts/thumbnails/thumbgen-venv.sh | 5 ++--- dots/.config/quickshell/ii/scripts/thumbnails/thumbgen.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dots/.config/quickshell/ii/scripts/thumbnails/thumbgen-venv.sh b/dots/.config/quickshell/ii/scripts/thumbnails/thumbgen-venv.sh index fc7d8729e..a27b5ca1d 100755 --- a/dots/.config/quickshell/ii/scripts/thumbnails/thumbgen-venv.sh +++ b/dots/.config/quickshell/ii/scripts/thumbnails/thumbgen-venv.sh @@ -2,6 +2,5 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source $(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate -"$SCRIPT_DIR/thumbgen.py" "$@" -deactivate - +GIO_USE_VFS=local "$SCRIPT_DIR/thumbgen.py" "$@" +deactivate \ No newline at end of file diff --git a/dots/.config/quickshell/ii/scripts/thumbnails/thumbgen.py b/dots/.config/quickshell/ii/scripts/thumbnails/thumbgen.py index 69f630721..92dd126f6 100755 --- a/dots/.config/quickshell/ii/scripts/thumbnails/thumbgen.py +++ b/dots/.config/quickshell/ii/scripts/thumbnails/thumbgen.py @@ -15,7 +15,7 @@ import gi from loguru import logger from tqdm import tqdm -gi.require_version("GnomeDesktop", "3.0") +gi.require_version("GnomeDesktop", "4.0") from gi.repository import Gio, GnomeDesktop # isort:skip thumbnail_size_map = { From fa47c6778cc370b25b4056fdf9ba7f4e253cd3f3 Mon Sep 17 00:00:00 2001 From: vaguesyntax Date: Sat, 6 Dec 2025 00:26:36 +0300 Subject: [PATCH 2/3] wallpaper selector: add thumbnail loading indicator --- .../ii/wallpaperSelector/WallpaperDirectoryItem.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dots/.config/quickshell/ii/modules/ii/wallpaperSelector/WallpaperDirectoryItem.qml b/dots/.config/quickshell/ii/modules/ii/wallpaperSelector/WallpaperDirectoryItem.qml index 23f7915ef..f0a53bf39 100644 --- a/dots/.config/quickshell/ii/modules/ii/wallpaperSelector/WallpaperDirectoryItem.qml +++ b/dots/.config/quickshell/ii/modules/ii/wallpaperSelector/WallpaperDirectoryItem.qml @@ -11,6 +11,7 @@ MouseArea { required property var fileModelData property bool isDirectory: fileModelData.fileIsDir property bool useThumbnail: Images.isValidImageByName(fileModelData.fileName) + property bool showLoadingIndicator: false property alias colBackground: background.color property alias colText: wallpaperItemName.color @@ -69,6 +70,8 @@ MouseArea { sourceSize.width: wallpaperItemColumnLayout.width sourceSize.height: wallpaperItemColumnLayout.height - wallpaperItemColumnLayout.spacing - wallpaperItemName.height + onVisibleChanged: root.showLoadingIndicator = !thumbnailImage.visible + Connections { target: Wallpapers function onThumbnailGenerated(directory) { @@ -106,6 +109,15 @@ MouseArea { sourceSize.height: wallpaperItemColumnLayout.height - wallpaperItemColumnLayout.spacing - wallpaperItemName.height } } + + FadeLoader { + id: loadingIndicatorLoader + shown: root.showLoadingIndicator + anchors.centerIn: parent + sourceComponent: MaterialLoadingIndicator { + loading: true + } + } } StyledText { From 536c1ab4657909bec035176334b9408e311117d7 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 14 Dec 2025 09:43:59 +0100 Subject: [PATCH 3/3] Revert "wallpaper selector: add thumbnail loading indicator" This reverts commit fa47c6778cc370b25b4056fdf9ba7f4e253cd3f3. --- .../ii/wallpaperSelector/WallpaperDirectoryItem.qml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/ii/wallpaperSelector/WallpaperDirectoryItem.qml b/dots/.config/quickshell/ii/modules/ii/wallpaperSelector/WallpaperDirectoryItem.qml index f0a53bf39..23f7915ef 100644 --- a/dots/.config/quickshell/ii/modules/ii/wallpaperSelector/WallpaperDirectoryItem.qml +++ b/dots/.config/quickshell/ii/modules/ii/wallpaperSelector/WallpaperDirectoryItem.qml @@ -11,7 +11,6 @@ MouseArea { required property var fileModelData property bool isDirectory: fileModelData.fileIsDir property bool useThumbnail: Images.isValidImageByName(fileModelData.fileName) - property bool showLoadingIndicator: false property alias colBackground: background.color property alias colText: wallpaperItemName.color @@ -70,8 +69,6 @@ MouseArea { sourceSize.width: wallpaperItemColumnLayout.width sourceSize.height: wallpaperItemColumnLayout.height - wallpaperItemColumnLayout.spacing - wallpaperItemName.height - onVisibleChanged: root.showLoadingIndicator = !thumbnailImage.visible - Connections { target: Wallpapers function onThumbnailGenerated(directory) { @@ -109,15 +106,6 @@ MouseArea { sourceSize.height: wallpaperItemColumnLayout.height - wallpaperItemColumnLayout.spacing - wallpaperItemName.height } } - - FadeLoader { - id: loadingIndicatorLoader - shown: root.showLoadingIndicator - anchors.centerIn: parent - sourceComponent: MaterialLoadingIndicator { - loading: true - } - } } StyledText {