Improve the Zip progressbar style a little bit

This commit is contained in:
Miguel Jacq 2017-05-29 09:14:23 +10:00
parent acf453e094
commit 84e167333e
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -467,18 +467,19 @@ class ZipProgressBar(QtWidgets.QProgressBar):
def __init__(self, total_files_size): def __init__(self, total_files_size):
super(ZipProgressBar, self).__init__() super(ZipProgressBar, self).__init__()
self.setMaximumHeight(15) self.setMaximumHeight(20)
self.setMinimumWidth(200) self.setMinimumWidth(200)
self.setValue(0) self.setValue(0)
self.setFormat(strings._('zip_progress_bar_format')) self.setFormat(strings._('zip_progress_bar_format'))
cssStyleData =""" cssStyleData ="""
QProgressBar { QProgressBar {
border: 2px solid grey; background-color: rgba(255, 255, 255, 0.0) !important;
border-radius: 5px; border: 0px;
text-align: center; text-align: center;
} }
QProgressBar::chunk { QProgressBar::chunk {
border: 0px;
background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #b366ff, stop: 1 #d9b3ff); background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #b366ff, stop: 1 #d9b3ff);
width: 10px; width: 10px;
}""" }"""