mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-28 09:04:26 -04:00
Make the tor connection progressBar similarly style as the others
This commit is contained in:
parent
84e167333e
commit
6ad8b88832
1 changed files with 13 additions and 0 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue