mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 13:17:51 -06:00
Simplify margins and make them DPI aware
This commit is contained in:
parent
ed8954c1db
commit
fd09a1959b
2 changed files with 6 additions and 20 deletions
|
@ -19,8 +19,8 @@ UM.Dialog
|
||||||
height: 400 * Screen.devicePixelRatio
|
height: 400 * Screen.devicePixelRatio
|
||||||
minimumHeight: 400 * Screen.devicePixelRatio
|
minimumHeight: 400 * Screen.devicePixelRatio
|
||||||
maximumHeight: minimumHeight
|
maximumHeight: minimumHeight
|
||||||
property int comboboxHeight: 15
|
property int comboboxHeight: 15 * Screen.devicePixelRatio
|
||||||
property int spacerHeight: 10
|
property int spacerHeight: 10 * Screen.devicePixelRatio
|
||||||
onClosing: manager.notifyClosed()
|
onClosing: manager.notifyClosed()
|
||||||
onVisibleChanged:
|
onVisibleChanged:
|
||||||
{
|
{
|
||||||
|
@ -33,15 +33,8 @@ UM.Dialog
|
||||||
}
|
}
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
anchors.top: parent.top
|
anchors.fille: parent
|
||||||
anchors.bottom: parent.bottom
|
anchors.margins: 20 * Screen.devicePixelRatio
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
|
|
||||||
anchors.topMargin: 20
|
|
||||||
anchors.bottomMargin: 20
|
|
||||||
anchors.leftMargin:20
|
|
||||||
anchors.rightMargin: 20
|
|
||||||
|
|
||||||
UM.I18nCatalog
|
UM.I18nCatalog
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,15 +41,8 @@ UM.Dialog
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
anchors.top: parent.top
|
anchors.fill: parent
|
||||||
anchors.bottom: parent.bottom
|
anchors.margins: 20 * Screen.devicePixelRatio
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
|
|
||||||
anchors.topMargin: 20
|
|
||||||
anchors.bottomMargin: 20
|
|
||||||
anchors.leftMargin:20
|
|
||||||
anchors.rightMargin: 20
|
|
||||||
|
|
||||||
UM.SettingDefinitionsModel
|
UM.SettingDefinitionsModel
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue