Tooltips on all NIconButtons
This commit is contained in:
parent
c075b89dd2
commit
9990a88e90
19 changed files with 63 additions and 24 deletions
|
|
@ -94,7 +94,7 @@ Rectangle {
|
|||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
anchors.rightMargin: -6 * scaling * contentScale
|
||||
anchors.topMargin: Style.marginTiniest * scaling * contentScale
|
||||
anchors.topMargin: Style.marginTiniest * scaling * contentScale
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ RowLayout {
|
|||
|
||||
Behavior on x {
|
||||
NumberAnimation {
|
||||
duration: Style.animationFast
|
||||
duration: Style.animationFast
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ Window {
|
|||
function _showNow() {
|
||||
// Compute new size everytime we show the tooltip
|
||||
width = Math.max(50 * scaling, tooltipText.implicitWidth + Style.marginLarge * 2 * scaling)
|
||||
height = Math.max(50 * scaling, tooltipText.implicitHeight + Style.marginMedium * 2 * scaling)
|
||||
height = Math.max(40 * scaling, tooltipText.implicitHeight + Style.marginMedium * 2 * scaling)
|
||||
|
||||
if (!target) {
|
||||
return
|
||||
|
|
@ -121,7 +121,7 @@ Window {
|
|||
// Timer to trigger show animation
|
||||
Timer {
|
||||
id: showTimer
|
||||
interval: Style.animationFast / 15 // Very short delay to ensure component is visible
|
||||
interval: Style.animationFast / 15 // Very short delay to ensure component is visible
|
||||
repeat: false
|
||||
onTriggered: {
|
||||
// Animate to final values
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue