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
bottomPadding: background.bottomMargin
spacing: PlasmaCore.Units.smallSpacing
hoverEnabled: !Kirigami.Settings.tabletMode
Kirigami.MnemonicData.enabled: control.enabled && control.visible

View File

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

View File

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