slint/examples/printerdemo_old/ui/copy_page.slint
Florian Blasius 520df46998
Update examples to new syntax (#2067)
* run slint-updater on examples
* manual syntax updates
2023-01-16 12:11:25 +00:00

44 lines
1.2 KiB
Text

// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
import { SpinBox, Button, CheckBox, Slider, GroupBox, StandardListView, GridBox } from "std-widgets.slint";
import { Label, Page, Preview } from "common.slint";
export component CopyPage inherits Page {
layout := GridLayout {
padding-left: 40px;
padding-right: 40px;
spacing: 20px;
padding-top: 20px;
padding-bottom: 20px;
Row {
preview := Preview {
height: root.height - layout.padding-top - layout.padding-bottom;
}
GridBox {
Row {
Label {
text: "Copies:";
}
}
Row {
SpinBox {
horizontal-stretch: 1;
}
}
Row {
Button {
text: "Print Page";
horizontal-stretch: 1;
}
}
Row {
Rectangle {}
}
}
}
}
}