From 3ee6dcd9611986864e78df8dd06cc364e346f4a6 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 10 Jan 2026 17:29:29 -0500 Subject: remove more things again lol --- components/images/CachingIconImage.qml | 42 ---------------------------------- components/images/CachingImage.qml | 28 ----------------------- 2 files changed, 70 deletions(-) delete mode 100644 components/images/CachingIconImage.qml delete mode 100644 components/images/CachingImage.qml (limited to 'components/images') diff --git a/components/images/CachingIconImage.qml b/components/images/CachingIconImage.qml deleted file mode 100644 index 1acc6a1..0000000 --- a/components/images/CachingIconImage.qml +++ /dev/null @@ -1,42 +0,0 @@ -pragma ComponentBehavior: Bound - -import qs.utils -import Quickshell.Widgets -import QtQuick - -Item { - id: root - - readonly property int status: loader.item?.status ?? Image.Null - readonly property real actualSize: Math.min(width, height) - property real implicitSize - property url source - - implicitWidth: implicitSize - implicitHeight: implicitSize - - Loader { - id: loader - - anchors.fill: parent - sourceComponent: root.source ? root.source.toString().startsWith("image://icon/") ? iconImage : cachingImage : null - } - - Component { - id: cachingImage - - CachingImage { - path: Paths.toLocalFile(root.source) - fillMode: Image.PreserveAspectFit - } - } - - Component { - id: iconImage - - IconImage { - source: root.source - asynchronous: true - } - } -} diff --git a/components/images/CachingImage.qml b/components/images/CachingImage.qml deleted file mode 100644 index e8f957a..0000000 --- a/components/images/CachingImage.qml +++ /dev/null @@ -1,28 +0,0 @@ -import qs.utils -import Caelestia.Internal -import Quickshell -import QtQuick - -Image { - id: root - - property alias path: manager.path - - asynchronous: true - fillMode: Image.PreserveAspectCrop - - Connections { - target: QsWindow.window - - function onDevicePixelRatioChanged(): void { - manager.updateSource(); - } - } - - CachingImageManager { - id: manager - - item: root - cacheDir: Qt.resolvedUrl(Paths.imagecache) - } -} -- cgit v1.2.3-freya