Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A8TNMgnEa7Kia5Wcz2kyDx
27 lines
694 B
QML
27 lines
694 B
QML
import QtQuick
|
|
import "."
|
|
|
|
// Shared tooltip bubble visual. Host inside a click-through overlay
|
|
// PanelWindow (see Bar/TrayTooltip.qml) - this only draws the label chrome.
|
|
Rectangle {
|
|
id: bubble
|
|
|
|
property string text: ""
|
|
|
|
radius: Theme.geometry.radiusMedium
|
|
color: Theme.colors.background
|
|
border.color: Theme.colors.border
|
|
border.width: 1
|
|
width: label.implicitWidth + Theme.geometry.padding * 2
|
|
height: label.implicitHeight + Theme.geometry.padding
|
|
|
|
Text {
|
|
id: label
|
|
anchors.centerIn: parent
|
|
text: bubble.text
|
|
color: Theme.colors.text
|
|
font.family: Theme.font.family
|
|
font.pixelSize: Theme.type.caption
|
|
}
|
|
}
|