Revert "make the sizing of the toolbuttons more coherent"

This reverts commit 3887f5ec91.
This commit is contained in:
Marco Martin 2019-08-28 10:43:09 +02:00
parent 3887f5ec91
commit c6c882521f

View File

@ -45,23 +45,14 @@ T.ToolButton {
flat: true flat: true
contentItem: RowLayout { contentItem: RowLayout {
PlasmaCore.IconItem {
Item { Layout.fillWidth: true
Layout.preferredWidth: Kirigami.Units.iconSizes.smallMedium + Kirigami.Units.largeSpacing Layout.fillHeight: true
Layout.fillWidth: !label.visible colorGroup: PlasmaCore.ColorScope.colorGroup
visible: icon.source.length > 0 visible: source.length > 0
PlasmaCore.IconItem { source: control.icon ? (control.icon.name || control.icon.source) : ""
id: icon
anchors.centerIn: parent
height: Kirigami.Units.iconSizes.smallMedium
width: Kirigami.Units.iconSizes.smallMedium
colorGroup: PlasmaCore.ColorScope.colorGroup
source: control.icon ? (control.icon.name || control.icon.source) : ""
}
} }
Label { Label {
id: label
Layout.fillWidth: true Layout.fillWidth: true
visible: text.length > 0 visible: text.length > 0
text: control.Kirigami.MnemonicData.richTextLabel text: control.Kirigami.MnemonicData.richTextLabel