Fix main pane minimum size

This commit is contained in:
miruka
2020-05-01 00:55:34 -04:00
parent 2bb13bf7f7
commit 36a214bf1a
7 changed files with 18 additions and 56 deletions

View File

@@ -8,7 +8,7 @@ Button {
id: button
enabled: ! button.loading
spacing: theme.spacing
topPadding: padded ? spacing / (circle ? 1.75 : 1.5) : 0
topPadding: padded ? spacing / (circle ? 1.75 : 2) : 0
bottomPadding: topPadding
leftPadding: padded ? spacing / (circle ? 1.5 : 1) : 0
rightPadding: leftPadding

View File

@@ -18,6 +18,9 @@ HButton {
property alias contextMenu: contextMenuLoader.sourceComponent
Behavior on topPadding { HNumberAnimation {} }
Behavior on bottomPadding { HNumberAnimation {} }
Binding on topPadding {
value: spacing / 4
when: compact