mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-17 05:47:42 +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
12 lines
468 B
Text
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;
|
|
}
|