1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-23 13:33:50 +03:00

support iconSizes above 128px.

the user can set such sizes through the layout file
This commit is contained in:
Michail Vourlakos 2018-04-02 10:29:03 +03:00
parent 2f107ad4c7
commit bb5a4e4d52

View File

@ -161,7 +161,6 @@ PlasmaComponents.Page {
Layout.fillWidth: true
value: plasmoid.configuration.iconSize
minimumValue: 16
maximumValue: 128
stepSize: (!plasmoid.configuration.autoDecreaseIconSize
&& (plasmoid.configuration.advanced || (plasmoid.configuration.iconSize % 8 !== 0)))
|| dialog.dockIsPanel ? 1 : 8
@ -179,6 +178,12 @@ PlasmaComponents.Page {
Component.onCompleted: {
valueChanged.connect(updateIconSize);
if (plasmoid.configuration.iconSize>128) {
maximumValue = plasmoid.configuration.iconSize + 32
} else {
maximumValue = 128
}
}
Component.onDestruction: {