Center navigation dots

Contributes to CL-1151
This commit is contained in:
Ian Paschal 2018-12-18 13:17:25 +01:00
parent 9b6e52a5be
commit 627c647fbc

View File

@ -211,7 +211,7 @@ Item
}
}
Item
Row
{
id: navigationDots
anchors
@ -220,23 +220,20 @@ Item
top: centerSection.bottom
topMargin: 36 * screenScaleFactor // TODO: Theme!
}
Row
spacing: 8 * screenScaleFactor // TODO: Theme!
Repeater
{
spacing: 8 * screenScaleFactor // TODO: Theme!
Repeater
model: OutputDevice.printers
Button
{
model: OutputDevice.printers
Button
background: Rectangle
{
background: Rectangle
{
color: model.index == currentIndex ? "#777777" : "#d8d8d8" // TODO: Theme!
radius: Math.floor(width / 2)
width: 12 * screenScaleFactor // TODO: Theme!
height: width // TODO: Theme!
}
onClicked: navigateTo(model.index)
color: model.index == currentIndex ? "#777777" : "#d8d8d8" // TODO: Theme!
radius: Math.floor(width / 2)
width: 12 * screenScaleFactor // TODO: Theme!
height: width // TODO: Theme!
}
onClicked: navigateTo(model.index)
}
}
}