mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 06:03:57 -06:00
Revert "Add new button to open the Marketplace"
This reverts commit 648aa3d84c
.
Apparently we don't want to retain the old Toolbox alongside, not even during development.
Contributes to issue CURA-8556.
This commit is contained in:
parent
73ad2a4e08
commit
aa4b7ddb8b
1 changed files with 4 additions and 34 deletions
|
@ -86,6 +86,7 @@ Item
|
||||||
// Shortcut button to quick access the Toolbox
|
// Shortcut button to quick access the Toolbox
|
||||||
Controls2.Button
|
Controls2.Button
|
||||||
{
|
{
|
||||||
|
id: marketplaceButton
|
||||||
text: catalog.i18nc("@action:button", "Marketplace")
|
text: catalog.i18nc("@action:button", "Marketplace")
|
||||||
height: Math.round(0.5 * UM.Theme.getSize("main_window_header").height)
|
height: Math.round(0.5 * UM.Theme.getSize("main_window_header").height)
|
||||||
onClicked: Cura.Actions.browsePackages.trigger()
|
onClicked: Cura.Actions.browsePackages.trigger()
|
||||||
|
@ -106,7 +107,7 @@ Item
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: parent.radius
|
radius: parent.radius
|
||||||
color: UM.Theme.getColor("primary_text")
|
color: UM.Theme.getColor("primary_text")
|
||||||
opacity: parent.hovered ? 0.2 : 0
|
opacity: marketplaceButton.hovered ? 0.2 : 0
|
||||||
Behavior on opacity { NumberAnimation { duration: 100 } }
|
Behavior on opacity { NumberAnimation { duration: 100 } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -114,7 +115,7 @@ Item
|
||||||
contentItem: Label
|
contentItem: Label
|
||||||
{
|
{
|
||||||
id: label
|
id: label
|
||||||
text: parent.text
|
text: marketplaceButton.text
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
color: UM.Theme.getColor("primary_text")
|
color: UM.Theme.getColor("primary_text")
|
||||||
width: contentWidth
|
width: contentWidth
|
||||||
|
@ -124,7 +125,7 @@ Item
|
||||||
|
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
right: marketplaceButton.left
|
right: applicationSwitcher.left
|
||||||
rightMargin: UM.Theme.getSize("default_margin").width
|
rightMargin: UM.Theme.getSize("default_margin").width
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
@ -149,37 +150,6 @@ Item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Controls2.Button
|
|
||||||
{
|
|
||||||
id: marketplaceButton
|
|
||||||
width: Math.round(0.5 * UM.Theme.getSize("main_window_header").height)
|
|
||||||
height: width
|
|
||||||
anchors
|
|
||||||
{
|
|
||||||
verticalCenter: parent.verticalCenter
|
|
||||||
right: applicationSwitcher.left
|
|
||||||
rightMargin: UM.Theme.getSize("default_margin").width
|
|
||||||
}
|
|
||||||
|
|
||||||
background: UM.RecolorImage
|
|
||||||
{
|
|
||||||
anchors.fill: parent
|
|
||||||
color: UM.Theme.getColor("primary_text")
|
|
||||||
source: UM.Theme.getIcon("Shop")
|
|
||||||
|
|
||||||
Rectangle
|
|
||||||
{
|
|
||||||
anchors.fill: parent
|
|
||||||
radius: UM.Theme.getSize("action_button_radius").width
|
|
||||||
color: UM.Theme.getColor("primary_text")
|
|
||||||
opacity: marketplaceButton.hovered ? 0.2 : 0
|
|
||||||
Behavior on opacity { NumberAnimation { duration: 100; } }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: Cura.Actions.browsePackages.trigger()
|
|
||||||
}
|
|
||||||
|
|
||||||
ApplicationSwitcher
|
ApplicationSwitcher
|
||||||
{
|
{
|
||||||
id: applicationSwitcher
|
id: applicationSwitcher
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue