Minor cleanup in the plotter example

Use a horizontal box instead of a horizontal layout
This commit is contained in:
Simon Hausmann 2021-08-19 09:46:18 +02:00
parent d5a969f804
commit 234dfd85b6

View file

@ -7,7 +7,7 @@
This file is also available under commercial licensing terms.
Please contact info@sixtyfps.io for more information.
LICENSE END */
import { Slider, GroupBox, VerticalBox } from "sixtyfps_widgets.60";
import { Slider, GroupBox, HorizontalBox, VerticalBox } from "sixtyfps_widgets.60";
export MainWindow := Window {
title: "SixtyFPS Plotter Integration Example";
@ -25,7 +25,7 @@ export MainWindow := Window {
Image {
source: root.render_plot(pitch-slider.value);
}
HorizontalLayout {
HorizontalBox {
Text {
text: "Pitch:";
font-weight: 600;