mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
actiondrawer: Introduce fix for black text even when opacity is 0
This commit is contained in:
parent
79fe77eaea
commit
79798d57e7
2 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue