ButtonContent: Center the GridLayout itself
When setting an icon width/height, a maximum size is set on the relevant icon so it will never be resized larger, despite the outer Grid being fillWidth/fillHeight, and therefore placed in the default left alignment.
6.3?
Before:
After:
PC3.ToolButton {
Layout.minimumWidth: 100
display: PC3.AbstractButton.IconOnly
icon.width: Kirigami.Units.iconSizes.small
icon.height: Kirigami.Units.iconSizes.small
icon.name: "speedometer"
font: Kirigami.Theme.smallFont
text: "100%"
checkable: true
}
Edited by Kai Uwe Broulik