mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
checkbox: fixed min-height on all styles (#6647)
This commit is contained in:
parent
b874adbc1c
commit
de67a6d201
4 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@ export component CheckBox {
|
|||
|
||||
private property <color> text-color: CosmicPalette.foreground;
|
||||
|
||||
min-height: max(32px, layout.min-height);
|
||||
min-height: max(16px, layout.min-height);
|
||||
accessible-checkable: true;
|
||||
accessible-label: root.text;
|
||||
accessible-checked <=> root.checked;
|
||||
|
|
|
@ -15,7 +15,7 @@ export component CheckBox {
|
|||
private property <brush> background: checked && root.enabled ? CupertinoPalette.accent-background : CupertinoPalette.control-background;
|
||||
private property <brush> icon-color: CupertinoPalette.accent-foreground;
|
||||
|
||||
min-height: max(16px, i-layout.min-height);
|
||||
min-height: max(14px, i-layout.min-height);
|
||||
accessible-checkable: true;
|
||||
accessible-label: root.text;
|
||||
accessible-checked <=> root.checked;
|
||||
|
|
|
@ -14,7 +14,7 @@ export component CheckBox {
|
|||
|
||||
private property <color> text-color: FluentPalette.foreground;
|
||||
|
||||
min-height: max(32px, layout.min-height);
|
||||
min-height: max(18px, layout.min-height);
|
||||
accessible-checkable: true;
|
||||
accessible-label: root.text;
|
||||
accessible-checked <=> root.checked;
|
||||
|
|
|
@ -12,7 +12,7 @@ export component CheckBox {
|
|||
|
||||
callback toggled;
|
||||
|
||||
min-height: max(32px, i-layout.min-height);
|
||||
min-height: max(18px, i-layout.min-height);
|
||||
vertical-stretch: 0;
|
||||
accessible-label <=> i-text.text;
|
||||
accessible-checkable: true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue