FluTooltip.qml 462 B

123456789101112131415161718192021222324
  1. import QtQuick
  2. import QtQuick.Controls
  3. import FluentUI
  4. ToolTip {
  5. id:tool_tip
  6. // property var font: FluTextStyle.Body
  7. contentItem: FluText {
  8. text: tool_tip.text
  9. // font: tool_tip.font
  10. padding: 4
  11. wrapMode: Text.WrapAnywhere
  12. }
  13. background: Rectangle{
  14. anchors.fill: parent
  15. color: FluTheme.dark ? Qt.rgba(50/255,49/255,48/255,1) : Qt.rgba(1,1,1,1)
  16. radius: 5
  17. FluShadow{}
  18. }
  19. }