mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Add background to viewModeSelection
CURA-5785
This commit is contained in:
parent
c9389dd9ab
commit
20e2f317de
1 changed files with 39 additions and 32 deletions
|
|
@ -26,6 +26,12 @@ Item
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
spacing: UM.Theme.getSize("default_margin").width
|
spacing: UM.Theme.getSize("default_margin").width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
color: UM.Theme.getColor("tool_panel_background")
|
||||||
|
width: viewModeButton.width + 2 * UM.Theme.getSize("default_margin").width
|
||||||
|
height: parent.height
|
||||||
ComboBox
|
ComboBox
|
||||||
{
|
{
|
||||||
// This item contains the views selector, a combobox that is dynamically created from
|
// This item contains the views selector, a combobox that is dynamically created from
|
||||||
|
|
@ -34,7 +40,7 @@ Item
|
||||||
id: viewModeButton
|
id: viewModeButton
|
||||||
|
|
||||||
style: UM.Theme.styles.combobox
|
style: UM.Theme.styles.combobox
|
||||||
|
anchors.centerIn: parent
|
||||||
model: UM.ViewModel { }
|
model: UM.ViewModel { }
|
||||||
textRole: "name"
|
textRole: "name"
|
||||||
|
|
||||||
|
|
@ -70,6 +76,7 @@ Item
|
||||||
}
|
}
|
||||||
currentIndex: getActiveIndex()
|
currentIndex: getActiveIndex()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Loader
|
Loader
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue