slint/demos/home-automation/ui/demo-sw-renderer.slint
Nigel Breslaw 287a976bd0
Updated Home Automation demo (#7890)
Adds:

Kiosk mode. After 30 seconds demo will cycle through views.
Landscape support.
{ API } to work with the new data tab in live-preview.
SW Renderer support (use of PNG images over gradients, Rectangles, shadows, etc).
Removes side-bar and theming.
Refreshed look.
2025-03-21 19:04:58 +02:00

24 lines
650 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: MIT
import { MainScreen } from "components/mainView/mainScreen.slint";
import { AppState } from "appState.slint";
import { Api } from "api.slint";
export { Api }
// Running the demo with this file will run it in both portrait and with a UI designed
// for the Slint software renderer backend.
export component AppWindow inherits Window {
preferred-height: 1024px;
preferred-width: 600px;
MainScreen {
door-component-loaded: false;
initial-door-state: open;
}
init => {
AppState.graphics-accelerator-available = false;
}
}