1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-24 18:03:53 +03:00

enable parab.effect for latte spacer

This commit is contained in:
Michail Vourlakos 2018-04-14 18:34:02 +03:00
parent 7930b5950d
commit 506d23d948
3 changed files with 9 additions and 5 deletions

View File

@ -409,7 +409,6 @@ MouseArea {
closeButton.visible = !currentApplet.isInternalViewSplitter && currentApplet.applet.action("remove") && currentApplet.applet.action("remove").enabled
&& !(currentApplet.applet.pluginName===root.plasmoidName && dock && dock.docksWithTasks()===1 && dock.tasksPresent());
lockButton.visible = !currentApplet.isInternalViewSplitter && (currentApplet.applet.pluginName !== "org.kde.plasma.systemtray")
&& (currentApplet.applet.pluginName !== "org.kde.latte.spacer")
&& (currentApplet.applet.pluginName !== root.plasmoidName)
&& !currentApplet.isSeparator

View File

@ -241,7 +241,7 @@ Item {
function checkCanBeHovered(){
if ( (((applet && (applet.Layout.minimumWidth > root.iconSize) && root.isHorizontal) ||
(applet && (applet.Layout.minimumHeight > root.iconSize) && root.isVertical))
&& (applet && applet.pluginName !== "org.kde.plasma.panelspacer")
&& (applet && applet.pluginName !== "org.kde.plasma.panelspacer" && (applet.pluginName !== "org.kde.latte.spacer"))
&& !container.fakeIconItem)
|| (isSystray)
|| (container.needsFillSpace) ) {
@ -350,7 +350,7 @@ Item {
onLatteSpacerChanged: {
if(container.latteSpacer){
latteSpacer.latteDock = root;
container.lockZoom = true;
//container.lockZoom = true;
}
}

View File

@ -267,7 +267,9 @@ Item{
&& !disableScaleWidth
&& !container.fakeIconItem) {
//&& !root.editMode ){
disableScaleHeight = true;
if (!container.isSpacer) {
disableScaleHeight = true;
}
//this way improves performance, probably because during animation the preferred sizes update a lot
if((applet.Layout.maximumHeight < root.iconSize)){
layoutHeight = applet.Layout.maximumHeight;
@ -313,7 +315,10 @@ Item{
&& !disableScaleHeight
&& !container.fakeIconItem){
// && !root.editMode){
disableScaleWidth = true;
if (!container.isSpacer) {
disableScaleWidth = true;
}
//this way improves performance, probably because during animation the preferred sizes update a lot
if((applet.Layout.maximumWidth < root.iconSize)){
// return applet.Layout.maximumWidth;