Merge branch 'develop' into ci-builds
@ -10,6 +10,7 @@
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: Helvetica, sans-serif;
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
.d-flex {
|
||||
@ -21,15 +22,14 @@ body {
|
||||
|
||||
header {
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
||||
background: #fcfcfc;
|
||||
background: -webkit-linear-gradient(top, #fcfcfc 0%, #f2f2f2 100%);
|
||||
padding: 0.8rem;
|
||||
background: #fff;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
header .logo {
|
||||
vertical-align: middle;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
@ -37,23 +37,26 @@ header h1 {
|
||||
margin: 0 0 0 0.5rem;
|
||||
vertical-align: middle;
|
||||
font-weight: normal;
|
||||
font-size: 1.5rem;
|
||||
color: #666666;
|
||||
font-size: 1.375rem;
|
||||
color: #333;
|
||||
position: relative;
|
||||
top: .125rem;
|
||||
}
|
||||
|
||||
header .information {
|
||||
font-size: 1rem;
|
||||
font-size: .875rem;
|
||||
}
|
||||
|
||||
.button {
|
||||
color: #ffffff;
|
||||
background-color: #4e064f;
|
||||
padding: 10px;
|
||||
padding: .875rem 1rem;
|
||||
border: 0;
|
||||
border-radius: 5px;
|
||||
border-radius: .25rem;
|
||||
text-decoration: none;
|
||||
margin-left: 1rem;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
a.button:visited {
|
||||
@ -102,6 +105,9 @@ ul.breadcrumbs li a:link, ul.breadcrumbs li a:visited {
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
border-collapse: collapse;
|
||||
font-size: .875rem;
|
||||
color: #333;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.file-list .heading {
|
||||
@ -109,7 +115,9 @@ ul.breadcrumbs li a:link, ul.breadcrumbs li a:visited {
|
||||
text-transform: uppercase;
|
||||
font-weight: normal;
|
||||
color: #666666;
|
||||
padding: 0.5rem;
|
||||
padding: 0.75rem;
|
||||
font-size: .75rem;
|
||||
letter-spacing: .0625rem;
|
||||
}
|
||||
|
||||
.file-list div.d-flex {
|
||||
@ -119,16 +127,18 @@ ul.breadcrumbs li a:link, ul.breadcrumbs li a:visited {
|
||||
|
||||
.file-list div.d-flex div {
|
||||
white-space: nowrap;
|
||||
padding: 0.5rem 0.8rem 0.5rem 0.8rem;
|
||||
padding: .625rem .75rem;
|
||||
}
|
||||
|
||||
.file-list div.d-flex div img {
|
||||
vertical-align: middle;
|
||||
margin-right: 0.5rem;
|
||||
width: 1.25rem;
|
||||
height: 1.25rem;
|
||||
}
|
||||
|
||||
.file-list div.d-flex div:last-child {
|
||||
padding-right: 0.8rem;
|
||||
padding-right: 0.75rem;
|
||||
flex-basis: 0;
|
||||
flex-grow: 1;
|
||||
}
|
||||
@ -146,6 +156,12 @@ ul.breadcrumbs li a:link, ul.breadcrumbs li a:visited {
|
||||
}
|
||||
|
||||
@media (max-width: 655px) {
|
||||
.header {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
.file-list {
|
||||
font-size: .9375rem;
|
||||
}
|
||||
.file-list div.d-flex {
|
||||
display: block;
|
||||
}
|
||||
@ -153,17 +169,32 @@ ul.breadcrumbs li a:link, ul.breadcrumbs li a:visited {
|
||||
max-width: 100%;
|
||||
word-break: break-all;
|
||||
white-space: normal;
|
||||
vertical-align: top;
|
||||
}
|
||||
.file-list div.d-flex #size-header {
|
||||
display: none;
|
||||
}
|
||||
.file-list div.d-flex div:last-child {
|
||||
padding-left: 3.5rem;
|
||||
font-size: 0.85rem;
|
||||
padding-left: 3.75rem;
|
||||
font-size: 0.75rem;
|
||||
padding-top: 0;
|
||||
margin-top: -.5rem;
|
||||
color: #666;
|
||||
}
|
||||
.d-flex .row div:first-of-type {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 500px) {
|
||||
header .information {
|
||||
padding: 1rem 0;
|
||||
width: 100%;
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
.file-list div.d-flex div {
|
||||
white-space: nowrap;
|
||||
padding: .625rem 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 6.0 KiB |
@ -34,7 +34,7 @@
|
||||
{% for info in dirs %}
|
||||
<div class="d-flex">
|
||||
<div>
|
||||
<img width="30" height="30" title="" alt="" src="{{ static_url_path }}/img/web_folder.png" />
|
||||
<img title="" alt="" src="{{ static_url_path }}/img/web_folder.png" />
|
||||
<a href="{{ info.link }}">
|
||||
<span>{{ info.basename }}</span>
|
||||
</a>
|
||||
@ -57,4 +57,4 @@
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
@ -551,6 +551,11 @@ class AutoConnectUseBridgeWidget(QtWidgets.QWidget):
|
||||
self.description_label.setWordWrap(True)
|
||||
|
||||
# Detection preference
|
||||
self.use_bridge = True
|
||||
self.no_bridge = QtWidgets.QRadioButton(
|
||||
strings._("gui_autoconnect_no_bridge")
|
||||
)
|
||||
self.no_bridge.toggled.connect(self._toggle_no_bridge)
|
||||
self.detect_automatic_radio = QtWidgets.QRadioButton(
|
||||
strings._("gui_autoconnect_bridge_detect_automatic")
|
||||
)
|
||||
@ -560,6 +565,7 @@ class AutoConnectUseBridgeWidget(QtWidgets.QWidget):
|
||||
)
|
||||
self.detect_manual_radio.toggled.connect(self._detect_manual_toggled)
|
||||
detect_layout = QtWidgets.QVBoxLayout()
|
||||
detect_layout.addWidget(self.no_bridge)
|
||||
detect_layout.addWidget(self.detect_automatic_radio)
|
||||
detect_layout.addWidget(self.detect_manual_radio)
|
||||
|
||||
@ -577,8 +583,12 @@ class AutoConnectUseBridgeWidget(QtWidgets.QWidget):
|
||||
self.country_combobox.setStyleSheet(
|
||||
common.gui.css["autoconnect_countries_combobox"]
|
||||
)
|
||||
self.country_combobox.setIconSize(QtCore.QSize(26, 20))
|
||||
for country_code in countries:
|
||||
self.country_combobox.addItem(countries[country_code], country_code)
|
||||
icon = QtGui.QIcon(
|
||||
GuiCommon.get_resource_path(os.path.join("images", "countries", f"{country_code.lower()}.png"))
|
||||
)
|
||||
self.country_combobox.addItem(icon, countries[country_code], country_code)
|
||||
|
||||
# Task label
|
||||
self.task_label = QtWidgets.QLabel()
|
||||
@ -588,18 +598,12 @@ class AutoConnectUseBridgeWidget(QtWidgets.QWidget):
|
||||
|
||||
# Buttons
|
||||
self.connect_button = QtWidgets.QPushButton(
|
||||
strings._("gui_autoconnect_bridge_start")
|
||||
strings._("gui_autoconnect_start")
|
||||
)
|
||||
self.connect_button.clicked.connect(self._connect_clicked)
|
||||
self.connect_button.setFixedWidth(150)
|
||||
self.connect_button.setStyleSheet(common.gui.css["autoconnect_start_button"])
|
||||
|
||||
self.try_again_button = QtWidgets.QPushButton(
|
||||
strings._("gui_autoconnect_try_again_without_a_bridge")
|
||||
)
|
||||
self.try_again_button.clicked.connect(self._try_again_clicked)
|
||||
self.try_again_button.setStyleSheet(common.gui.css["autoconnect_start_button"])
|
||||
|
||||
self.configure_button = QtWidgets.QPushButton(
|
||||
strings._("gui_autoconnect_configure")
|
||||
)
|
||||
@ -628,7 +632,6 @@ class AutoConnectUseBridgeWidget(QtWidgets.QWidget):
|
||||
|
||||
cta_layout = QtWidgets.QHBoxLayout()
|
||||
cta_layout.addWidget(self.connect_button)
|
||||
cta_layout.addWidget(self.try_again_button)
|
||||
cta_layout.addWidget(self.configure_button)
|
||||
cta_layout.addStretch()
|
||||
cta_widget = QtWidgets.QWidget()
|
||||
@ -651,21 +654,24 @@ class AutoConnectUseBridgeWidget(QtWidgets.QWidget):
|
||||
|
||||
def hide_buttons(self):
|
||||
self.connect_button.hide()
|
||||
self.try_again_button.hide()
|
||||
self.configure_button.hide()
|
||||
self.description_label.hide()
|
||||
self.error_label.hide()
|
||||
self.no_bridge.hide()
|
||||
self.detect_automatic_radio.hide()
|
||||
self.detect_manual_radio.hide()
|
||||
|
||||
def show_buttons(self):
|
||||
self.connect_button.show()
|
||||
self.try_again_button.show()
|
||||
self.description_label.show()
|
||||
self.configure_button.show()
|
||||
self.no_bridge.show()
|
||||
self.detect_automatic_radio.show()
|
||||
self.detect_manual_radio.show()
|
||||
|
||||
def _toggle_no_bridge(self):
|
||||
self.use_bridge = not self.use_bridge
|
||||
|
||||
def _detect_automatic_toggled(self):
|
||||
self.country_combobox.setEnabled(False)
|
||||
self.country_combobox.hide()
|
||||
@ -680,16 +686,11 @@ class AutoConnectUseBridgeWidget(QtWidgets.QWidget):
|
||||
self.connection_status_label.setText(
|
||||
strings._("gui_autoconnect_trying_to_connect_to_tor")
|
||||
)
|
||||
self.connect_clicked.emit()
|
||||
|
||||
def _try_again_clicked(self):
|
||||
self.connection_status_label.setText(
|
||||
strings._("gui_autoconnect_trying_to_connect_to_tor")
|
||||
)
|
||||
self.country_combobox.setEnabled(False)
|
||||
self.country_combobox.hide()
|
||||
self.hide_buttons()
|
||||
self.try_again_clicked.emit()
|
||||
print(self.use_bridge)
|
||||
if not self.use_bridge:
|
||||
self.try_again_clicked.emit()
|
||||
else:
|
||||
self.connect_clicked.emit()
|
||||
|
||||
def _open_tor_settings(self):
|
||||
self.open_tor_settings.emit()
|
||||
|
@ -119,6 +119,9 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
)
|
||||
)
|
||||
)
|
||||
sequence = QtGui.QKeySequence(QtCore.Qt.CTRL + QtCore.Qt.Key_H)
|
||||
self.settings_button.setShortcut(sequence)
|
||||
self.settings_button.setAccessibleName(strings._("gui_settings_window_title"))
|
||||
self.settings_button.clicked.connect(self.open_settings)
|
||||
self.settings_button.setStyleSheet(self.common.gui.css["settings_button"])
|
||||
self.status_bar.addPermanentWidget(self.settings_button)
|
||||
@ -324,4 +327,4 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
|
||||
def resizeEvent(self, event):
|
||||
self.window_resized.emit()
|
||||
return super(MainWindow, self).resizeEvent(event)
|
||||
return super(MainWindow, self).resizeEvent(event)
|
||||
|
BIN
desktop/onionshare/resources/images/countries/ad.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
desktop/onionshare/resources/images/countries/ae.png
Normal file
After Width: | Height: | Size: 490 B |
BIN
desktop/onionshare/resources/images/countries/af.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
desktop/onionshare/resources/images/countries/ag.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
desktop/onionshare/resources/images/countries/ai.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
desktop/onionshare/resources/images/countries/al.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
desktop/onionshare/resources/images/countries/am.png
Normal file
After Width: | Height: | Size: 392 B |
BIN
desktop/onionshare/resources/images/countries/ao.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
desktop/onionshare/resources/images/countries/aq.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
desktop/onionshare/resources/images/countries/ar.png
Normal file
After Width: | Height: | Size: 813 B |
BIN
desktop/onionshare/resources/images/countries/as.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
desktop/onionshare/resources/images/countries/at.png
Normal file
After Width: | Height: | Size: 406 B |
BIN
desktop/onionshare/resources/images/countries/au.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
desktop/onionshare/resources/images/countries/aw.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
desktop/onionshare/resources/images/countries/ax.png
Normal file
After Width: | Height: | Size: 728 B |
BIN
desktop/onionshare/resources/images/countries/az.png
Normal file
After Width: | Height: | Size: 1006 B |
BIN
desktop/onionshare/resources/images/countries/ba.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
desktop/onionshare/resources/images/countries/bb.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
desktop/onionshare/resources/images/countries/bd.png
Normal file
After Width: | Height: | Size: 784 B |
BIN
desktop/onionshare/resources/images/countries/be.png
Normal file
After Width: | Height: | Size: 384 B |
BIN
desktop/onionshare/resources/images/countries/bf.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
desktop/onionshare/resources/images/countries/bg.png
Normal file
After Width: | Height: | Size: 398 B |
BIN
desktop/onionshare/resources/images/countries/bh.png
Normal file
After Width: | Height: | Size: 938 B |
BIN
desktop/onionshare/resources/images/countries/bi.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
desktop/onionshare/resources/images/countries/bj.png
Normal file
After Width: | Height: | Size: 473 B |
BIN
desktop/onionshare/resources/images/countries/bl.png
Normal file
After Width: | Height: | Size: 383 B |
BIN
desktop/onionshare/resources/images/countries/bm.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
desktop/onionshare/resources/images/countries/bn.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
desktop/onionshare/resources/images/countries/bo.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
desktop/onionshare/resources/images/countries/bq.png
Normal file
After Width: | Height: | Size: 398 B |
BIN
desktop/onionshare/resources/images/countries/br.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
desktop/onionshare/resources/images/countries/bs.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
desktop/onionshare/resources/images/countries/bt.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
desktop/onionshare/resources/images/countries/bv.png
Normal file
After Width: | Height: | Size: 751 B |
BIN
desktop/onionshare/resources/images/countries/bw.png
Normal file
After Width: | Height: | Size: 395 B |
BIN
desktop/onionshare/resources/images/countries/by.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
desktop/onionshare/resources/images/countries/bz.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
desktop/onionshare/resources/images/countries/ca.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
desktop/onionshare/resources/images/countries/cc.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
desktop/onionshare/resources/images/countries/cd.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
desktop/onionshare/resources/images/countries/cf.png
Normal file
After Width: | Height: | Size: 968 B |
BIN
desktop/onionshare/resources/images/countries/cg.png
Normal file
After Width: | Height: | Size: 537 B |
BIN
desktop/onionshare/resources/images/countries/ch.png
Normal file
After Width: | Height: | Size: 489 B |
BIN
desktop/onionshare/resources/images/countries/ci.png
Normal file
After Width: | Height: | Size: 383 B |
BIN
desktop/onionshare/resources/images/countries/ck.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
desktop/onionshare/resources/images/countries/cl.png
Normal file
After Width: | Height: | Size: 828 B |
BIN
desktop/onionshare/resources/images/countries/cm.png
Normal file
After Width: | Height: | Size: 664 B |
BIN
desktop/onionshare/resources/images/countries/cn.png
Normal file
After Width: | Height: | Size: 1007 B |
BIN
desktop/onionshare/resources/images/countries/co.png
Normal file
After Width: | Height: | Size: 406 B |
BIN
desktop/onionshare/resources/images/countries/cr.png
Normal file
After Width: | Height: | Size: 427 B |
BIN
desktop/onionshare/resources/images/countries/cu.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
desktop/onionshare/resources/images/countries/cv.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
desktop/onionshare/resources/images/countries/cw.png
Normal file
After Width: | Height: | Size: 894 B |
BIN
desktop/onionshare/resources/images/countries/cx.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
desktop/onionshare/resources/images/countries/cy.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
desktop/onionshare/resources/images/countries/cz.png
Normal file
After Width: | Height: | Size: 687 B |
BIN
desktop/onionshare/resources/images/countries/de.png
Normal file
After Width: | Height: | Size: 402 B |
BIN
desktop/onionshare/resources/images/countries/dj.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
desktop/onionshare/resources/images/countries/dk.png
Normal file
After Width: | Height: | Size: 411 B |
BIN
desktop/onionshare/resources/images/countries/dm.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
desktop/onionshare/resources/images/countries/do.png
Normal file
After Width: | Height: | Size: 994 B |
BIN
desktop/onionshare/resources/images/countries/dz.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
desktop/onionshare/resources/images/countries/ec.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
desktop/onionshare/resources/images/countries/ee.png
Normal file
After Width: | Height: | Size: 389 B |
BIN
desktop/onionshare/resources/images/countries/eg.png
Normal file
After Width: | Height: | Size: 984 B |
BIN
desktop/onionshare/resources/images/countries/eh.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
desktop/onionshare/resources/images/countries/er.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
desktop/onionshare/resources/images/countries/es.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
desktop/onionshare/resources/images/countries/et.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
desktop/onionshare/resources/images/countries/fi.png
Normal file
After Width: | Height: | Size: 478 B |
BIN
desktop/onionshare/resources/images/countries/fj.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
desktop/onionshare/resources/images/countries/fk.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
desktop/onionshare/resources/images/countries/fo.png
Normal file
After Width: | Height: | Size: 618 B |
BIN
desktop/onionshare/resources/images/countries/fr.png
Normal file
After Width: | Height: | Size: 383 B |
BIN
desktop/onionshare/resources/images/countries/ga.png
Normal file
After Width: | Height: | Size: 398 B |
BIN
desktop/onionshare/resources/images/countries/gb.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
desktop/onionshare/resources/images/countries/gd.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
desktop/onionshare/resources/images/countries/ge.png
Normal file
After Width: | Height: | Size: 834 B |
BIN
desktop/onionshare/resources/images/countries/gf.png
Normal file
After Width: | Height: | Size: 383 B |
BIN
desktop/onionshare/resources/images/countries/gg.png
Normal file
After Width: | Height: | Size: 685 B |
BIN
desktop/onionshare/resources/images/countries/gh.png
Normal file
After Width: | Height: | Size: 849 B |
BIN
desktop/onionshare/resources/images/countries/gi.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
desktop/onionshare/resources/images/countries/gl.png
Normal file
After Width: | Height: | Size: 1002 B |
BIN
desktop/onionshare/resources/images/countries/gm.png
Normal file
After Width: | Height: | Size: 438 B |
BIN
desktop/onionshare/resources/images/countries/gn.png
Normal file
After Width: | Height: | Size: 379 B |
BIN
desktop/onionshare/resources/images/countries/gp.png
Normal file
After Width: | Height: | Size: 383 B |
BIN
desktop/onionshare/resources/images/countries/gq.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
desktop/onionshare/resources/images/countries/gr.png
Normal file
After Width: | Height: | Size: 760 B |
BIN
desktop/onionshare/resources/images/countries/gs.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
desktop/onionshare/resources/images/countries/gt.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
desktop/onionshare/resources/images/countries/gu.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
desktop/onionshare/resources/images/countries/gw.png
Normal file
After Width: | Height: | Size: 815 B |
BIN
desktop/onionshare/resources/images/countries/gy.png
Normal file
After Width: | Height: | Size: 3.3 KiB |