diff options
author | Miguel Jacq <mig@mig5.net> | 2017-05-29 15:44:04 +1000 |
---|---|---|
committer | Miguel Jacq <mig@mig5.net> | 2017-05-29 15:44:04 +1000 |
commit | 6ad8b888325c7a3d37b903a74e424649258c469e (patch) | |
tree | 5810cf649925d1d0f209aea2f829dac30b4e7537 | |
parent | 84e167333ec8a947c44ca03c93bb9bd4d7da5db2 (diff) | |
download | onionshare-6ad8b888325c7a3d37b903a74e424649258c469e.tar.gz onionshare-6ad8b888325c7a3d37b903a74e424649258c469e.zip |
Make the tor connection progressBar similarly style as the others
-rw-r--r-- | onionshare_gui/tor_connection_dialog.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/onionshare_gui/tor_connection_dialog.py b/onionshare_gui/tor_connection_dialog.py index 93c03bef..120036fd 100644 --- a/onionshare_gui/tor_connection_dialog.py +++ b/onionshare_gui/tor_connection_dialog.py @@ -43,6 +43,19 @@ class TorConnectionDialog(QtWidgets.QProgressDialog): self.setModal(True) self.setFixedSize(400, 150) + cssStyleData =""" + QProgressBar { + border: 2px solid grey; + border-radius: 5px; + text-align: center; + } + + QProgressBar::chunk { + background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #b366ff, stop: 1 #d9b3ff); + width: 10px; + }""" + self.setStyleSheet(cssStyleData) + # Label self.setLabelText(strings._('connecting_to_tor', True)) |