From ae20ac3f3c5c7c8987c437f15be604a6c68adbdd Mon Sep 17 00:00:00 2001 From: ferreo Date: Sat, 12 Jul 2025 13:42:58 +0100 Subject: [PATCH] fix: swap image to iconimage for icons for better quality --- Bar/Modules/ActiveWindow.qml | 7 ++++--- Bar/Modules/SystemTray.qml | 6 ++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Bar/Modules/ActiveWindow.qml b/Bar/Modules/ActiveWindow.qml index 9216d07..3ee36ff 100644 --- a/Bar/Modules/ActiveWindow.qml +++ b/Bar/Modules/ActiveWindow.qml @@ -3,6 +3,7 @@ import Quickshell import qs.Components import qs.Settings import Quickshell.Wayland +import Quickshell.Widgets Item { id: activeWindowWrapper @@ -59,10 +60,10 @@ Item { anchors.top: parent.top anchors.horizontalCenter: parent.horizontalCenter - Image { + IconImage { id: icon - width: 10 - height: 10 + width: 12 + height: 12 anchors.left: parent.left anchors.leftMargin: 6 anchors.verticalCenter: parent.verticalCenter diff --git a/Bar/Modules/SystemTray.qml b/Bar/Modules/SystemTray.qml index 49ec9d2..7c00eeb 100644 --- a/Bar/Modules/SystemTray.qml +++ b/Bar/Modules/SystemTray.qml @@ -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 "";