FluentUI/src/controls/FluTooltip.qml

24 lines
497 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
2023-03-03 18:19:48 +08:00
FluShadow{}
2023-02-28 18:29:00 +08:00
}
}