|
@@ -7,29 +7,30 @@ import QtQuick.Controls 2.1
|
|
|
import UM 1.1 as UM
|
|
|
import Cura 1.0 as Cura
|
|
|
|
|
|
-Button
|
|
|
+UM.RecolorImage
|
|
|
{
|
|
|
id: widget
|
|
|
|
|
|
- implicitHeight: UM.Theme.getSize("section_icon").height
|
|
|
- implicitWidth: UM.Theme.getSize("section_icon").width
|
|
|
+ //implicitHeight: UM.Theme.getSize("section_icon").height
|
|
|
+ //implicitWidth: UM.Theme.getSize("section_icon").width
|
|
|
|
|
|
- background: UM.RecolorImage
|
|
|
- {
|
|
|
- id: moreInformationIcon
|
|
|
+ source: UM.Theme.getIcon("info")
|
|
|
+ width: UM.Theme.getSize("section_icon").width
|
|
|
+ height: UM.Theme.getSize("section_icon").height
|
|
|
|
|
|
- source: UM.Theme.getIcon("info")
|
|
|
- width: UM.Theme.getSize("section_icon").width
|
|
|
- height: UM.Theme.getSize("section_icon").height
|
|
|
+ sourceSize.width: width
|
|
|
+ sourceSize.height: height
|
|
|
|
|
|
- sourceSize.width: width
|
|
|
- sourceSize.height: height
|
|
|
+ color: popup.opened ? UM.Theme.getColor("primary") : UM.Theme.getColor("text_medium")
|
|
|
|
|
|
- color: widget.hovered ? UM.Theme.getColor("primary") : UM.Theme.getColor("text_medium")
|
|
|
+ MouseArea
|
|
|
+ {
|
|
|
+ anchors.fill: parent
|
|
|
+ hoverEnabled: true
|
|
|
+ onEntered: popup.open()
|
|
|
+ onExited: popup.close()
|
|
|
}
|
|
|
|
|
|
- onClicked: popup.opened ? popup.close() : popup.open()
|
|
|
-
|
|
|
Popup
|
|
|
{
|
|
|
id: popup
|
|
@@ -39,6 +40,9 @@ Button
|
|
|
|
|
|
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
|
|
|
|
|
|
+ opacity: opened ? 1 : 0
|
|
|
+ Behavior on opacity { NumberAnimation { duration: 100 } }
|
|
|
+
|
|
|
contentItem: PrintJobInformation
|
|
|
{
|
|
|
id: printJobInformation
|
|
@@ -47,8 +51,6 @@ Button
|
|
|
|
|
|
background: UM.PointingRectangle
|
|
|
{
|
|
|
- opacity: visible ? 1 : 0
|
|
|
- Behavior on opacity { NumberAnimation { duration: 100 } }
|
|
|
color: UM.Theme.getColor("tool_panel_background")
|
|
|
borderColor: UM.Theme.getColor("lining")
|
|
|
borderWidth: UM.Theme.getSize("default_lining").width
|