mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
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:
parent
ef1a605953
commit
eb1ba121a2
1 changed files with 2 additions and 1 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue