mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Add one pixel margin to the view selector.
This commit is contained in:
parent
3ca749cdcb
commit
46c209a993
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue