mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 02:07:51 -06:00
Simplify the QML of application switcher
CURA-8421
This commit is contained in:
parent
9bf5d85be1
commit
fd0804646a
1 changed files with 70 additions and 80 deletions
|
@ -64,9 +64,7 @@ Item
|
||||||
|
|
||||||
opacity: opened ? 1 : 0
|
opacity: opened ? 1 : 0
|
||||||
Behavior on opacity { NumberAnimation { duration: 100 } }
|
Behavior on opacity { NumberAnimation { duration: 100 } }
|
||||||
padding: 0
|
padding: UM.Theme.getSize("wide_margin").width
|
||||||
width: contentWidth + 2 * UM.Theme.getSize("wide_margin").width
|
|
||||||
height: contentHeight + 2 * UM.Theme.getSize("wide_margin").width
|
|
||||||
|
|
||||||
contentItem: Item
|
contentItem: Item
|
||||||
{
|
{
|
||||||
|
@ -74,19 +72,13 @@ Item
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: UM.Theme.getSize("wide_margin").width
|
anchors.margins: UM.Theme.getSize("wide_margin").width
|
||||||
|
|
||||||
Column
|
|
||||||
{
|
|
||||||
id: contentsColumn
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.left: parent.left
|
|
||||||
|
|
||||||
width: ultimakerPlatformLinksGrid.width
|
|
||||||
|
|
||||||
Grid
|
Grid
|
||||||
{
|
{
|
||||||
id: ultimakerPlatformLinksGrid
|
id: ultimakerPlatformLinksGrid
|
||||||
columns: 3
|
columns: 3
|
||||||
spacing: UM.Theme.getSize("default_margin").width
|
spacing: UM.Theme.getSize("default_margin").width
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.left: parent.left
|
||||||
|
|
||||||
Repeater
|
Repeater
|
||||||
{
|
{
|
||||||
|
@ -161,8 +153,6 @@ Item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
background: UM.PointingRectangle
|
background: UM.PointingRectangle
|
||||||
{
|
{
|
||||||
color: UM.Theme.getColor("tool_panel_background")
|
color: UM.Theme.getColor("tool_panel_background")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue