mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-16 18:59:39 +08:00
25 lines
518 B
QML
25 lines
518 B
QML
// Copyright (c) 2018 Ultimaker B.V.
|
|
// Toolbox is released under the terms of the LGPLv3 or higher.
|
|
|
|
import QtQuick 2.2
|
|
|
|
Rectangle
|
|
{
|
|
property bool reversed: false
|
|
width: parent.width
|
|
height: 8
|
|
gradient: Gradient
|
|
{
|
|
GradientStop
|
|
{
|
|
position: reversed ? 1.0 : 0.0
|
|
color: reversed ? Qt.rgba(0,0,0,0.05) : Qt.rgba(0,0,0,0.2)
|
|
}
|
|
GradientStop
|
|
{
|
|
position: reversed ? 0.0 : 1.0
|
|
color: Qt.rgba(0,0,0,0)
|
|
}
|
|
}
|
|
}
|