indicate automatic the automatic shrinking

--if there is an applets that requests fillWidth or Height then
the automatic shrinking isnt working
pull/2/head
Michail Vourlakos 7 years ago
parent 0b587313ea
commit e3d1001861

@ -35,6 +35,8 @@ Item{
property int currentSpot: -1000
property int hoveredIndex: -1
readonly property int fillApplets: _startLayout.fillApplets + _mainLayout.fillApplets + _endLayout.fillApplets
property Item startLayout : _startLayout
property Item mainLayout: _mainLayout
property Item endLayout: _endLayout

@ -62,7 +62,7 @@ DragDrop.DropArea {
property bool addLaunchersMessage: false
property bool addLaunchersInTaskManager: plasmoid.configuration.addLaunchersInTaskManager
// when there are only plasma style task managers the automatic icon size algorithm should better be disabled
property bool autoDecreaseIconSize: plasmoid.configuration.autoDecreaseIconSize && !containsOnlyPlasmaTasks
property bool autoDecreaseIconSize: plasmoid.configuration.autoDecreaseIconSize && !containsOnlyPlasmaTasks && layoutsContainer.fillApplets<=0
property bool backgroundOnlyOnMaximized: plasmoid.configuration.backgroundOnlyOnMaximized
property bool behaveAsPlasmaPanel: {
if (!dock || !dock.visibility)

@ -48,16 +48,7 @@ Rectangle {
readonly property bool isPanel: (plasmoid.configuration.panelPosition === Latte.Dock.Justify)
&& (plasmoid.configuration.useThemePanel) && (plasmoid.configuration.panelSize===100)
&& (plasmoid.configuration.zoomLevel === 0) && !plasmoid.configuration.autoDecreaseIconSize
/*layer.enabled: true
layer.effect: DropShadow {
radius: dockTypeButton.height / 10
samples: radius
color: "#0a0a0a"
horizontalOffset: -1
//opacity: 0.5
}*/
&& (plasmoid.configuration.zoomLevel === 0)
ExclusiveGroup {
id: dockTypeGroup
@ -81,8 +72,6 @@ Rectangle {
plasmoid.configuration.panelSize = 0;
plasmoid.configuration.shadows = 2;
plasmoid.configuration.zoomLevel = 16;
plasmoid.configuration.autoDecreaseIconSize = true;
plasmoid.configuration.shrinkThickMargins = false;
}
}
}
@ -106,7 +95,6 @@ Rectangle {
plasmoid.configuration.panelShadows = true;
plasmoid.configuration.shadows = 0;
plasmoid.configuration.zoomLevel = 0;
plasmoid.configuration.autoDecreaseIconSize = false;
plasmoid.configuration.shrinkThickMargins = true;
}
}

Loading…
Cancel
Save