Add background to viewModeSelection

CURA-5785
This commit is contained in:
Jaime van Kessel 2018-11-13 16:02:45 +01:00
parent c9389dd9ab
commit 20e2f317de

View File

@ -26,6 +26,12 @@ Item
anchors.horizontalCenter: parent.horizontalCenter
spacing: UM.Theme.getSize("default_margin").width
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
{
// This item contains the views selector, a combobox that is dynamically created from
@ -34,7 +40,7 @@ Item
id: viewModeButton
style: UM.Theme.styles.combobox
anchors.centerIn: parent
model: UM.ViewModel { }
textRole: "name"
@ -70,6 +76,7 @@ Item
}
currentIndex: getActiveIndex()
}
}
Loader
{