summaryrefslogtreecommitdiff
path: root/components/images/CachingIconImage.qml
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-01-10 17:29:29 -0500
committerFreya Murphy <freya@freyacat.org>2026-01-10 17:29:29 -0500
commit3ee6dcd9611986864e78df8dd06cc364e346f4a6 (patch)
treebeb0e2959e66b7f0f5a57d3377b339b8381f6181 /components/images/CachingIconImage.qml
parentremove more things, make lock screen use wallpaper not screenshot (diff)
downloadcaelestia-shell-3ee6dcd9611986864e78df8dd06cc364e346f4a6.tar.gz
caelestia-shell-3ee6dcd9611986864e78df8dd06cc364e346f4a6.tar.bz2
caelestia-shell-3ee6dcd9611986864e78df8dd06cc364e346f4a6.zip
remove more things again lol
Diffstat (limited to 'components/images/CachingIconImage.qml')
-rw-r--r--components/images/CachingIconImage.qml42
1 files changed, 0 insertions, 42 deletions
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
- }
- }
-}