mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-09 16:58:16 +03:00
support automatic icon size in editing mode
This commit is contained in:
parent
f182bffdc2
commit
58f2019997
@ -25,8 +25,8 @@ import QtGraphicalEffects 1.0
|
|||||||
|
|
||||||
Image{
|
Image{
|
||||||
id: editVisual
|
id: editVisual
|
||||||
width: root.isHorizontal ? parent.width : visibilityManager.thicknessNormal
|
width: root.isHorizontal ? parent.width : visibilityManager.thicknessNormalOriginalValue
|
||||||
height: root.isVertical ? parent.height : visibilityManager.thicknessNormal
|
height: root.isVertical ? parent.height : visibilityManager.thicknessNormalOriginalValue
|
||||||
|
|
||||||
fillMode: Image.Tile
|
fillMode: Image.Tile
|
||||||
source: "../icons/blueprint.jpg"
|
source: "../icons/blueprint.jpg"
|
||||||
|
@ -67,7 +67,7 @@ DragDrop.DropArea {
|
|||||||
property int animationsNeedThickness: 0 // animations need thickness, e.g. bouncing animation
|
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 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
|
plasmoid.configuration.iconSize
|
||||||
property int iconStep: 8
|
property int iconStep: 8
|
||||||
property int latteAppletPos: -1
|
property int latteAppletPos: -1
|
||||||
@ -872,7 +872,7 @@ DragDrop.DropArea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateAutomaticIconSize() {
|
function updateAutomaticIconSize() {
|
||||||
if (visibilityManager.normalState && !root.editMode
|
if (visibilityManager.normalState //&& !root.editMode
|
||||||
&& (iconSize===plasmoid.configuration.iconSize || iconSize === automaticIconSizeBasedSize) ) {
|
&& (iconSize===plasmoid.configuration.iconSize || iconSize === automaticIconSizeBasedSize) ) {
|
||||||
var layoutLength;
|
var layoutLength;
|
||||||
var maxLength = dock.maxLength;
|
var maxLength = dock.maxLength;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user