Ver Fonte

Progress bar can match light or dark palette

Christopher Laprise há 7 anos atrás
pai
commit
edd62efd78
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      qubesmanager/table_widgets.py

+ 2 - 2
qubesmanager/table_widgets.py

@@ -398,11 +398,11 @@ class VmUsageBarWidget (QWidget):
                                     "QProgressBar:horizontal{" +\
                                         "border: 1px solid hsv({0}, 100, 250);".format(hue) +\
                                         "border-radius: 4px;\
-                                        background: white;\
+                                        background: transparent;\
                                         text-align: center;\
                                     }\
                                     QProgressBar::chunk:horizontal {\
-                                        background: qlineargradient(x1: 0, y1: 0.5, x2: 1, y2: 0.5, " +\
+                                        background: qlineargradient(x1: 1, y1: 0.5, x2: 1, y2: 0.5, " +\
                                         "stop: 0 hsv({0}, 170, 207),".format(hue) +
                                         " stop: 1 white); \
                                     }"