Fix the size of the check boxes in the settings page

In the first row the check box is smaller than elsewhere.
The standard height used for spin boxes and combo boxes is 32px, so check boxes should have the same.

Otherwise there are only labels on that layout row and those should have a flexible
height.
This commit is contained in:
Simon Hausmann 2021-04-30 15:58:33 +02:00
parent ef1a605953
commit eb1ba121a2

View file

@ -247,10 +247,11 @@ export CheckBox := Rectangle {
property <bool> checked;
property <string> text;
height: 32px;
HorizontalLayout {
spacing: 12px;
padding: 0;
height: 32px;
SquareButton {
img: checked ? @image-url("images/check.svg") : @image-url("");
clicked => { checked = !checked; }