Update color and style of progress bars

This commit is contained in:
Micah Lee 2018-02-06 17:10:42 -08:00
parent 5ca4bb0157
commit ab1d6a65dd
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
2 changed files with 9 additions and 6 deletions

View file

@ -34,13 +34,15 @@ class Download(object):
# make a new progress bar
cssStyleData ="""
QProgressBar {
border: 2px solid grey;
border-radius: 5px;
border: 1px solid #4e064f;
background-color: #ffffff !important;
text-align: center;
color: #9b9b9b;
font-size: 12px;
}
QProgressBar::chunk {
background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #b366ff, stop: 1 #d9b3ff);
background-color: #4e064f;
width: 10px;
}"""
self.progress_bar = QtWidgets.QProgressBar()

View file

@ -586,14 +586,15 @@ class ZipProgressBar(QtWidgets.QProgressBar):
self.setFormat(strings._('zip_progress_bar_format'))
cssStyleData ="""
QProgressBar {
background-color: rgba(255, 255, 255, 0.0) !important;
border: 0px;
border: 1px solid #4e064f;
background-color: #ffffff !important;
text-align: center;
color: #9b9b9b;
}
QProgressBar::chunk {
border: 0px;
background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #b366ff, stop: 1 #d9b3ff);
background-color: #4e064f;
width: 10px;
}"""
self.setStyleSheet(cssStyleData)