Eerste opzet
This commit is contained in:
33
ui/demo.slint
Normal file
33
ui/demo.slint
Normal file
@@ -0,0 +1,33 @@
|
||||
export component DemoWindow inherits Window {
|
||||
width: 1920px;
|
||||
height: 480px;
|
||||
|
||||
in property <[brush]> bar-colors;
|
||||
in property <string> window-title;
|
||||
|
||||
VerticalLayout {
|
||||
Rectangle {
|
||||
height: 60px;
|
||||
background: #2d2d2d;
|
||||
|
||||
Text {
|
||||
text: window-title;
|
||||
color: #ffffff;
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
horizontal-alignment: center;
|
||||
vertical-alignment: center;
|
||||
}
|
||||
}
|
||||
|
||||
HorizontalLayout {
|
||||
alignment: start;
|
||||
spacing: 0px;
|
||||
|
||||
for color in bar-colors: Rectangle {
|
||||
width: 50px;
|
||||
background: color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user