actiondrawer: Introduce fix for black text even when opacity is 0

This commit is contained in:
Devin Lin 2022-12-05 11:12:45 -05:00
parent 79fe77eaea
commit 79798d57e7
2 changed files with 15 additions and 0 deletions

View file

@ -69,6 +69,9 @@ PlasmaCore.ColorScope {
opacity: opacityValue
spacing: 0
// HACK: there are weird issues with text rendering black regardless of opacity, just set the text to be invisible once it's out
visible: opacity > 0.05
anchors {
top: mediaWidget.bottom
topMargin: 0
@ -111,6 +114,9 @@ PlasmaCore.ColorScope {
verticalAlignment: Qt.AlignVCenter
opacity: columnLayout.opacity
// HACK: there are weird issues with text rendering black regardless of opacity, just set the text to be invisible once it's out
visible: opacity > 0.05
anchors {
left: parent.left
top: parent.top
@ -129,6 +135,9 @@ PlasmaCore.ColorScope {
verticalAlignment: Qt.AlignTop
color: PlasmaCore.ColorScope.disabledTextColor
opacity: columnLayout.opacity
// HACK: there are weird issues with text rendering black regardless of opacity, just set the text to be invisible once it's out
visible: opacity > 0.05
anchors {
left: parent.left
@ -149,6 +158,9 @@ PlasmaCore.ColorScope {
y: isOnLargeScreen ? date.y - height + date.implicitHeight : date.y + date.implicitHeight + columnLayout.anchors.margins / 2
opacity: columnLayout.opacity
// HACK: there are weird issues with text rendering black regardless of opacity, just set the text to be invisible once it's out
visible: opacity > 0.05
anchors {
right: quickSettings.left

View file

@ -120,5 +120,8 @@ PlasmaCore.ColorScope {
right: parent.right
}
opacity: applyMinMax(root.actionDrawer.offset / root.minimizedQuickSettingsOffset)
// HACK: there are weird issues with text rendering black regardless of opacity, just set the text to be invisible once it's out
visible: opacity > 0.05
}
}