mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
Native text rednering in control center
This commit is contained in:
@@ -35,8 +35,7 @@ Rectangle {
|
|||||||
color: _containerBg
|
color: _containerBg
|
||||||
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.10)
|
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.10)
|
||||||
border.width: 1
|
border.width: 1
|
||||||
layer.enabled: true
|
antialiasing: true
|
||||||
layer.samples: 8
|
|
||||||
|
|
||||||
readonly property color _labelPrimary: Theme.surfaceText
|
readonly property color _labelPrimary: Theme.surfaceText
|
||||||
readonly property color _labelSecondary: Theme.surfaceVariantText
|
readonly property color _labelSecondary: Theme.surfaceVariantText
|
||||||
@@ -62,6 +61,7 @@ Rectangle {
|
|||||||
visible: false
|
visible: false
|
||||||
color: hoverTint(_containerBg)
|
color: hoverTint(_containerBg)
|
||||||
opacity: 0.08
|
opacity: 0.08
|
||||||
|
antialiasing: true
|
||||||
Behavior on opacity { NumberAnimation { duration: Theme.shortDuration } }
|
Behavior on opacity { NumberAnimation { duration: Theme.shortDuration } }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,6 +82,7 @@ Rectangle {
|
|||||||
color: isActive ? _tileBgActive : _tileBgInactive
|
color: isActive ? _tileBgActive : _tileBgInactive
|
||||||
border.color: isActive ? _tileRingActive : "transparent"
|
border.color: isActive ? _tileRingActive : "transparent"
|
||||||
border.width: isActive ? 1 : 0
|
border.width: isActive ? 1 : 0
|
||||||
|
antialiasing: true
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@@ -89,6 +90,7 @@ Rectangle {
|
|||||||
color: hoverTint(iconTile.color)
|
color: hoverTint(iconTile.color)
|
||||||
opacity: tileMouse.pressed ? 0.3 : (tileMouse.containsMouse ? 0.2 : 0.0)
|
opacity: tileMouse.pressed ? 0.3 : (tileMouse.containsMouse ? 0.2 : 0.0)
|
||||||
visible: opacity > 0
|
visible: opacity > 0
|
||||||
|
antialiasing: true
|
||||||
Behavior on opacity { NumberAnimation { duration: Theme.shortDuration } }
|
Behavior on opacity { NumberAnimation { duration: Theme.shortDuration } }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ StyledText {
|
|||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
antialiasing: true
|
||||||
font.variableAxes: {
|
font.variableAxes: {
|
||||||
"FILL": fill.toFixed(1),
|
"FILL": fill.toFixed(1),
|
||||||
"GRAD": grade,
|
"GRAD": grade,
|
||||||
|
|||||||
Reference in New Issue
Block a user