mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-16 21:38:24 +00:00

That way we can create an archive with just the `src` that doesn't contains the docs and example that can be moved in that folder
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import {
|
|
MaterialWindow,
|
|
MaterialWindowAdapter,
|
|
ListItem,
|
|
MaterialSchemes,
|
|
MaterialScheme,
|
|
MaterialPalette,
|
|
DatePickerAdapter,
|
|
} from "../../../src/material.slint";
|
|
import { MainView, MainViewAdapter } from "./views/main_view.slint";
|
|
import { MainWindowAdapter } from "./main_window_adapter.slint";
|
|
export { NavigationViewAdapter } from "./views/navigation_view.slint";
|
|
export { MaterialWindowAdapter, ListItem, MaterialSchemes, MaterialScheme, MaterialPalette, MainViewAdapter, DatePickerAdapter }
|
|
export { OutlinedIcons } from "./icons.slint";
|
|
import "./fonts/Roboto-VariableFont.ttf";
|
|
|
|
export component MainWindow inherits MaterialWindow {
|
|
preferred-width: 600px;
|
|
preferred-height: 400px;
|
|
background: MainWindowAdapter.background;
|
|
default-font-family: "Roboto";
|
|
|
|
MainView {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
changed width => {
|
|
MainWindowAdapter.width = root.width;
|
|
}
|
|
|
|
changed height => {
|
|
MainWindowAdapter.height = root.height;
|
|
}
|
|
}
|