Add one pixel margin to the view selector.

This commit is contained in:
Diego Prado Gesto 2018-12-06 14:45:24 +01:00
parent 3ca749cdcb
commit 46c209a993
2 changed files with 4 additions and 2 deletions

View file

@ -13,7 +13,7 @@ Column
Label Label
{ {
text: catalog.i18nc("@label", "Network connected printers") text: catalog.i18nc("@label", "Connected printers")
visible: networkedPrintersModel.items.length > 0 visible: networkedPrintersModel.items.length > 0
leftPadding: UM.Theme.getSize("default_margin").width leftPadding: UM.Theme.getSize("default_margin").width
height: visible ? contentHeight + 2 * UM.Theme.getSize("default_margin").height : 0 height: visible ? contentHeight + 2 * UM.Theme.getSize("default_margin").height : 0

View file

@ -74,6 +74,8 @@ Cura.ExpandableComponent
{ {
id: viewSelectorPopup id: viewSelectorPopup
width: viewSelector.width - 2 * viewSelector.popupPadding width: viewSelector.width - 2 * viewSelector.popupPadding
leftPadding: UM.Theme.getSize("default_lining").width
rightPadding: UM.Theme.getSize("default_lining").width
// For some reason the height/width of the column gets set to 0 if this is not set... // For some reason the height/width of the column gets set to 0 if this is not set...
Component.onCompleted: Component.onCompleted:
@ -91,7 +93,7 @@ Cura.ExpandableComponent
{ {
id: viewsSelectorButton id: viewsSelectorButton
text: model.name text: model.name
width: parent.width width: parent.width - viewSelectorPopup.leftPadding - viewSelectorPopup.rightPadding
height: UM.Theme.getSize("action_button").height height: UM.Theme.getSize("action_button").height
leftPadding: UM.Theme.getSize("default_margin").width leftPadding: UM.Theme.getSize("default_margin").width
rightPadding: UM.Theme.getSize("default_margin").width rightPadding: UM.Theme.getSize("default_margin").width