Fix HButton size on KDE

This commit is contained in:
miruka 2019-08-30 17:37:13 -04:00
parent 8a7e140163
commit a6aec2d5bf

View File

@ -13,6 +13,12 @@ Button {
icon.color: theme.icons.colorize icon.color: theme.icons.colorize
enabled: ! loading enabled: ! loading
// Must be explicitely set to display correctly on KDE, but no need on i3?
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
readonly property alias iconItem: contentItem.icon readonly property alias iconItem: contentItem.icon
readonly property alias label: contentItem.label readonly property alias label: contentItem.label