mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-29 01:06:16 -05:00
Make the tor connection progressBar similarly style as the others
This commit is contained in:
parent
84e167333e
commit
6ad8b88832
@ -43,6 +43,19 @@ class TorConnectionDialog(QtWidgets.QProgressDialog):
|
|||||||
self.setModal(True)
|
self.setModal(True)
|
||||||
self.setFixedSize(400, 150)
|
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
|
# Label
|
||||||
self.setLabelText(strings._('connecting_to_tor', True))
|
self.setLabelText(strings._('connecting_to_tor', True))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user