RibbonBusyBar: Add color property.

This commit is contained in:
Mentalflow 2025-05-22 16:20:55 +08:00
parent 5c0bca76e8
commit 39fb76484e
Signed by: Mentalflow
GPG Key ID: 5AE68D4401A2EE71
2 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,7 @@ BusyIndicator {
implicitContentHeight + topPadding + bottomPadding)
padding: 2
property color color: RibbonTheme.isDarkMode ? "white" : "black"
property real barWidth: 200
property real barHeight: 4
property real indicatorWidth: 4
@ -44,7 +45,7 @@ BusyIndicator {
delegate: Rectangle {
width: indicatorWidth
height: indicatorHeight
color: RibbonTheme.isDarkMode ? "white" : "black"
color: control.color
x: -(index + 1) * indicatorWidth
y: (barHeight.height / 2 - height / 2)
radius: Math.min(width,height)/2

View File

@ -12,6 +12,7 @@ BusyIndicator {
implicitContentHeight + topPadding + bottomPadding)
padding: 2
property color color: RibbonTheme.isDarkMode ? "white" : "black"
property real barWidth: 200
property real barHeight: 4
property real indicatorWidth: 4
@ -44,7 +45,7 @@ BusyIndicator {
delegate: Rectangle {
width: indicatorWidth
height: indicatorHeight
color: RibbonTheme.isDarkMode ? "white" : "black"
color: control.color
x: -(index + 1) * indicatorWidth
y: (barHeight.height / 2 - height / 2)
radius: Math.min(width,height)/2