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
@ -130,6 +136,9 @@ PlasmaCore.ColorScope {
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
top: clock.bottom
@ -150,6 +159,9 @@ PlasmaCore.ColorScope {
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
left: isOnLargeScreen ? date.right : parent.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
}
}