Fix sync progress bar colours in dark mode
authorClaudio Cambra <claudio.cambra@gmail.com>
Thu, 29 Sep 2022 17:21:49 +0000 (19:21 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Thu, 29 Sep 2022 19:55:44 +0000 (21:55 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
src/gui/tray/SyncStatus.qml

index bae630a4db9d8156038850caa99135a1172f1f52..d0361000a4f447bb1e4393e921cbf1b7736b8d11 100644 (file)
@@ -68,6 +68,21 @@ RowLayout {
             sourceComponent: ProgressBar {
                 id: syncProgressBar
 
+                // TODO: Rather than setting all these palette colours manually,
+                // create a custom style and do it for all components globally
+                palette {
+                    text: Style.ncTextColor
+                    windowText: Style.ncTextColor
+                    buttonText: Style.ncTextColor
+                    light: Style.lightHover
+                    midlight: Style.lightHover
+                    mid: Style.ncSecondaryTextColor
+                    dark: Style.menuBorder
+                    button: Style.menuBorder
+                    window: Style.backgroundColor
+                    base: Style.backgroundColor
+                }
+
                 value: syncStatus.syncProgress
             }
         }