This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles/mutable_config/quickshell/components/Shared/Tooltip.qml
T

27 lines
719 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: Theme.geometry.borderWidth
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
}
}