Restyle sidebar tooltips using pointingrectangle

Restyle toolbutton tooltips to match sidebar tooltips
This commit is contained in:
fieldOfView 2015-12-01 17:20:31 +01:00
parent 2fa29de4b9
commit 9a1a4d264e
3 changed files with 11 additions and 14 deletions

View file

@ -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_border
color: UM.Theme.colors.tooltip
opacity: control.hovered ? 1.0 : 0.0;
width: control.hovered ? button_tip.width + UM.Theme.sizes.button_tooltip.width : 0
@ -113,14 +113,6 @@ 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
@ -129,7 +121,7 @@ QtObject {
text: control.text;
font: UM.Theme.fonts.button_tooltip;
color: UM.Theme.colors.button_tooltip_text;
color: UM.Theme.colors.tooltip_text;
}
}