quickshell: decode notification previews at thumbnail size
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
4321956410
commit
35f3828715
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue