|
|
|
@ -49,10 +49,6 @@ Item{
|
|
|
|
|
appletItem.maxAutoFillLength : Math.max(appletItem.minAutoFillLength, appletPreferredLength);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (appletItem.latteApplet) {
|
|
|
|
|
return root.isHorizontal ? latteApplet.tasksWidth : latteApplet.tasksHeight;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return root.inConfigureAppletsMode ? Math.max(Math.min(appletItem.metrics.iconSize, root.minAppletLengthInConfigure), scaledLength) : scaledLength;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -61,10 +57,6 @@ Item{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (appletItem.latteApplet) {
|
|
|
|
|
return root.isHorizontal ? latteApplet.tasksHeight : latteApplet.tasksWidth;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return scaledThickness + appletItem.metrics.margin.screenEdge
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -221,12 +213,16 @@ Item{
|
|
|
|
|
Binding {
|
|
|
|
|
target: wrapper
|
|
|
|
|
property: "layoutThickness"
|
|
|
|
|
when: latteView && !isLattePlasmoid && (wrapper.zoomScale === 1)
|
|
|
|
|
when: latteView && (wrapper.zoomScale === 1)
|
|
|
|
|
value: {
|
|
|
|
|
if (appletItem.isInternalViewSplitter){
|
|
|
|
|
return !root.inConfigureAppletsMode ? 0 : appletItem.metrics.iconSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (communicator.parabolicEffectIsSupported) {
|
|
|
|
|
return appletPreferredThickness;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return appletItem.metrics.iconSize;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -234,7 +230,7 @@ Item{
|
|
|
|
|
Binding {
|
|
|
|
|
target: wrapper
|
|
|
|
|
property: "layoutLength"
|
|
|
|
|
when: latteView && !isLattePlasmoid && !appletItem.isAutoFillApplet && (wrapper.zoomScale === 1)
|
|
|
|
|
when: latteView && !appletItem.isAutoFillApplet && (wrapper.zoomScale === 1)
|
|
|
|
|
value: {
|
|
|
|
|
if (appletItem.isInternalViewSplitter){
|
|
|
|
|
return !root.inConfigureAppletsMode ? 0 : Math.min(appletItem.metrics.iconSize, root.maxJustifySplitterSize);
|
|
|
|
@ -265,6 +261,10 @@ Item{
|
|
|
|
|
value: {
|
|
|
|
|
var blockParabolicEffectInLength = false;
|
|
|
|
|
|
|
|
|
|
if (communicator.parabolicEffectIsSupported) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (appletItem.isInternalViewSplitter){
|
|
|
|
|
return false;
|
|
|
|
|
} else {
|
|
|
|
|