From 6ad8b888325c7a3d37b903a74e424649258c469e Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Mon, 29 May 2017 15:44:04 +1000 Subject: [PATCH] Make the tor connection progressBar similarly style as the others --- onionshare_gui/tor_connection_dialog.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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))