Skip to content

Commit 43d33f5

Browse files
committed
Cosmetic
Signed-off-by: cneben <[email protected]>
1 parent 1c8576b commit 43d33f5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/RectGradientBackground.qml

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Item {
6363
radius: backRadius
6464
border.width: 0 // Do not draw border, just the background gradient (border is drawn in foreground)
6565
opacity: style?.backOpacity ?? 0.8
66+
antialiasing: rectGradientBackground.antialiasing
6667

6768
// Note 20240105: Unfortunately we no longer have LinearGradient with Qt6, switching to a
6869
// vertical gradient...
@@ -91,7 +92,7 @@ Item {
9192
color: Qt.rgba(0, 0, 0, 0) // Fully transparent
9293
border.color: style?.borderColor ?? Qt.rgba(1., 1., 1., 0.)
9394
border.width: style?.borderWidth ?? 1.
94-
antialiasing: true // Vertex antialiasing for borders
95+
antialiasing: rectGradientBackground.antialiasing // Vertex antialiasing for borders
9596
// Note: Do not enable layer to avoid aliasing at high scale
9697
}
9798
} // Item

src/RectGroupTemplate.qml

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Item {
7777
style: template.groupItem?.style
7878
visible: !groupItem.collapsed
7979
headerHeight: Math.max(35, groupLabel.implicitHeight)
80+
antialiasing: template.antialiasing
8081
}
8182
ColumnLayout {
8283
anchors.fill: parent
@@ -148,6 +149,7 @@ Item {
148149
color: groupItem?.style?.borderColor ?? Qt.rgba(1., 1., 1., 0.)
149150
opacity: 0.8
150151
visible: !groupItem.collapsed && headerSeparatorVisible
152+
antialiasing: template.antialiasing
151153
}
152154
Item {
153155
id: content

0 commit comments

Comments
 (0)