mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Moved ManagePackagesButton to its own file
For better readability Contributes to CURA-8558
This commit is contained in:
parent
86d5d315bc
commit
b53a9840f3
2 changed files with 45 additions and 33 deletions
|
@ -75,45 +75,13 @@ Window
|
|||
Layout.preferredWidth: parent.width
|
||||
Layout.preferredHeight: childrenRect.height
|
||||
|
||||
Button
|
||||
ManagePackagesButton
|
||||
{
|
||||
id: managePackagesButton
|
||||
|
||||
hoverEnabled: true
|
||||
|
||||
width: childrenRect.width
|
||||
height: childrenRect.height
|
||||
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
||||
|
||||
background: Rectangle
|
||||
{
|
||||
color: UM.Theme.getColor("action_button")
|
||||
border.color: "transparent"
|
||||
border.width: UM.Theme.getSize("default_lining").width
|
||||
}
|
||||
|
||||
Cura.ToolTip
|
||||
{
|
||||
id: managePackagesTooltip
|
||||
|
||||
tooltipText: catalog.i18nc("@info:tooltip", "Manage packages")
|
||||
arrowSize: 0
|
||||
visible: managePackagesButton.hovered
|
||||
}
|
||||
|
||||
UM.RecolorImage
|
||||
{
|
||||
id: managePackagesIcon
|
||||
|
||||
width: UM.Theme.getSize("section_icon").width
|
||||
height: UM.Theme.getSize("section_icon").height
|
||||
|
||||
color: UM.Theme.getColor("icon")
|
||||
source: UM.Theme.getIcon("Settings")
|
||||
}
|
||||
|
||||
onClicked:
|
||||
{
|
||||
content.source = "ManagedPackages.qml"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue