Improve images resizing quality accross the board

- Using mipmap: true and smooth: true for images that are downscaled
(avatar, icons, ...)
- Using mipmap: false and smooth: true for images that are potentially
upscaled (background, overview, ...)
This commit is contained in:
Sébastien Atoch 2025-08-02 21:04:26 -04:00
parent 02e6367d73
commit 260c74b3e0
12 changed files with 19 additions and 7 deletions

View file

@ -347,6 +347,7 @@ PanelWithOverlay {
anchors.fill: parent
fillMode: Image.PreserveAspectFit
smooth: true
mipmap: true
cache: false
asynchronous: true
source: modelData.isCalculator ? "qrc:/icons/calculate.svg" : Quickshell.iconPath(modelData.icon, "application-x-executable")

View file

@ -115,6 +115,8 @@ PopupWindow {
Image {
Layout.preferredWidth: 16
Layout.preferredHeight: 16
smooth: true
mipmap: true
source: modelData?.icon ?? ""
visible: (modelData?.icon ?? "") !== ""
fillMode: Image.PreserveAspectFit

View file

@ -54,6 +54,7 @@ Item {
anchors.margins: 1
fillMode: Image.PreserveAspectCrop
smooth: true
mipmap: true
cache: false
asynchronous: true
sourceSize.width: 24

View file

@ -75,6 +75,7 @@ Item {
anchors.centerIn: parent
source: getAppIcon(modelData)
smooth: true
mipmap: true
visible: source.toString() !== ""
}