slint/examples/printerdemo_mcu/ui/print_page.slint
Olivier Goffart 3f8c3dd830 Fork the printer demo for adjusting to the MCU
This is basically the already modified printer demo from the wip/mcu
branch but separat. The images and fonts folder are shared though via
symlinks.
2022-03-07 22:39:06 +01:00

31 lines
894 B
Text

// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
import { DemoPalette, Page, SpinBox, Label, PushButton } from "./common.slint";
import { WidePrinterQueueList } from "./printer_queue.slint";
export PrintPage := Page {
has-back-button: true;
header: "Print";
GridLayout {
padding-top: 46px /* header line height in design */
+ /* extra top-padding in design */ 27px;
spacing: 24px;
Row {
Text {
text: "Printing-Queue";
color: DemoPalette.secondary-foreground-color;
font-size: DemoPalette.base-font-size * 1.125;
font-weight: 800;
}
}
Row {
queue := WidePrinterQueueList {
viewport-width: width;
}
}
}
}