mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-26 23:21:37 +03:00
dont hide icons/applets for software rendering
--when qml software rendering is enabled the ShaderEffects do not work. Hiding sources in that case is hiding from the user tasks and applets with no visual feedback. Sources in that case should hide themeselves and give the user the minimum which is the original drawn contents. BUG:410920 FIXED-IN:0.9.2
This commit is contained in:
parent
47e8af0eab
commit
f449e22943
@ -95,7 +95,7 @@ Item{
|
||||
}
|
||||
}
|
||||
|
||||
opacity: appletColorizer.mustBeShown ? 0 : 1
|
||||
opacity: appletColorizer.mustBeShown && appletColorizer.isCompiled ? 0 : 1
|
||||
|
||||
property bool disableScaleWidth: false
|
||||
property bool disableScaleHeight: false
|
||||
@ -444,8 +444,7 @@ Item{
|
||||
|
||||
}
|
||||
|
||||
opacity: appletShadow.active ? 0 : 1
|
||||
|
||||
opacity: appletShadow.active && (appletShadow.item.status === ShaderEffect.Compiled) ? 0 : 1
|
||||
anchors.centerIn: parent
|
||||
|
||||
///Secret MouseArea to be used by the folder widget
|
||||
@ -562,7 +561,7 @@ Item{
|
||||
|| (root.forceTransparentPanel && plasmoid.configuration.shadows>0 && applet.pluginName !== root.plasmoidName)) /*on forced transparent state*/
|
||||
|
||||
onActiveChanged: {
|
||||
if (active && !isSeparator) {
|
||||
if (active && !isSeparator && item.status === ShaderEffect.Compiled) {
|
||||
wrapperContainer.opacity = 0;
|
||||
} else {
|
||||
wrapperContainer.opacity = 1;
|
||||
|
@ -24,6 +24,9 @@ import org.kde.plasma.plasmoid 2.0
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
|
||||
Item {
|
||||
readonly property bool isCompiled: !colorizedAppletShadow.active
|
||||
|| (colorizedAppletShadow.active && colorizedAppletShadow.item.status === ShaderEffect.Compiled)
|
||||
|
||||
ColorOverlay {
|
||||
id: colorizer
|
||||
anchors.fill: parent
|
||||
|
@ -159,7 +159,9 @@ Item{
|
||||
smooth: root.zoomFactor === 1 ? true : false
|
||||
providesColors: indicators ? indicators.info.needsIconColors : false
|
||||
|
||||
opacity: root.enableShadows ? 0 : 1
|
||||
opacity: root.enableShadows
|
||||
&& taskWithShadow.active
|
||||
&& (taskWithShadow.item.status === ShaderEffect.Compiled) ? 0 : 1
|
||||
visible: !taskItem.isSeparator && !badgesLoader.active
|
||||
|
||||
|
||||
|
@ -306,7 +306,8 @@ MouseArea{
|
||||
id:separatorItem
|
||||
|
||||
anchors.centerIn: parent
|
||||
opacity: separatorShadow.active || forceHiddenState ? 0 : 0.4
|
||||
opacity: (separatorShadow.active && (separatorShadow.item.status === ShaderEffect.Compiled))
|
||||
|| forceHiddenState ? 0 : 0.4
|
||||
visible: taskItem.isSeparator
|
||||
|
||||
width: root.vertical ? root.iconSize : (root.dragSource || root.editMode) ? 5+root.lengthMargins: 1
|
||||
|
Loading…
Reference in New Issue
Block a user