|
|
|
@ -39,25 +39,26 @@ Item{
|
|
|
|
|
|
|
|
|
|
property bool inStartup: root.inStartup
|
|
|
|
|
property bool normalState : false // this is being set from updateMaskArea
|
|
|
|
|
property bool previoiusNormalState : false // this is only for debugging purposes
|
|
|
|
|
property bool previousNormalState : false // this is only for debugging purposes
|
|
|
|
|
|
|
|
|
|
property int animationSpeed: root.durationTime * 1.2 * units.longDuration
|
|
|
|
|
property int length: root.isVertical ? Screen.height : Screen.width //screenGeometry.height : screenGeometry.width
|
|
|
|
|
|
|
|
|
|
//it is used in order to not break the calculations for the thickness placement
|
|
|
|
|
//especially in automatic icon sizes calculations
|
|
|
|
|
property int iconMarginOriginal: 0.12*plasmoid.configuration.iconSize
|
|
|
|
|
property real iconMarginOriginal: 0.12*plasmoid.configuration.iconSize
|
|
|
|
|
property int statesLineSizeOriginal: root.nowDock ? Math.ceil( plasmoid.configuration.iconSize/13 ) : 0
|
|
|
|
|
|
|
|
|
|
property int thicknessAutoHidden: 2
|
|
|
|
|
property int thicknessMid: root.statesLineSize + (1 + (0.65 * (root.zoomFactor-1)))*(root.iconSize+root.iconMargin) //needed in some animations
|
|
|
|
|
property int thicknessNormal: root.statesLineSize + root.iconSize + root.iconMargin + root.shadowsSize + 1
|
|
|
|
|
property int thicknessNormal: Math.max(root.statesLineSize + root.iconSize + root.iconMargin + root.shadowsSize + 1, root.realPanelSize)
|
|
|
|
|
property int thicknessZoom: root.statesLineSize + ((root.iconSize+root.iconMargin) * root.zoomFactor) + 2
|
|
|
|
|
//it is used to keep thickness solid e.g. when iconSize changes from auto functions
|
|
|
|
|
property int thicknessMidOriginal: statesLineSizeOriginal + (1 + (0.65 * (root.zoomFactor-1)))*(plasmoid.configuration.iconSize+iconMarginOriginal) //needed in some animations
|
|
|
|
|
property int thicknessNormalOriginal: root.useThemePanel ? Math.max(thicknessNormalOriginalValue, root.realPanelSize) : thicknessNormalOriginalValue
|
|
|
|
|
property int thicknessNormalOriginalValue: statesLineSizeOriginal + plasmoid.configuration.iconSize + iconMarginOriginal + 1
|
|
|
|
|
property int thicknessZoomOriginal: statesLineSizeOriginal + ((plasmoid.configuration.iconSize+iconMarginOriginal) * root.zoomFactor) + 2
|
|
|
|
|
property int thicknessNormalOriginal: Math.max(thicknessNormalOriginalValue, root.realPanelSize)
|
|
|
|
|
property int thicknessNormalOriginalValue: statesLineSizeOriginal + plasmoid.configuration.iconSize + iconMarginOriginal + root.shadowsSize + 1
|
|
|
|
|
property int thicknessZoomOriginal: Math.max(statesLineSizeOriginal + ((plasmoid.configuration.iconSize+iconMarginOriginal) * root.zoomFactor) + root.shadowsSize + 2,
|
|
|
|
|
root.realPanelSize+editModeVisual.shadowSize)
|
|
|
|
|
|
|
|
|
|
Binding{
|
|
|
|
|
target: dock
|
|
|
|
@ -129,9 +130,9 @@ Item{
|
|
|
|
|
console.log(root.animationsNeedBothAxis + ", " + root.animationsNeedLength + ", " +
|
|
|
|
|
root.animationsNeedThickness + ", " + dock.visibility.isHidden);
|
|
|
|
|
|
|
|
|
|
if (previoiusNormalState !== normalState) {
|
|
|
|
|
if (previousNormalState !== normalState) {
|
|
|
|
|
console.log("normal state changed to:" + normalState);
|
|
|
|
|
previoiusNormalState = normalState;
|
|
|
|
|
previousNormalState = normalState;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -268,16 +269,18 @@ Item{
|
|
|
|
|
//the shadows size must be removed from the maskArea
|
|
|
|
|
//before updating the localDockGeometry
|
|
|
|
|
|
|
|
|
|
var shadow = root.shadowsSize;
|
|
|
|
|
|
|
|
|
|
if (plasmoid.formFactor === PlasmaCore.Types.Vertical) {
|
|
|
|
|
newMaskArea.width = newMaskArea.width - editModeVisual.shadowSize - 1;
|
|
|
|
|
newMaskArea.width = newMaskArea.width - shadow - 1;
|
|
|
|
|
} else {
|
|
|
|
|
newMaskArea.height = newMaskArea.height - editModeVisual.shadowSize - 1;
|
|
|
|
|
newMaskArea.height = newMaskArea.height - shadow - 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (plasmoid.location === PlasmaCore.Types.BottomEdge) {
|
|
|
|
|
newMaskArea.y = newMaskArea.y + editModeVisual.shadowSize;
|
|
|
|
|
newMaskArea.y = newMaskArea.y + shadow;
|
|
|
|
|
} else if (plasmoid.location === PlasmaCore.Types.RightEdge) {
|
|
|
|
|
newMaskArea.x = newMaskArea.x + editModeVisual.shadowSize;
|
|
|
|
|
newMaskArea.x = newMaskArea.x + shadow;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dock.setLocalDockGeometry(newMaskArea);
|
|
|
|
|