mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:36:01 +08:00
parent
6add467477
commit
c11c80fa24
@ -151,6 +151,49 @@ QtObject {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
property Component progressbar: Component{
|
||||||
|
ProgressBarStyle {
|
||||||
|
background: UM.AngledCornerRectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.left: parent.left
|
||||||
|
implicitWidth: UM.Theme.sizes.progressbar.width
|
||||||
|
implicitHeight: UM.Theme.sizes.progressbar.height
|
||||||
|
color: "transparent"
|
||||||
|
}
|
||||||
|
progress: UM.AngledCornerRectangle {
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.fill: parent
|
||||||
|
cornerSize: UM.Theme.sizes.progressbar_control.height
|
||||||
|
color: UM.Theme.colors.progressbar_background
|
||||||
|
Item {
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.margins: UM.Theme.sizes.progressbar_margin.width
|
||||||
|
visible: control.indeterminate
|
||||||
|
Row {
|
||||||
|
Repeater {
|
||||||
|
UM.AngledCornerRectangle {
|
||||||
|
cornerSize: UM.Theme.sizes.progressbar_control.height
|
||||||
|
color: UM.Theme.colors.progressbar_control
|
||||||
|
width: UM.Theme.sizes.progressbar_control.width
|
||||||
|
height: UM.Theme.sizes.progressbar_control.height
|
||||||
|
}
|
||||||
|
model: 1
|
||||||
|
}
|
||||||
|
SequentialAnimation on x {
|
||||||
|
id: xAnim
|
||||||
|
property int animEndPoint: UM.Theme.sizes.progressbar.width - UM.Theme.sizes.progressbar_control.width
|
||||||
|
running: control.indeterminate
|
||||||
|
loops: Animation.Infinite
|
||||||
|
NumberAnimation { from: 0; to: xAnim.animEndPoint; duration: 2000;}
|
||||||
|
NumberAnimation { from: xAnim.animEndPoint; to: 0; duration: 2000;}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
property Component sidebar_category: Component {
|
property Component sidebar_category: Component {
|
||||||
ButtonStyle {
|
ButtonStyle {
|
||||||
background: UM.AngledCornerRectangle {
|
background: UM.AngledCornerRectangle {
|
||||||
|
@ -88,6 +88,9 @@
|
|||||||
"setting_validation_warning": [255, 186, 15, 255],
|
"setting_validation_warning": [255, 186, 15, 255],
|
||||||
"setting_validation_ok": [255, 255, 255, 255],
|
"setting_validation_ok": [255, 255, 255, 255],
|
||||||
|
|
||||||
|
"progressbar_background": [245, 245, 245, 255],
|
||||||
|
"progressbar_control": [12, 169, 227, 255],
|
||||||
|
|
||||||
"slider_groove": [245, 245, 245, 255],
|
"slider_groove": [245, 245, 245, 255],
|
||||||
"slider_groove_border": [205, 202, 201, 255],
|
"slider_groove_border": [205, 202, 201, 255],
|
||||||
"slider_groove_fill": [205, 202, 201, 255],
|
"slider_groove_fill": [205, 202, 201, 255],
|
||||||
@ -135,6 +138,10 @@
|
|||||||
"button": [4.25, 4.25],
|
"button": [4.25, 4.25],
|
||||||
"button_icon": [2.9, 2.9],
|
"button_icon": [2.9, 2.9],
|
||||||
|
|
||||||
|
"progressbar": [26.0, 0.5],
|
||||||
|
"progressbar_control": [8.0, 0.5],
|
||||||
|
"progressbar_margin": [0.0, 0.0],
|
||||||
|
|
||||||
"scrollbar": [0.5, 0.5],
|
"scrollbar": [0.5, 0.5],
|
||||||
|
|
||||||
"slider_groove": [0.5, 0.5],
|
"slider_groove": [0.5, 0.5],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user