mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-23 19:01:05 -07:00
Add a rectangle surrounding the settings listview
Contributes to CURA-5941.
This commit is contained in:
parent
4c468831f0
commit
ce6a0676dd
6 changed files with 43 additions and 20 deletions
|
|
@ -91,17 +91,36 @@ Item
|
|||
}
|
||||
}
|
||||
|
||||
Cura.SettingView
|
||||
Rectangle
|
||||
{
|
||||
anchors
|
||||
{
|
||||
top: tabBar.visible ? tabBar.bottom : globalProfileRow.bottom
|
||||
topMargin: UM.Theme.getSize("default_margin").height
|
||||
left: parent.left
|
||||
leftMargin: parent.padding
|
||||
right: parent.right
|
||||
rightMargin: parent.padding
|
||||
bottom: parent.bottom
|
||||
topMargin: -UM.Theme.getSize("default_lining").width
|
||||
bottomMargin: -UM.Theme.getSize("default_lining").width
|
||||
}
|
||||
z: tabBar.z - 1
|
||||
// Don't show the border when only one extruder
|
||||
border.color: tabBar.visible ? UM.Theme.getColor("lining") : "transparent"
|
||||
border.width: UM.Theme.getSize("default_lining").width
|
||||
|
||||
Cura.SettingView
|
||||
{
|
||||
anchors
|
||||
{
|
||||
fill: parent
|
||||
topMargin: UM.Theme.getSize("default_margin").height
|
||||
leftMargin: UM.Theme.getSize("default_margin").width
|
||||
// Small space for the scrollbar
|
||||
rightMargin: UM.Theme.getSize("narrow_margin").width
|
||||
// Compensate for the negative margin in the parent
|
||||
bottomMargin: UM.Theme.getSize("default_lining").width
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue