fixes for new Communicator protocol

pull/3/head
Michail Vourlakos 6 years ago
parent 5bab21d786
commit d705d5a657

@ -29,7 +29,7 @@ function typeOf(obj, className){
} }
function reconsiderAppletIconItem(){ function reconsiderAppletIconItem(){
if (communicator.appletIconItem || !applet || container.disableLatteParabolicIconHeuristics || container.disableLatteIconOverlay) if (communicator.appletIconItem || !applet)
return; return;
//! searching to find for that applet the first IconItem //! searching to find for that applet the first IconItem

@ -419,26 +419,22 @@ Item {
//set up the overlaied containers and properties for when a overlaiedIconItem must be presented to the user //set up the overlaied containers and properties for when a overlaiedIconItem must be presented to the user
//because the plasma widgets specific implementation breaks the Latte experience //because the plasma widgets specific implementation breaks the Latte experience
onCanShowOverlaiedLatteIconChanged: { onOverlayLatteIconIsActiveChanged:{
if (canShowOverlaiedLatteIcon) { if (!overlayLatteIconIsActive && applet.opacity===0) {
applet.opacity = 0; applet.opacity = 1;
if (applet.pluginName === "org.kde.plasma.folder") {
applet.parent = wrapper.containerForOverlayIcon;
applet.anchors.fill = wrapper.containerForOverlayIcon;
}
wrapper.disableScaleWidth = false; wrapper.disableScaleWidth = false;
wrapper.disableScaleHeight = false; wrapper.disableScaleHeight = false;
wrapper.updateLayoutWidth(); wrapper.updateLayoutWidth();
wrapper.updateLayoutHeight(); wrapper.updateLayoutHeight();
} } else if (overlayLatteIconIsActive && applet.opacity>0) {
} applet.opacity = 0;
onDisableLatteParabolicIconHeuristicsChanged: { if (applet.pluginName === "org.kde.plasma.folder") {
if (communicator.disableLatteParabolicIconHeuristics && applet.opacity === 0) { applet.parent = wrapper.containerForOverlayIcon;
applet.opacity = 1; applet.anchors.fill = wrapper.containerForOverlayIcon;
}
wrapper.disableScaleWidth = false; wrapper.disableScaleWidth = false;
wrapper.disableScaleHeight = false; wrapper.disableScaleHeight = false;

Loading…
Cancel
Save