From 84e167333ec8a947c44ca03c93bb9bd4d7da5db2 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Mon, 29 May 2017 09:14:23 +1000 Subject: [PATCH] Improve the Zip progressbar style a little bit --- onionshare_gui/onionshare_gui.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py index a80f4671..563dc8ce 100644 --- a/onionshare_gui/onionshare_gui.py +++ b/onionshare_gui/onionshare_gui.py @@ -467,18 +467,19 @@ class ZipProgressBar(QtWidgets.QProgressBar): def __init__(self, total_files_size): super(ZipProgressBar, self).__init__() - self.setMaximumHeight(15) + self.setMaximumHeight(20) self.setMinimumWidth(200) self.setValue(0) self.setFormat(strings._('zip_progress_bar_format')) cssStyleData =""" QProgressBar { - border: 2px solid grey; - border-radius: 5px; + background-color: rgba(255, 255, 255, 0.0) !important; + border: 0px; text-align: center; } QProgressBar::chunk { + border: 0px; background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #b366ff, stop: 1 #d9b3ff); width: 10px; }"""