quickshell: decode notification previews at thumbnail size

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-08-21 09:40:11 +01:00
parent 4321956410
commit 35f3828715

View file

@ -6902,6 +6902,12 @@ in
Image {
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
// Decode to thumbnail height: without this a
// screenshot notification keeps a full-resolution
// 3440x1440 texture (~19MB) resident for as long
// as it is tracked 30 retained notifications is
// half a gigabyte of VRAM for 48px previews.
sourceSize.height: 96
source: notifItem.previewSource
}
}
@ -7246,6 +7252,8 @@ in
Image {
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
// Same full-res-texture trap as the list preview.
sourceSize.height: 96
source: toastCard.previewSource
}
}