mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-27 13:54:11 +00:00

These are showing off use-cases for Slint, but they're not examples showing individual Slint features. Also removed the old printerdemo while at it.
31 lines
882 B
Text
31 lines
882 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import { DemoPalette, Page, SpinBox, Label, PushButton } from "./common.slint";
|
|
import { WidePrinterQueueList } from "./printer_queue.slint";
|
|
|
|
|
|
export component PrintPage inherits Page {
|
|
has-back-button: true;
|
|
header: @tr("Print");
|
|
|
|
GridLayout {
|
|
padding-top: 46px /* header line height in design */
|
|
+ /* extra top-padding in design */ 27px;
|
|
spacing: 24px;
|
|
Row {
|
|
Text {
|
|
text: @tr("Printing-Queue");
|
|
color: DemoPalette.secondary-foreground-color;
|
|
font-size: DemoPalette.base-font-size * 1.125;
|
|
font-weight: 800;
|
|
}
|
|
}
|
|
|
|
Row {
|
|
queue := WidePrinterQueueList {
|
|
viewport-width: self.width;
|
|
}
|
|
}
|
|
}
|
|
}
|