Commit 07667163 authored by Filip Fila's avatar Filip Fila 🌆

[Logout screen] Fix label opacity failing

Summary: Due to Qt bug: https://bugreports.qt.io/browse/QTBUG-70138 (KDE bug: https://bugs.kde.org/show_bug.cgi?id=401644) we have label opacity utterly failing when the logout screen is superimposed over a bright background. Even though QtRendering is the inferior renderer, this patch uses it as a workaround for the aforementioned bug since ugly (if it ever would be) text is better than (almost) no text.

Test Plan:
Before:
{F6656331}

After:
{F6656332}

Reviewers: #plasma, ngraham, rooty

Reviewed By: ngraham, rooty

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D19510
parent 9816994e
......@@ -27,6 +27,7 @@ Item {
property alias iconSource: icon.source
property alias containsMouse: mouseArea.containsMouse
property alias font: label.font
property alias labelRendering: label.renderType
signal clicked
activeFocusOnTab: true
......
......@@ -31,6 +31,7 @@ ActionButton {
Layout.alignment: Qt.AlignTop
iconSize: units.iconSizes.huge
opacity: activeFocus || containsMouse ? 1 : 0.5
labelRendering: opacity != 1 ? Text.QtRendering : Text.NativeRendering // Remove once we've solved Qt bug: https://bugreports.qt.io/browse/QTBUG-70138 (KDE bug: https://bugs.kde.org/show_bug.cgi?id=401644)
font.underline: false
Behavior on opacity {
OpacityAnimator {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment