Progress bar can match light or dark palette

This commit is contained in:
Christopher Laprise 2017-03-21 10:57:32 -04:00
parent 2d3cf6cdb2
commit edd62efd78
No known key found for this signature in database
GPG Key ID: 448568C8B281C952

View File

@ -398,11 +398,11 @@ class VmUsageBarWidget (QWidget):
"QProgressBar:horizontal{" +\ "QProgressBar:horizontal{" +\
"border: 1px solid hsv({0}, 100, 250);".format(hue) +\ "border: 1px solid hsv({0}, 100, 250);".format(hue) +\
"border-radius: 4px;\ "border-radius: 4px;\
background: white;\ background: transparent;\
text-align: center;\ text-align: center;\
}\ }\
QProgressBar::chunk:horizontal {\ 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: 0 hsv({0}, 170, 207),".format(hue) +
" stop: 1 white); \ " stop: 1 white); \
}" }"