Skip to content

Commit

Permalink
Cosmetic
Browse files Browse the repository at this point in the history
Signed-off-by: cneben <[email protected]>
  • Loading branch information
cneben committed Sep 24, 2024
1 parent 1c8576b commit 43d33f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RectGradientBackground.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/RectGroupTemplate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 43d33f5

Please sign in to comment.