mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:28:59 +08:00
Add background to viewModeSelection
CURA-5785
This commit is contained in:
parent
c9389dd9ab
commit
20e2f317de
@ -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…
x
Reference in New Issue
Block a user