summaryrefslogtreecommitdiff
path: root/components/images
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-01-10 17:29:29 -0500
committerFreya Murphy <freya@freyacat.org>2026-01-22 08:34:36 -0500
commit27d0b3d993ed5f91aeab317df7539b50dd3634b7 (patch)
tree261ebd5e0152d1d2014af34a9cfc7551a8bec10f /components/images
parentremove more things, make lock screen use wallpaper not screenshot (diff)
downloadcaelestia-shell-27d0b3d993ed5f91aeab317df7539b50dd3634b7.tar.gz
caelestia-shell-27d0b3d993ed5f91aeab317df7539b50dd3634b7.tar.bz2
caelestia-shell-27d0b3d993ed5f91aeab317df7539b50dd3634b7.zip
remove more things again lol
Diffstat (limited to 'components/images')
-rw-r--r--components/images/CachingIconImage.qml42
-rw-r--r--components/images/CachingImage.qml28
2 files changed, 0 insertions, 70 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
- }
- }
-}
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)
- }
-}