slint/examples/opengl_underlay/scene.slint
Tobias Hunger 940d1d9e2b
Use slint logo without text for window icons
... but slint logo with name everywhere else
2022-02-08 11:07:48 +01:00

36 lines
1.2 KiB
Text

// Copyright © SixtyFPS GmbH <info@sixtyfps.io>
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
import { ScrollView, Button, CheckBox, SpinBox, Slider, GroupBox, LineEdit, StandardListView,
ComboBox, HorizontalBox, VerticalBox, GridBox, TabWidget, TextEdit, AboutSixtyFPS } from "std-widgets.slint";
App := Window {
preferred-width: 500px;
preferred-height: 600px;
title: "Slint OpenGL Underlay Example";
icon: @image-url("../../logo/slint-logo-small-light-128x128.png");
property <bool> rotation-enabled <=> apply-rotation.checked;
VerticalBox {
Rectangle {
background: #ffffff92;
HorizontalBox {
Text {
text: "This text is rendered using Slint. The animation below is rendered using OpenGL code.";
wrap: word-wrap;
}
VerticalLayout {
alignment: start;
apply-rotation := CheckBox {
checked: true;
text: "Rotate the OpenGL underlay";
}
}
}
}
Rectangle {}
}
}