From 688d9b6eed36dc6dc1fabf7a4969b95e414343e7 Mon Sep 17 00:00:00 2001 From: xujin Date: Thu, 17 Sep 2026 16:19:39 +0800 Subject: [PATCH] fix: adjust applet icon smoothing on rotation 1. Replace the static contentItem.smooth = false assignment with a Qt.binding in Component.onCompleted 2. Bind smooth to Math.round(contentItem.rotation) % 90 !== 0, enabling smoothing only when rotation is not a multiple of 90 degrees 3. Keep smoothing disabled at 0, 90, 180, and 270 degree orientations to preserve crisp, pixel-aligned rendering 4. Enable smoothing for arbitrary rotation angles to reduce jagged edges on rotated applet icons Log: Updated applet icon smoothing behavior to enable anti-aliasing only for non-90-degree rotations Influence: 1. Verify applet icons render sharply when rotation is exactly 0, 90, 180, or 270 degrees 2. Verify applet icons render smoothly without jagged edges at arbitrary rotation angles such as 45 or 30 degrees 3. Test rotation animations and transitions to ensure smoothing toggles without visual glitches 4. Confirm no QML binding errors or warnings appear in the console 5. Check behavior PMS: BUG-368093 --- panels/dock/AppletItemButton.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panels/dock/AppletItemButton.qml b/panels/dock/AppletItemButton.qml index 73979ea17..523b6fd86 100644 --- a/panels/dock/AppletItemButton.qml +++ b/panels/dock/AppletItemButton.qml @@ -41,6 +41,8 @@ IconButton { } Component.onCompleted: { - contentItem.smooth = false + contentItem.smooth = Qt.binding(function () { + return Math.round(contentItem.rotation) % 90 !== 0 + }) } }