ToolboxShadow.qml 518 B

123456789101112131415161718192021222324
  1. // Copyright (c) 2018 Ultimaker B.V.
  2. // Toolbox is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.2
  4. Rectangle
  5. {
  6. property bool reversed: false
  7. width: parent.width
  8. height: 8
  9. gradient: Gradient
  10. {
  11. GradientStop
  12. {
  13. position: reversed ? 1.0 : 0.0
  14. color: reversed ? Qt.rgba(0,0,0,0.05) : Qt.rgba(0,0,0,0.2)
  15. }
  16. GradientStop
  17. {
  18. position: reversed ? 0.0 : 1.0
  19. color: Qt.rgba(0,0,0,0)
  20. }
  21. }
  22. }