mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03: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
|
opacity: opacityValue
|
||||||
spacing: 0
|
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 {
|
anchors {
|
||||||
top: mediaWidget.bottom
|
top: mediaWidget.bottom
|
||||||
topMargin: 0
|
topMargin: 0
|
||||||
|
|
@ -111,6 +114,9 @@ PlasmaCore.ColorScope {
|
||||||
verticalAlignment: Qt.AlignVCenter
|
verticalAlignment: Qt.AlignVCenter
|
||||||
opacity: columnLayout.opacity
|
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 {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
top: parent.top
|
top: parent.top
|
||||||
|
|
@ -130,6 +136,9 @@ PlasmaCore.ColorScope {
|
||||||
color: PlasmaCore.ColorScope.disabledTextColor
|
color: PlasmaCore.ColorScope.disabledTextColor
|
||||||
opacity: columnLayout.opacity
|
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 {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
top: clock.bottom
|
top: clock.bottom
|
||||||
|
|
@ -150,6 +159,9 @@ PlasmaCore.ColorScope {
|
||||||
|
|
||||||
opacity: columnLayout.opacity
|
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 {
|
anchors {
|
||||||
right: quickSettings.left
|
right: quickSettings.left
|
||||||
left: isOnLargeScreen ? date.right : parent.left
|
left: isOnLargeScreen ? date.right : parent.left
|
||||||
|
|
|
||||||
|
|
@ -120,5 +120,8 @@ PlasmaCore.ColorScope {
|
||||||
right: parent.right
|
right: parent.right
|
||||||
}
|
}
|
||||||
opacity: applyMinMax(root.actionDrawer.offset / root.minimizedQuickSettingsOffset)
|
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