moved padding to PackageTybeTab and replaced default margin with narrow margin

This commit is contained in:
10r3n20 2021-11-16 11:29:48 +01:00
parent 887ac4aef8
commit 74193ffff9
3 changed files with 1 additions and 3 deletions

View File

@ -20,7 +20,6 @@ Button
color: backgroundColor color: backgroundColor
border.color: transparent border.color: transparent
radius: Math.round(width * 0.5) radius: Math.round(width * 0.5)
} }
Cura.ToolTip Cura.ToolTip

View File

@ -100,14 +100,12 @@ Window
PackageTypeTab PackageTypeTab
{ {
width: implicitWidth width: implicitWidth
padding: UM.Theme.getSize("default_margin").width/2
text: catalog.i18nc("@button", "Plugins") text: catalog.i18nc("@button", "Plugins")
onClicked: content.source = "Plugins.qml" onClicked: content.source = "Plugins.qml"
} }
PackageTypeTab PackageTypeTab
{ {
width: implicitWidth width: implicitWidth
padding: Math.round(UM.Theme.getSize("default_margin").width / 2)
text: catalog.i18nc("@button", "Materials") text: catalog.i18nc("@button", "Materials")
onClicked: content.source = "Materials.qml" onClicked: content.source = "Materials.qml"
} }

View File

@ -8,6 +8,7 @@ import UM 1.0 as UM
TabButton TabButton
{ {
property string pageTitle property string pageTitle
padding: UM.Theme.getSize("narrow_margin").width
background: Rectangle background: Rectangle
{ {