slint/ui-libraries/material/examples/gallery/ui/main_window_adapter.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

12 lines
468 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: MIT
import { MaterialPalette } from "../../../src/material.slint";
export global MainWindowAdapter {
in property <length> width;
in property <length> height;
in property <bool> show_background;
out property <bool> break_layout: root.width < 852px;
out property <brush> background: root.show_background ? MaterialPalette.surface_container : MaterialPalette.background;
}