fix: swap image to iconimage for icons for better quality

This commit is contained in:
ferreo 2025-07-12 13:42:58 +01:00
parent 8a07aeab2c
commit ae20ac3f3c
2 changed files with 6 additions and 7 deletions

View file

@ -3,6 +3,7 @@ import QtQuick.Layouts
import QtQuick.Controls
import Quickshell
import Quickshell.Services.SystemTray
import Quickshell.Widgets
Row {
property var bar
@ -41,16 +42,13 @@ Row {
}
}
Image {
IconImage {
id: trayIcon
anchors.centerIn: parent
width: 18
height: 18
sourceSize.width: 18
sourceSize.height: 18
smooth: false // Memory savings
asynchronous: true
cache: false
source: {
let icon = modelData?.icon || "";
if (!icon) return "";