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