mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 06:55:55 +08:00
Increase reliance on anchors instead of width-height.
CURA-8014
This commit is contained in:
parent
f1cbe1a958
commit
7304226aca
@ -45,12 +45,12 @@ Item
|
|||||||
{
|
{
|
||||||
top: topSpacer.bottom
|
top: topSpacer.bottom
|
||||||
bottom: whatsNewDots.top
|
bottom: whatsNewDots.top
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
horizontalCenter: parent.horizontalCenter
|
horizontalCenter: parent.horizontalCenter
|
||||||
margins: UM.Theme.getSize("default_margin").width
|
margins: UM.Theme.getSize("default_margin").width * 2
|
||||||
}
|
}
|
||||||
|
|
||||||
height: parent.height - (UM.Theme.getSize("default_margin").height * 2)
|
|
||||||
width: parent.width - (UM.Theme.getSize("default_margin").width * 2)
|
|
||||||
color: UM.Theme.getColor("viewport_overlay")
|
color: UM.Theme.getColor("viewport_overlay")
|
||||||
|
|
||||||
StackLayout
|
StackLayout
|
||||||
@ -60,11 +60,11 @@ Item
|
|||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
top: parent.top
|
top: parent.top
|
||||||
|
topMargin: UM.Theme.getSize("default_margin").width
|
||||||
horizontalCenter: parent.horizontalCenter
|
horizontalCenter: parent.horizontalCenter
|
||||||
margins: UM.Theme.getSize("default_margin").width / 2
|
|
||||||
}
|
}
|
||||||
height: parent.height - (UM.Theme.getSize("default_margin").height * 2)
|
height: parent.height
|
||||||
width: parent.width - (UM.Theme.getSize("default_margin").width * 2)
|
width: parent.width
|
||||||
|
|
||||||
currentIndex: whatsNewDots.currentIndex
|
currentIndex: whatsNewDots.currentIndex
|
||||||
|
|
||||||
@ -72,9 +72,9 @@ Item
|
|||||||
{
|
{
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
horizontalCenter: parent.horizontalCenter
|
|
||||||
top: parent.top
|
top: parent.top
|
||||||
margins: UM.Theme.getSize("default_margin").width / 2
|
topMargin: UM.Theme.getSize("default_margin").width / 2
|
||||||
|
horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
model: manager.subpageCount
|
model: manager.subpageCount
|
||||||
@ -83,9 +83,9 @@ Item
|
|||||||
{
|
{
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
horizontalCenter: parent.horizontalCenter
|
|
||||||
top: parent.top
|
top: parent.top
|
||||||
margins: UM.Theme.getSize("default_margin").width / 2
|
topMargin: UM.Theme.getSize("default_margin").width / 2
|
||||||
|
horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
color: UM.Theme.getColor("viewport_overlay")
|
color: UM.Theme.getColor("viewport_overlay")
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ Item
|
|||||||
topMargin: UM.Theme.getSize("default_margin").width
|
topMargin: UM.Theme.getSize("default_margin").width
|
||||||
}
|
}
|
||||||
width: parent.width - (UM.Theme.getSize("default_margin").width * 2)
|
width: parent.width - (UM.Theme.getSize("default_margin").width * 2)
|
||||||
height: (parent.height - (UM.Theme.getSize("default_margin").width * 2)) * 0.8
|
height: (parent.height - UM.Theme.getSize("default_margin").height) * 0.75
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
|
||||||
source: manager.getSubpageImageSource(index)
|
source: manager.getSubpageImageSource(index)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user