mirror of
https://github.com/KDE/latte-dock.git
synced 2025-08-15 21:49:28 +03:00
stabilize attentionAnimaton bouncing
--add also some visual spacers indicators for debugging purposes
This commit is contained in:
@ -67,12 +67,13 @@ Item{
|
||||
property QtObject smartLauncherItem: null
|
||||
|
||||
property Item titleTooltipVisualParent: titleTooltipParent
|
||||
/*Rectangle{
|
||||
|
||||
/* Rectangle{
|
||||
anchors.fill: parent
|
||||
border.width: 1
|
||||
border.color: "green"
|
||||
color: "transparent"
|
||||
}*/
|
||||
} */
|
||||
|
||||
onSmartLauncherEnabledChanged: {
|
||||
if (smartLauncherEnabled && !smartLauncherItem) {
|
||||
|
@ -69,7 +69,8 @@ Item{
|
||||
//size needed fom the states below icons
|
||||
//property int statesLineSize: root.statesLineSize
|
||||
property int addedSpace: root.statesLineSize //7
|
||||
property int maxThickness: addedSpace + root.zoomFactor*root.iconSize
|
||||
property int maxThickness: !root.vertical ? addedSpace + root.zoomFactor*(root.iconSize+root.heightMargins)
|
||||
: addedSpace + root.zoomFactor*(root.iconSize+root.widthMargins)
|
||||
|
||||
property real showDelegateWidth: root.vertical ? basicScalingWidth+addedSpace :
|
||||
basicScalingWidth
|
||||
@ -162,6 +163,16 @@ Item{
|
||||
Item{
|
||||
width: root.vertical ? wrapper.maxThickness-wrapper.width : 1
|
||||
height: !root.vertical ? wrapper.maxThickness-wrapper.height : 1
|
||||
|
||||
/* Rectangle{
|
||||
width: !root.vertical ? 1 : parent.width
|
||||
height: !root.vertical ? parent.height : 1
|
||||
x: !root.vertical ? wrapper.width /2 : 0
|
||||
y: root.vertical ? wrapper.height /2 : 0
|
||||
border.width: 1
|
||||
border.color: "blue"
|
||||
color: "transparent"
|
||||
} */
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -179,6 +190,16 @@ Item{
|
||||
Item{
|
||||
width: root.vertical ? wrapper.maxThickness-wrapper.width : 1
|
||||
height: !root.vertical ? wrapper.maxThickness-wrapper.height : 1
|
||||
|
||||
/* Rectangle{
|
||||
width: !root.vertical ? 1 : parent.width
|
||||
height: !root.vertical ? parent.height : 1
|
||||
x: !root.vertical ? wrapper.width/2 : 0
|
||||
y: root.vertical ? wrapper.height/2 : 0
|
||||
border.width: 1
|
||||
border.color: "blue"
|
||||
color: "transparent"
|
||||
} */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ SequentialAnimation{
|
||||
duration: newWindowAnimation.speed
|
||||
easing.type: Easing.OutQuad
|
||||
|
||||
property real thickPercentage: mainItemContainer.inAttentionAnimation ? 0.8 : 0.6
|
||||
property real thickPercentage: mainItemContainer.inAttentionAnimation ? 0.9 : 0.6
|
||||
}
|
||||
|
||||
PropertyAnimation {
|
||||
|
Reference in New Issue
Block a user