Commit 7b0fa840 authored by Bruno Gonçalves's avatar Bruno Gonçalves Committed by Nate Graham
Browse files

Solve problem with icons when using software rendering

I'm from Brazil and here we have a lot of obsolete equipment that needs
to use software rendering, the two main problems were with the desktop
icons that don't show shadows, so using a rectangle as it was used
until Plasma 5.5 improves the result.

Also included is the change to the icons on the taskbar that when using
overlay do not appear using software rendering.
parent b1c941fc
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
***************************************************************************/ ***************************************************************************/
import QtQuick 2.4 import QtQuick 2.8
import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.plasma.components 2.0 as PlasmaComponents
...@@ -44,7 +44,7 @@ Item { ...@@ -44,7 +44,7 @@ Item {
ShaderEffectSource { ShaderEffectSource {
id: iconShaderSource id: iconShaderSource
sourceItem: icon sourceItem: icon
hideSource: true hideSource: GraphicsInfo.api !== GraphicsInfo.Software
} }
ShaderEffectSource { ShaderEffectSource {
......
...@@ -303,6 +303,19 @@ Item { ...@@ -303,6 +303,19 @@ Item {
overlays: model.overlays overlays: model.overlays
} }
Rectangle {
id: fallbackRectangleBackground
visible: GraphicsInfo.api === GraphicsInfo.Software && !model.selected
anchors {
fill: label
margins: -units.smallSpacing
}
color: "black"
radius: units.smallSpacing
opacity: 0.45
}
PlasmaComponents.Label { PlasmaComponents.Label {
id: label id: label
...@@ -354,7 +367,7 @@ Item { ...@@ -354,7 +367,7 @@ Item {
elide: Text.ElideRight elide: Text.ElideRight
color: { color: {
if (frameLoader.textShadow && frameLoader.textShadow.visible) { if ((frameLoader.textShadow && frameLoader.textShadow.visible) || fallbackRectangleBackground.visible) {
return "#fff"; return "#fff";
} else if (model.selected) { } else if (model.selected) {
return PlasmaCore.ColorScope.highlightedTextColor; return PlasmaCore.ColorScope.highlightedTextColor;
......
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