mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-04 17:40:38 +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.
28 lines
No EOL
751 B
Text
28 lines
No EOL
751 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
import { TabWidget, TabItem, BarTileModel } from "widgets/widgets.slint";
|
|
import { Dashboard, WeatherAdapter } from "pages/pages.slint";
|
|
import { Header, HeaderAdapter } from "blocks/blocks.slint";
|
|
|
|
export component BigMain{
|
|
VerticalLayout {
|
|
Header {}
|
|
|
|
i-tab-widget := TabWidget {
|
|
tabs: [
|
|
{ text: "Dashboard" },
|
|
{ text: "Energy Flow" },
|
|
{ text: "Weather" },
|
|
{ text: "Statistics" },
|
|
{ text: "Settings" }
|
|
];
|
|
|
|
Dashboard {
|
|
index: 0;
|
|
current-index: i-tab-widget.selected-tab;
|
|
}
|
|
}
|
|
}
|
|
} |