FluentUI/src/controls/FluTooltip.qml

25 lines
544 B
QML
Raw Normal View History

2023-02-28 18:29:00 +08:00
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtGraphicalEffects 1.15
import FluentUI 1.0
ToolTip {
id:tool_tip
contentItem: FluText {
text: tool_tip.text
font: tool_tip.font
2023-02-28 23:57:55 +08:00
fontStyle: FluText.BodyLarge
2023-02-28 18:29:00 +08:00
padding: 4
wrapMode: Text.WrapAnywhere
}
background: Rectangle{
anchors.fill: parent
color: FluApp.isDark ? Qt.rgba(50/255,49/255,48/255,1) : Qt.rgba(1,1,1,1)
radius: 5
layer.enabled: true
2023-03-01 11:58:30 +08:00
layer.effect: FluDropShadow {}
2023-02-28 18:29:00 +08:00
}
}