mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 07:04:34 +00:00
28 lines
No EOL
693 B
Text
28 lines
No EOL
693 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
import { TabWidget, 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: [
|
|
"Dashboard",
|
|
"Energy Flow",
|
|
"Weather",
|
|
"Statistics",
|
|
"Settings",
|
|
];
|
|
|
|
Dashboard {
|
|
index: 0;
|
|
current-index: i-tab-widget.selected-tab;
|
|
}
|
|
}
|
|
}
|
|
} |