[calamares] Use the ViewManager model to show steps
This commit is contained in:
parent
b5a09d2f83
commit
aeffda945f
@ -1,12 +1,35 @@
|
|||||||
import QtQuick 2.3
|
import QtQuick 2.3
|
||||||
|
import io.calamares.ui 1.0
|
||||||
|
import io.calamares.core 1.0
|
||||||
|
|
||||||
|
Column {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
id: hello
|
||||||
width: 200
|
width: 200
|
||||||
height: 100
|
height: 100
|
||||||
color: "red"
|
color: "red"
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "Hello, World!"
|
text: Branding.string(Branding.VersionedName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* perhaps we could show a branding image here */
|
||||||
|
|
||||||
|
Repeater {
|
||||||
|
model: ViewManager
|
||||||
|
Rectangle {
|
||||||
|
width: 200
|
||||||
|
height: 75
|
||||||
|
color: "black"
|
||||||
|
|
||||||
|
Text {
|
||||||
|
color: completed ? "green" : "yellow"
|
||||||
|
text: display
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user