| 1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
| 2 | // SPDX-License-Identifier: MIT |
| 3 | |
| 4 | |
| 5 | import { TabWidget, TabItem, BarTileModel } from "widgets/widgets.slint" ; |
| 6 | import { Dashboard, WeatherAdapter } from "pages/pages.slint" ; |
| 7 | import { Header, HeaderAdapter } from "blocks/blocks.slint" ; |
| 8 | |
| 9 | export component BigMain{ |
| 10 | VerticalLayout { |
| 11 | Header {} |
| 12 | |
| 13 | i-tab-widget := TabWidget { |
| 14 | tabs: [ |
| 15 | { text: "Dashboard" }, |
| 16 | { text: "Energy Flow" }, |
| 17 | { text: "Weather" }, |
| 18 | { text: "Statistics" }, |
| 19 | { text: "Settings" } |
| 20 | ]; |
| 21 | |
| 22 | Dashboard { |
| 23 | index: 0; |
| 24 | current-index: i-tab-widget.selected-tab; |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | } |