mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-23 21:18:23 +00:00

* [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
23 lines
941 B
Text
23 lines
941 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
|
|
|
export component GroupBox {
|
|
in property title <=> native.title;
|
|
in property enabled <=> native.enabled;
|
|
in property <length> content-padding: -1px;
|
|
|
|
accessible-role: groupbox;
|
|
accessible-label: root.title;
|
|
accessible-enabled: root.enabled;
|
|
|
|
native := NativeGroupBox {
|
|
GridLayout {
|
|
padding-left: root.content-padding >= 0 ? root.content-padding : native.native-padding-left;
|
|
padding-right: root.content-padding >= 0 ? root.content-padding : native.native-padding-right;
|
|
padding-top: root.content-padding >= 0 ? root.content-padding : native.native-padding-top;
|
|
padding-bottom: root.content-padding >= 0 ? root.content-padding : native.native-padding-bottom;
|
|
|
|
@children
|
|
}
|
|
}
|
|
}
|