1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-11 13:18:13 +03:00

when by 1px the applet size for panels

This commit is contained in:
Michail Vourlakos 2018-02-17 19:33:05 +02:00
parent 1a3cb13094
commit e775da4a41
3 changed files with 8 additions and 2 deletions

View File

@ -162,8 +162,9 @@ PlasmaComponents.Page {
value: plasmoid.configuration.iconSize
minimumValue: 16
maximumValue: 128
stepSize: !plasmoid.configuration.autoDecreaseIconSize
&& (plasmoid.configuration.advanced || (plasmoid.configuration.iconSize % 8 !== 0)) ? 1 : 8
stepSize: (!plasmoid.configuration.autoDecreaseIconSize
&& (plasmoid.configuration.advanced || (plasmoid.configuration.iconSize % 8 !== 0)))
|| dialog.dockIsPanel ? 1 : 8
function updateIconSize() {
if (!pressed) {

View File

@ -36,6 +36,8 @@ PlasmaComponents.Page {
//fix the height binding loop when showing the configuration window
Layout.maximumHeight: 26*theme.mSize(theme.defaultFont).height + units.smallSpacing * 2
property alias dockTypeSelection: _dockTypeSelection
ColumnLayout {
id: content
@ -59,6 +61,7 @@ PlasmaComponents.Page {
}
TypeSelection{
id: _dockTypeSelection
horizontal: true
}
}

View File

@ -47,6 +47,8 @@ FocusScope {
LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft
LayoutMirroring.childrenInherit: true
readonly property bool dockIsPanel: behaviorPage.dockTypeSelection.isPanel
property bool panelIsVertical: plasmoid.formFactor === PlasmaCore.Types.Vertical
property int subGroupSpacing: units.largeSpacing + units.smallSpacing * 1.5