mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-02 00:34:26 +08:00
Center navigation dots
Contributes to CL-1151
This commit is contained in:
parent
9b6e52a5be
commit
627c647fbc
@ -211,7 +211,7 @@ Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item
|
Row
|
||||||
{
|
{
|
||||||
id: navigationDots
|
id: navigationDots
|
||||||
anchors
|
anchors
|
||||||
@ -220,23 +220,20 @@ Item
|
|||||||
top: centerSection.bottom
|
top: centerSection.bottom
|
||||||
topMargin: 36 * screenScaleFactor // TODO: Theme!
|
topMargin: 36 * screenScaleFactor // TODO: Theme!
|
||||||
}
|
}
|
||||||
Row
|
spacing: 8 * screenScaleFactor // TODO: Theme!
|
||||||
|
Repeater
|
||||||
{
|
{
|
||||||
spacing: 8 * screenScaleFactor // TODO: Theme!
|
model: OutputDevice.printers
|
||||||
Repeater
|
Button
|
||||||
{
|
{
|
||||||
model: OutputDevice.printers
|
background: Rectangle
|
||||||
Button
|
|
||||||
{
|
{
|
||||||
background: Rectangle
|
color: model.index == currentIndex ? "#777777" : "#d8d8d8" // TODO: Theme!
|
||||||
{
|
radius: Math.floor(width / 2)
|
||||||
color: model.index == currentIndex ? "#777777" : "#d8d8d8" // TODO: Theme!
|
width: 12 * screenScaleFactor // TODO: Theme!
|
||||||
radius: Math.floor(width / 2)
|
height: width // TODO: Theme!
|
||||||
width: 12 * screenScaleFactor // TODO: Theme!
|
|
||||||
height: width // TODO: Theme!
|
|
||||||
}
|
|
||||||
onClicked: navigateTo(model.index)
|
|
||||||
}
|
}
|
||||||
|
onClicked: navigateTo(model.index)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user