mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-29 19:17:05 +00:00
These are showing off use-cases for Slint, but they're not examples showing individual Slint features. Also removed the old printerdemo while at it.
26 lines
No EOL
632 B
Text
26 lines
No EOL
632 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import { Theme } from "../theme.slint";
|
|
|
|
export component GroupBox {
|
|
in property <string> title <=> i-title.text;
|
|
in property <length> spacing;
|
|
|
|
layout := VerticalLayout {
|
|
spacing: Theme.spaces.medium;
|
|
|
|
i-title := Text {
|
|
horizontal-alignment: left;
|
|
color: Theme.palette.white;
|
|
font-size: Theme.typo.header.size;
|
|
font-weight: Theme.typo.header.weight;
|
|
}
|
|
|
|
i-layout := HorizontalLayout {
|
|
spacing: root.spacing;
|
|
|
|
@children
|
|
}
|
|
}
|
|
} |