Delete old 'Toolbox' in favour of new Marketplace.

part of CURA-8588
This commit is contained in:
Remco Burema 2021-12-30 11:51:54 +01:00
parent cf7772a40a
commit b794ad6ed2
No known key found for this signature in database
GPG key ID: 215C49431D43F98C
55 changed files with 8 additions and 4822 deletions

View file

@ -83,53 +83,6 @@ Item
ExclusiveGroup { id: mainWindowHeaderMenuGroup }
}
// Shortcut button to quick access the Toolbox
Controls2.Button //TODO: Remove once new Marketplace is completed.
{
text: "Old Marketplace"
height: Math.round(0.5 * UM.Theme.getSize("main_window_header").height)
onClicked: Cura.Actions.browsePackages.trigger()
hoverEnabled: true
background: Rectangle
{
id: marketplaceButtonBorder
radius: UM.Theme.getSize("action_button_radius").width
color: UM.Theme.getColor("main_window_header_background")
border.width: UM.Theme.getSize("default_lining").width
border.color: UM.Theme.getColor("primary_text")
Rectangle
{
id: marketplaceButtonFill
anchors.fill: parent
radius: parent.radius
color: UM.Theme.getColor("primary_text")
opacity: parent.hovered ? 0.2 : 0
Behavior on opacity { NumberAnimation { duration: 100 } }
}
}
contentItem: Label
{
id: label
text: parent.text
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("primary_text")
width: contentWidth
verticalAlignment: Text.AlignVCenter
renderType: Text.NativeRendering
}
anchors
{
right: marketplaceButton.left
rightMargin: UM.Theme.getSize("default_margin").width
verticalCenter: parent.verticalCenter
}
}
Controls2.Button
{
id: marketplaceButton