FluShadow.qml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import QtQuick
  2. import QtQuick.Controls
  3. import FluentUI
  4. Item {
  5. property color color: FluTheme.dark ? "#FFFFFF" : "#999999"
  6. property int radius: 4
  7. id:root
  8. anchors.fill: parent
  9. anchors.margins: -4
  10. Rectangle{
  11. width: root.width
  12. height: root.height
  13. anchors.centerIn: parent
  14. color: "#00000000"
  15. opacity: 0.02
  16. border.width: 1
  17. radius: root.radius
  18. border.color: root.color
  19. }
  20. Rectangle{
  21. width: root.width - 2
  22. height: root.height - 2
  23. anchors.centerIn: parent
  24. color: "#00000000"
  25. opacity: 0.04
  26. border.width: 1
  27. radius: root.radius
  28. border.color: root.color
  29. }
  30. Rectangle{
  31. width: root.width - 4
  32. height: root.height - 4
  33. anchors.centerIn: parent
  34. color: "#00000000"
  35. opacity: 0.06
  36. border.width: 1
  37. radius: root.radius
  38. border.color: root.color
  39. }
  40. Rectangle{
  41. width: root.width - 6
  42. height: root.height - 6
  43. anchors.centerIn: parent
  44. color: "#00000000"
  45. opacity: 0.08
  46. border.width: 1
  47. radius: root.radius
  48. border.color: root.color
  49. }
  50. Rectangle{
  51. width: root.width - 8
  52. height: root.height - 8
  53. anchors.centerIn: parent
  54. opacity: 0.1
  55. radius: root.radius
  56. color: "#00000000"
  57. border.width: 1
  58. border.color: root.color
  59. }
  60. }