Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ToolboxShadow.qml « components « qml « resources « Toolbox « plugins - github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0f2f98beb909513020caba4ae5a2d5b89ed1fc43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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)
        }
    }
}