Progress bar can match light or dark palette
This commit is contained in:
parent
2d3cf6cdb2
commit
edd62efd78
@ -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); \
|
||||||
}"
|
}"
|
||||||
|
Loading…
Reference in New Issue
Block a user