| 1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
| 2 | // SPDX-License-Identifier: MIT |
| 3 | |
| 4 | import { UsecasesPalette } from "styling.slint" ; |
| 5 | |
| 6 | export global DialogGlobal { |
| 7 | in-out property <length> window-width; |
| 8 | in-out property <length> window-height; |
| 9 | } |
| 10 | |
| 11 | export component ModalDialog inherits PopupWindow { |
| 12 | width: DialogGlobal.window-width; |
| 13 | height: DialogGlobal.window-height; |
| 14 | |
| 15 | Rectangle { |
| 16 | width: 100%; |
| 17 | height: 100%; |
| 18 | background: UsecasesPalette.modal-background; |
| 19 | |
| 20 | @children |
| 21 | } |
| 22 | } |
| 23 | |