repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by admin
quickshell/nuguland/PopupToolTip.qml
Rawimport QtQuick
import QtQuick.Templates as T
T.ToolTip {
id: root
required property Theme theme
padding: 10
margins: 8
delay: 500
timeout: 5000
implicitWidth: Math.min(320, label.implicitWidth + leftPadding + rightPadding)
implicitHeight: label.implicitHeight + topPadding + bottomPadding
x: parent ? (parent.width - width) / 2 : 0
y: parent ? parent.height + 6 : 0
closePolicy: T.Popup.CloseOnEscape | T.Popup.CloseOnPressOutsideParent
contentItem: Text {
id: label
text: root.text
textFormat: Text.PlainText
wrapMode: Text.Wrap
font.family: "IBM Plex Sans"
font.pixelSize: 13
color: root.theme.content.normal
}
background: Rectangle {
radius: 8
color: root.theme.content.backdrop
border.width: 1
border.color: root.theme.withAlpha(root.theme.ui.minor, 0.3)
}
}