From a6aec2d5bf69087803723488d64f6391f64b9852 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 30 Aug 2019 17:37:13 -0400 Subject: [PATCH] Fix HButton size on KDE --- src/qml/Base/HButton.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/qml/Base/HButton.qml b/src/qml/Base/HButton.qml index 8d322f73..bca772fa 100644 --- a/src/qml/Base/HButton.qml +++ b/src/qml/Base/HButton.qml @@ -13,6 +13,12 @@ Button { icon.color: theme.icons.colorize 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 label: contentItem.label