mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -06:00
WIP: Add base QMLs for WelcomeDialog
This commit is contained in:
parent
889bc8a529
commit
3b63f92d55
9 changed files with 380 additions and 2 deletions
34
resources/qml/WelcomePages/StepIndicatorBar.qml
Normal file
34
resources/qml/WelcomePages/StepIndicatorBar.qml
Normal file
|
@ -0,0 +1,34 @@
|
|||
// Copyright (c) 2019 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.10
|
||||
import QtQuick.Controls 2.3
|
||||
|
||||
|
||||
Item
|
||||
{
|
||||
id: base
|
||||
|
||||
property int totalSteps: 10
|
||||
property int currentStep: 6
|
||||
property int radius: 2
|
||||
|
||||
Rectangle
|
||||
{
|
||||
id: background
|
||||
anchors.fill: parent
|
||||
color: "#f0f0f0"
|
||||
radius: base.radius
|
||||
}
|
||||
|
||||
Rectangle
|
||||
{
|
||||
id: progress
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
width: (currentStep * 1.0 / totalSteps) * background.width
|
||||
color: "#3282ff"
|
||||
radius: base.radius
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue