Give sync progress bar expected fill colour

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

f p

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-11-19 11:07:04 +08:00
parent a8982465a9
commit fab03f2369
No known key found for this signature in database
GPG key ID: C839200C384636B0
4 changed files with 7 additions and 2 deletions

View file

@ -708,6 +708,7 @@ ApplicationWindow {
SyncStatus {
id: syncStatus
accentColor: Style.accentColor
visible: !trayWindowMainItem.isUnifiedSearchActive
anchors.top: trayWindowUnifiedSearchInputContainer.bottom

View file

@ -16,9 +16,12 @@ import QtQuick
import QtQuick.Controls
import Style
// TODO: the current style does not support customization of this control
ProgressBar {
id: control
property color fillColor: Style.ncBlue
background: Rectangle {
implicitWidth: Style.progressBarWidth
implicitHeight: Style.progressBarBackgroundHeight
@ -36,7 +39,7 @@ ProgressBar {
width: control.visualPosition * parent.width
height: parent.height
radius: Style.progressBarRadius
color: palette.dark
color: control.fillColor
border.color: palette.dark
border.width: Style.progressBarContentBorderWidth
}

View file

@ -10,6 +10,7 @@ RowLayout {
id: root
property alias model: syncStatus
property color accentColor: Style.ncBlue
spacing: Style.trayHorizontalMargin
@ -69,6 +70,7 @@ RowLayout {
sourceComponent: NCProgressBar {
id: syncProgressBar
value: syncStatus.syncProgress
fillColor: root.accentColor
}
}

View file

@ -185,7 +185,6 @@ QtObject {
property int progressBarRadius: 4
property int progressBarContentBorderWidth: 1
property int progressBarBackgroundBorderWidth: 1
property color progressBarContentColor: ncBlue
property int newActivitiesButtonWidth: 150
property int newActivitiesButtonHeight: 40