mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-29 01:06:16 -05:00
Improve the Zip progressbar style a little bit
This commit is contained in:
parent
acf453e094
commit
84e167333e
@ -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;
|
||||||
}"""
|
}"""
|
||||||
|
Loading…
Reference in New Issue
Block a user