slint/demos/home-automation/ui/components/info.slint
2024-10-25 15:55:03 +02:00

20 lines
No EOL
704 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: MIT
import { Palette,Measurements,Colors } from "../common.slint";
import { AppState } from "../appState.slint";
import { HaText } from "general/haText.slint";
import { InnerShadowRectangle } from "general/innerShadowRectangle.slint";
export component Info {
in property <string> name;
in property <string> id;
in property <bool> full-screen: false;
tile := InnerShadowRectangle {
inner-color: Palette.info-alternate-background;
inner-shadow-blur: 40px;
// clip: true;
background: Palette.info-background;
border-radius: Measurements.tile-radius;
@children
}
}