Revert "make the sizing of the toolbuttons more coherent"
This reverts commit 3887f5ec91
.
This commit is contained in:
parent
3887f5ec91
commit
c6c882521f
@ -45,23 +45,14 @@ T.ToolButton {
|
|||||||
flat: true
|
flat: true
|
||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
|
|
||||||
Item {
|
|
||||||
Layout.preferredWidth: Kirigami.Units.iconSizes.smallMedium + Kirigami.Units.largeSpacing
|
|
||||||
Layout.fillWidth: !label.visible
|
|
||||||
visible: icon.source.length > 0
|
|
||||||
PlasmaCore.IconItem {
|
PlasmaCore.IconItem {
|
||||||
id: icon
|
Layout.fillWidth: true
|
||||||
anchors.centerIn: parent
|
Layout.fillHeight: true
|
||||||
height: Kirigami.Units.iconSizes.smallMedium
|
|
||||||
width: Kirigami.Units.iconSizes.smallMedium
|
|
||||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||||
|
visible: source.length > 0
|
||||||
source: control.icon ? (control.icon.name || control.icon.source) : ""
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user