forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgallery.60
More file actions
97 lines (89 loc) · 3.1 KB
/
Copy pathgallery.60
File metadata and controls
97 lines (89 loc) · 3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/* LICENSE BEGIN
This file is part of the SixtyFPS Project -- https://sixtyfps.io
Copyright (c) 2020 Olivier Goffart <olivier.goffart@sixtyfps.io>
Copyright (c) 2020 Simon Hausmann <simon.hausmann@sixtyfps.io>
SPDX-License-Identifier: GPL-3.0-only
This file is also available under commercial licensing terms.
Please contact info@sixtyfps.io for more information.
LICENSE END */
import { Button, CheckBox, SpinBox, Slider, GroupBox, LineEdit, StandardListView } from "sixtyfps_widgets.60";
App := Window {
width: 500lx;
height: 700lx;
Rectangle {
color: #ecedeb;
width: parent.width;
height: parent.height;
}
GridLayout {
padding: 20lx;
spacing: 20lx;
Row {
GridLayout {
Row {
Text {
text: "Below are some of the standard widgets that";
}
}
Row {
Text {
text: "application developers can easily re-use.";
}
}
}
}
Row {
GroupBox {
title: "Button";
gallery_button := Button {
maximum_width: 120lx;
text: gallery_button.pressed ? "(pressed)" : "(not pressed)";
}
}
}
Row {
GroupBox {
title: "CheckBox";
checkbox := CheckBox {
maximum_width: 150lx;
text: checkbox.checked ? "(checked)" : "(unchecked)";
checked: true;
}
}
}
Row {
GroupBox {
title: "SpinBox";
SpinBox {
maximum_width: 120lx;
value: 42;
}
}
Rectangle {}
}
Row {
GroupBox {
title: "Slider";
Slider {
value: 42;
}
}
}
Row {
GroupBox {
title: "LineEdit";
LineEdit {
}
}
}
Row {
GroupBox {
title: "StandardListView";
StandardListView {
model: [{text: "Lorem"}, {text: "ipsum"},{text: "dolor"},{text: "sit"},{text: "amet"},{text: "consetetur"},{text: "sadipscing"},{text: "elitr"},{text: "sed"},{text: "diam"},{text: "nonumy"},{text: "eirmod"},{text: "tempor"},{text: "invidunt"},{text: "ut"},{text: "labore"},{text: "et"},{text: "dolore"},{text: "magna"},{text: "aliquyam"},{text: "erat"},{text: "Lorem"}, {text: "ipsum"},{text: "dolor"},{text: "sit"},{text: "amet"},{text: "consetetur"},{text: "sadipscing"},{text: "elitr"},{text: "sed"},{text: "diam"},{text: "nonumy"},{text: "eirmod"},{text: "tempor"},{text: "invidunt"},{text: "ut"},{text: "labore"},{text: "et"},{text: "dolore"},{text: "magna"},{text: "aliquyam"},{text: "erat"},
];
}
}
}
}
}