1786048673

This commit is contained in:
2026-08-06 22:37:53 +02:00
parent b700073b17
commit 54ae9fb4c5
161 changed files with 8630 additions and 1 deletions

View File

@@ -0,0 +1,42 @@
// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: MIT
import {
MaterialText,
OutlinedCard,
MaterialTypography,
MaterialStyleMetrics
} from "../material.slint";
export component ComponentCard {
in property <string> title;
HorizontalLayout {
alignment: center;
VerticalLayout {
spacing: 4px;
alignment: start;
MaterialText {
horizontal_alignment: center;
text: root.title;
style: MaterialTypography.title_medium;
}
OutlinedCard {
min-width: 360px;
VerticalLayout {
padding_left: 2px;
padding_right: self.padding_left;
padding_top: MaterialStyleMetrics.padding_8;
padding_bottom: self.padding_top;
spacing: MaterialStyleMetrics.spacing_8;
@children
}
}
}
}
}

31
ui/components/group.slint Normal file
View File

@@ -0,0 +1,31 @@
// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: MIT
import {
MaterialText,
MaterialPalette,
MaterialTypography
} from "../material.slint";
export component Group {
in property <string> title;
Rectangle {
border_radius: 12px;
background: MaterialPalette.surface_bright;
VerticalLayout {
alignment: start;
padding: 8px;
spacing: 16px;
MaterialText {
horizontal_alignment: center;
text: root.title;
style: MaterialTypography.headline_small;
}
@children
}
}
}

View File

@@ -0,0 +1,24 @@
// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: MIT
import {
IconButton,
MaterialText
} from "../material.slint";
export component TextIconButton {
in property <image> icon <=> button.icon;
in property <string> text <=> label.text;
VerticalLayout {
HorizontalLayout {
alignment: center;
button := IconButton {}
}
label := MaterialText {
horizontal_alignment: center;
}
}
}