mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Add a background to the tooltip label so long strings also have background
Contributes to #57
This commit is contained in:
parent
46cd9e081b
commit
ddbb952d9c
1 changed files with 10 additions and 5 deletions
|
@ -103,12 +103,17 @@ QtObject {
|
||||||
opacity: control.hovered ? 1.0 : 0.0;
|
opacity: control.hovered ? 1.0 : 0.0;
|
||||||
Behavior on opacity { NumberAnimation { duration: 100; } }
|
Behavior on opacity { NumberAnimation { duration: 100; } }
|
||||||
|
|
||||||
Label {
|
Rectangle {
|
||||||
id: label
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter;
|
anchors.horizontalCenter: parent.horizontalCenter;
|
||||||
text: control.text.replace("&", "");
|
width: childrenRect.width;
|
||||||
font: UM.Theme.fonts.button_tooltip;
|
height: childrenRect.height;
|
||||||
color: UM.Theme.colors.button_tooltip_text;
|
|
||||||
|
Label {
|
||||||
|
id: label
|
||||||
|
text: control.text.replace("&", "");
|
||||||
|
font: UM.Theme.fonts.button_tooltip;
|
||||||
|
color: UM.Theme.colors.button_tooltip_text;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue