Use the spacing property for the spacing between Button/ToolButton icons and labels

This commit is contained in:
Noah Davis 2020-08-30 21:19:51 -04:00
parent 7838a4ecc9
commit 4980e4e985
3 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,8 @@ T.Button {
rightPadding: background.rightMargin rightPadding: background.rightMargin
bottomPadding: background.bottomMargin bottomPadding: background.bottomMargin
spacing: PlasmaCore.Units.smallSpacing
hoverEnabled: !Kirigami.Settings.tabletMode hoverEnabled: !Kirigami.Settings.tabletMode
Kirigami.MnemonicData.enabled: control.enabled && control.visible Kirigami.MnemonicData.enabled: control.enabled && control.visible

View File

@ -26,6 +26,8 @@ T.ToolButton {
rightPadding: background.rightMargin rightPadding: background.rightMargin
bottomPadding: background.bottomMargin bottomPadding: background.bottomMargin
spacing: PlasmaCore.Units.smallSpacing
hoverEnabled: !Kirigami.Settings.tabletMode hoverEnabled: !Kirigami.Settings.tabletMode
Kirigami.MnemonicData.enabled: control.enabled && control.visible Kirigami.MnemonicData.enabled: control.enabled && control.visible

View File

@ -20,6 +20,9 @@ GridLayout {
PlasmaCore.ColorScope.inherit: true PlasmaCore.ColorScope.inherit: true
columns: parent.display == T.Button.TextBesideIcon ? 2 : 1 columns: parent.display == T.Button.TextBesideIcon ? 2 : 1
rowSpacing: parent.spacing
columnSpacing: rowSpacing
PlasmaCore.IconItem { PlasmaCore.IconItem {
id: icon id: icon