slint/demos/usecases/ui/widgets/dialog.slint
FloVanGH 0ce68f2922
usecases demo: adjust material style for android (#7766)
* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-04 09:05:35 +00:00

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