import QtQuick import QtQuick.Controls import "../theme" // In-window hover hint styled like the bar's tooltip popout. Declare it as a // child of the hovered item instead of using the attached ToolTip, which only // gets the stock Basic style. ToolTip { id: root padding: 7 leftPadding: 12 rightPadding: 12 y: -implicitHeight - 6 font.pixelSize: 12 contentItem: Text { text: root.text font: root.font color: Theme.text wrapMode: Text.Wrap } background: GlassPanel { surfaceOpacity: Theme.panelOpacity radius: Math.min(Theme.radius, height / 2) } enter: Transition { NumberAnimation { property: "opacity" from: 0 to: 1 duration: Theme.duration / 2 } } exit: Transition { NumberAnimation { property: "opacity" from: 1 to: 0 duration: Theme.duration / 2 } } }