RibbonBusyBar: Add color property.
This commit is contained in:
parent
5c0bca76e8
commit
39fb76484e
|
@ -12,6 +12,7 @@ BusyIndicator {
|
||||||
implicitContentHeight + topPadding + bottomPadding)
|
implicitContentHeight + topPadding + bottomPadding)
|
||||||
|
|
||||||
padding: 2
|
padding: 2
|
||||||
|
property color color: RibbonTheme.isDarkMode ? "white" : "black"
|
||||||
property real barWidth: 200
|
property real barWidth: 200
|
||||||
property real barHeight: 4
|
property real barHeight: 4
|
||||||
property real indicatorWidth: 4
|
property real indicatorWidth: 4
|
||||||
|
@ -44,7 +45,7 @@ BusyIndicator {
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
width: indicatorWidth
|
width: indicatorWidth
|
||||||
height: indicatorHeight
|
height: indicatorHeight
|
||||||
color: RibbonTheme.isDarkMode ? "white" : "black"
|
color: control.color
|
||||||
x: -(index + 1) * indicatorWidth
|
x: -(index + 1) * indicatorWidth
|
||||||
y: (barHeight.height / 2 - height / 2)
|
y: (barHeight.height / 2 - height / 2)
|
||||||
radius: Math.min(width,height)/2
|
radius: Math.min(width,height)/2
|
||||||
|
|
|
@ -12,6 +12,7 @@ BusyIndicator {
|
||||||
implicitContentHeight + topPadding + bottomPadding)
|
implicitContentHeight + topPadding + bottomPadding)
|
||||||
|
|
||||||
padding: 2
|
padding: 2
|
||||||
|
property color color: RibbonTheme.isDarkMode ? "white" : "black"
|
||||||
property real barWidth: 200
|
property real barWidth: 200
|
||||||
property real barHeight: 4
|
property real barHeight: 4
|
||||||
property real indicatorWidth: 4
|
property real indicatorWidth: 4
|
||||||
|
@ -44,7 +45,7 @@ BusyIndicator {
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
width: indicatorWidth
|
width: indicatorWidth
|
||||||
height: indicatorHeight
|
height: indicatorHeight
|
||||||
color: RibbonTheme.isDarkMode ? "white" : "black"
|
color: control.color
|
||||||
x: -(index + 1) * indicatorWidth
|
x: -(index + 1) * indicatorWidth
|
||||||
y: (barHeight.height / 2 - height / 2)
|
y: (barHeight.height / 2 - height / 2)
|
||||||
radius: Math.min(width,height)/2
|
radius: Math.min(width,height)/2
|
||||||
|
|
Loading…
Reference in New Issue