1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-09 00:58:15 +03:00

support automatic icon size in editing mode

This commit is contained in:
Michail Vourlakos 2017-01-14 18:10:34 +02:00
parent f182bffdc2
commit 58f2019997
2 changed files with 4 additions and 4 deletions

View File

@ -25,8 +25,8 @@ import QtGraphicalEffects 1.0
Image{
id: editVisual
width: root.isHorizontal ? parent.width : visibilityManager.thicknessNormal
height: root.isVertical ? parent.height : visibilityManager.thicknessNormal
width: root.isHorizontal ? parent.width : visibilityManager.thicknessNormalOriginalValue
height: root.isVertical ? parent.height : visibilityManager.thicknessNormalOriginalValue
fillMode: Image.Tile
source: "../icons/blueprint.jpg"

View File

@ -67,7 +67,7 @@ DragDrop.DropArea {
property int animationsNeedThickness: 0 // animations need thickness, e.g. bouncing animation
property int automaticIconSizeBasedSize: -1 //it is not set, this is the defautl
property int iconSize: (automaticIconSizeBasedSize > 0 && !root.editMode) ? Math.min(automaticIconSizeBasedSize, plasmoid.configuration.iconSize) :
property int iconSize: automaticIconSizeBasedSize > 0 ? Math.min(automaticIconSizeBasedSize, plasmoid.configuration.iconSize) :
plasmoid.configuration.iconSize
property int iconStep: 8
property int latteAppletPos: -1
@ -872,7 +872,7 @@ DragDrop.DropArea {
}
function updateAutomaticIconSize() {
if (visibilityManager.normalState && !root.editMode
if (visibilityManager.normalState //&& !root.editMode
&& (iconSize===plasmoid.configuration.iconSize || iconSize === automaticIconSizeBasedSize) ) {
var layoutLength;
var maxLength = dock.maxLength;