mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 14:05:58 +03:00
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:
parent
a8982465a9
commit
fab03f2369
4 changed files with 7 additions and 2 deletions
|
@ -708,6 +708,7 @@ ApplicationWindow {
|
|||
SyncStatus {
|
||||
id: syncStatus
|
||||
|
||||
accentColor: Style.accentColor
|
||||
visible: !trayWindowMainItem.isUnifiedSearchActive
|
||||
|
||||
anchors.top: trayWindowUnifiedSearchInputContainer.bottom
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue