diff --git a/resources/themes/cura/styles.qml b/resources/themes/cura/styles.qml index 856e39c0ac..4ccede85ff 100644 --- a/resources/themes/cura/styles.qml +++ b/resources/themes/cura/styles.qml @@ -104,7 +104,7 @@ QtObject { target: Qt.point(parent.x, y + height/2) arrowSize: UM.Theme.sizes.button_tooltip_arrow.width - color: UM.Theme.colors.button_tooltip + color: UM.Theme.colors.button_tooltip_border opacity: control.hovered ? 1.0 : 0.0; width: control.hovered ? button_tip.width + UM.Theme.sizes.button_tooltip.width : 0 @@ -113,6 +113,14 @@ QtObject { Behavior on width { NumberAnimation { duration: 100; } } Behavior on opacity { NumberAnimation { duration: 100; } } + UM.PointingRectangle { + color: UM.Theme.colors.button_tooltip; + anchors.fill: parent + anchors.margins: UM.Theme.sizes.default_lining.width + target: Qt.point(- UM.Theme.sizes.default_lining.width, parent.height/2) + arrowSize: parent.arrowSize + } + Label { id: button_tip diff --git a/resources/themes/cura/theme.json b/resources/themes/cura/theme.json index 5e014c40dc..2c02f731fe 100644 --- a/resources/themes/cura/theme.json +++ b/resources/themes/cura/theme.json @@ -72,9 +72,9 @@ "button_disabled": [24, 41, 77, 255], "button_disabled_text": [70, 84, 113, 255], - "button_tooltip": [24, 41, 77, 255], - "button_tooltip_border": [245, 245, 245, 255], - "button_tooltip_text": [255, 255, 255, 255], + "button_tooltip": [255, 255, 255, 255], + "button_tooltip_border": [24, 41, 77, 255], + "button_tooltip_text": [24, 41, 77, 255], "toggle_checked": [24, 41, 77, 255], "toggle_checked_border": [24, 41, 77, 255], @@ -196,7 +196,7 @@ "button_icon": [3, 3], "button_lining": [0, 0], - "button_tooltip": [1.2, 1.2], + "button_tooltip": [1.0, 1.3], "button_tooltip_arrow": [0.25, 0.25], "progressbar": [26.0, 0.8],