slint/ui-libraries/material/examples/gallery/ui/main.slint
Olivier Goffart 4ce64c3478
material: Move the source code to ui-libraries/material/src
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
2025-09-24 15:28:06 +02:00

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;
}
}