From 43d33f59cab3b3f2454ddd057184e43340a20ec2 Mon Sep 17 00:00:00 2001 From: cneben Date: Tue, 24 Sep 2024 21:03:30 +0200 Subject: [PATCH] Cosmetic Signed-off-by: cneben --- src/RectGradientBackground.qml | 3 ++- src/RectGroupTemplate.qml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/RectGradientBackground.qml b/src/RectGradientBackground.qml index a890fa8c..46fc4aa9 100644 --- a/src/RectGradientBackground.qml +++ b/src/RectGradientBackground.qml @@ -63,6 +63,7 @@ Item { radius: backRadius border.width: 0 // Do not draw border, just the background gradient (border is drawn in foreground) opacity: style?.backOpacity ?? 0.8 + antialiasing: rectGradientBackground.antialiasing // Note 20240105: Unfortunately we no longer have LinearGradient with Qt6, switching to a // vertical gradient... @@ -91,7 +92,7 @@ Item { color: Qt.rgba(0, 0, 0, 0) // Fully transparent border.color: style?.borderColor ?? Qt.rgba(1., 1., 1., 0.) border.width: style?.borderWidth ?? 1. - antialiasing: true // Vertex antialiasing for borders + antialiasing: rectGradientBackground.antialiasing // Vertex antialiasing for borders // Note: Do not enable layer to avoid aliasing at high scale } } // Item diff --git a/src/RectGroupTemplate.qml b/src/RectGroupTemplate.qml index 763a8311..57d2cb50 100644 --- a/src/RectGroupTemplate.qml +++ b/src/RectGroupTemplate.qml @@ -77,6 +77,7 @@ Item { style: template.groupItem?.style visible: !groupItem.collapsed headerHeight: Math.max(35, groupLabel.implicitHeight) + antialiasing: template.antialiasing } ColumnLayout { anchors.fill: parent @@ -148,6 +149,7 @@ Item { color: groupItem?.style?.borderColor ?? Qt.rgba(1., 1., 1., 0.) opacity: 0.8 visible: !groupItem.collapsed && headerSeparatorVisible + antialiasing: template.antialiasing } Item { id: content