Cura/plugins/Marketplace/resources/qml/ManagePackagesButton.qml
Jelle Spijker fd409215c4
Tooltip shows point
Per UX request

Contributes to CURA-8558
2021-11-04 10:05:35 +01:00

46 lines
1.1 KiB
QML

// Copyright (c) 2021 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.
import UM 1.2 as UM
import Cura 1.6 as Cura
import QtQuick 2.15
import QtQuick.Controls 2.15
Button
{
id: root
width: childrenRect.width
height: childrenRect.height
hoverEnabled: true
property color borderColor: hovered ? UM.Theme.getColor("primary") : "transparent"
property color backgroundColor: hovered ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("action_button")
background: Rectangle
{
color: backgroundColor
border.color: borderColor
border.width: UM.Theme.getSize("default_lining").width
}
Cura.ToolTip
{
id: tooltip
tooltipText: catalog.i18nc("@info:tooltip", "Manage packages")
visible: root.hovered
}
UM.RecolorImage
{
id: icon
width: UM.Theme.getSize("section_icon").width
height: UM.Theme.getSize("section_icon").height
color: UM.Theme.getColor("icon")
source: UM.Theme.getIcon("Settings")
}
}