1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 06:52:50 -05:00

antialiasing: true on rectangles

This commit is contained in:
bbedward
2025-09-30 13:28:07 -04:00
parent 123ec5c78a
commit ab0759f441
5 changed files with 41 additions and 3 deletions

View File

@@ -271,6 +271,7 @@ Item {
Rectangle {
anchors.fill: parent
radius: Theme.cornerRadius
antialiasing: true
opacity: 1.0
gradient: Gradient {
GradientStop {
@@ -359,6 +360,7 @@ Item {
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.6)
border.width: 2
radius: Theme.cornerRadius * 2
antialiasing: true
layer.enabled: true
layer.effect: MultiEffect {
@@ -431,10 +433,11 @@ Item {
delegate: Rectangle {
required property var modelData
required property int index
width: parent.width
height: 48
radius: Theme.cornerRadius
antialiasing: true
color: deviceMouseAreaLeft.containsMouse ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12) : Theme.surfaceContainerHigh
border.color: modelData === AudioService.sink ? Theme.primary : Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.2)
border.width: modelData === AudioService.sink ? 2 : 1
@@ -517,6 +520,7 @@ Item {
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.6)
border.width: 2
radius: Theme.cornerRadius * 2
antialiasing: true
layer.enabled: true
layer.effect: MultiEffect {
@@ -593,6 +597,7 @@ Item {
width: parent.width
height: 48
radius: Theme.cornerRadius
antialiasing: true
color: playerMouseArea.containsMouse ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12) : Theme.surfaceContainerHigh
border.color: modelData === activePlayer ? Theme.primary : Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.2)
border.width: modelData === activePlayer ? 2 : 1
@@ -838,6 +843,7 @@ Item {
height: 40
radius: 20
anchors.centerIn: parent
antialiasing: true
color: shuffleArea.containsMouse ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12) : "transparent"
DankIcon {
@@ -879,6 +885,7 @@ Item {
height: 40
radius: 20
anchors.centerIn: parent
antialiasing: true
color: prevBtnArea.containsMouse ? Theme.surfaceContainerHigh : "transparent"
DankIcon {
@@ -918,6 +925,7 @@ Item {
height: 50
radius: 25
anchors.centerIn: parent
antialiasing: true
color: Theme.primary
DankIcon {
@@ -957,6 +965,7 @@ Item {
height: 40
radius: 20
anchors.centerIn: parent
antialiasing: true
color: nextBtnArea.containsMouse ? Theme.surfaceContainerHigh : "transparent"
DankIcon {
@@ -987,6 +996,7 @@ Item {
height: 40
radius: 20
anchors.centerIn: parent
antialiasing: true
color: repeatArea.containsMouse ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12) : "transparent"
DankIcon {
@@ -1047,6 +1057,7 @@ Item {
radius: 20
x: parent.width - 40 - Theme.spacingM
y: 185
antialiasing: true
color: playerSelectorArea.containsMouse ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.2) : "transparent"
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.3)
border.width: 1
@@ -1100,6 +1111,7 @@ Item {
radius: 20
x: parent.width - 40 - Theme.spacingM
y: 130
antialiasing: true
color: volumeButtonArea.containsMouse ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.2) : "transparent"
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.3)
border.width: 1
@@ -1154,7 +1166,8 @@ Item {
height: 40
radius: 20
x: parent.width - 40 - Theme.spacingM
y: 240
y: 240
antialiasing: true
color: audioDevicesArea.containsMouse ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.2) : "transparent"
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.3)
border.width: 1
@@ -1216,6 +1229,7 @@ Item {
background: Rectangle {
radius: Theme.cornerRadius * 2
antialiasing: true
color: Qt.rgba(Theme.surfaceContainer.r, Theme.surfaceContainer.g, Theme.surfaceContainer.b, 0.95)
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.3)
border.width: 1
@@ -1276,6 +1290,7 @@ Item {
anchors.centerIn: parent
color: Theme.surfaceContainerHigh
radius: Theme.cornerRadius
antialiasing: true
}
Rectangle {
@@ -1289,6 +1304,7 @@ Item {
bottomRightRadius: Theme.cornerRadius
topLeftRadius: 0
topRightRadius: 0
antialiasing: true
}
Rectangle {
@@ -1296,6 +1312,7 @@ Item {
width: parent.width + 8
height: 8
radius: Theme.cornerRadius
antialiasing: true
y: {
const ratio = defaultSink ? Math.min(1.0, defaultSink.audio.volume) : 0
const travel = parent.height - height
@@ -1309,6 +1326,7 @@ Item {
Rectangle {
anchors.fill: parent
radius: Theme.cornerRadius
antialiasing: true
color: Theme.onPrimary
opacity: volumeSliderArea.pressed ? 0.16 : (volumeSliderArea.containsMouse ? 0.08 : 0)
visible: opacity > 0
@@ -1320,6 +1338,7 @@ Item {
width: 0
height: 0
radius: width / 2
antialiasing: true
color: Theme.onPrimary
opacity: 0