mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-26 13:24:08 +00:00

* [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
22 lines
520 B
Text
22 lines
520 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import { UsecasesPalette } from "styling.slint";
|
|
|
|
export global DialogGlobal {
|
|
in-out property <length> window-width;
|
|
in-out property <length> window-height;
|
|
}
|
|
|
|
export component ModalDialog inherits PopupWindow {
|
|
width: DialogGlobal.window-width;
|
|
height: DialogGlobal.window-height;
|
|
|
|
Rectangle {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: UsecasesPalette.modal-background;
|
|
|
|
@children
|
|
}
|
|
}
|