1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-26 23:21:37 +03:00

maximum background width

This commit is contained in:
Johan Smith Agudelo Rodriguez 2017-01-13 01:17:07 -05:00
parent 03eeb6074d
commit 16078ed240

View File

@ -75,8 +75,8 @@ PlasmaComponents.Page {
function updateIconSize() {
if (!pressed) {
if (panelSizeSlider.value > value + 4)
panelSizeSlider.value = value + 4
if (panelSizeSlider.value > value + units.smallSpacing)
panelSizeSlider.value = value + units.smallSpacing
plasmoid.configuration.iconSize = value
syncGeometry.restart()
}
@ -145,8 +145,7 @@ PlasmaComponents.Page {
}
PlasmaComponents.Label {
text: Number(
(zoomSlider.value * 100) - 100).toFixed(0) + "%"
text: Number((zoomSlider.value * 100) - 100).toFixed(0) + "%"
horizontalAlignment: Text.AlignRight
Layout.minimumWidth: theme.mSize(theme.defaultFont).width * 4
}
@ -251,7 +250,7 @@ PlasmaComponents.Page {
value: plasmoid.configuration.panelSize
minimumValue: 0
maximumValue: plasmoid.configuration.iconSize + 4
maximumValue: plasmoid.configuration.iconSize + units.smallSpacing
stepSize: 2
function updatePanelSize() {