Adds country flags
@ -577,8 +577,12 @@ class AutoConnectUseBridgeWidget(QtWidgets.QWidget):
|
||||
self.country_combobox.setStyleSheet(
|
||||
common.gui.css["autoconnect_countries_combobox"]
|
||||
)
|
||||
self.country_combobox.setIconSize(QtCore.QSize(26, 26))
|
||||
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}.png"))
|
||||
)
|
||||
self.country_combobox.addItem(icon, countries[country_code], country_code)
|
||||
|
||||
# Task label
|
||||
self.task_label = QtWidgets.QLabel()
|
||||
|
BIN
desktop/onionshare/resources/images/countries/AD.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
desktop/onionshare/resources/images/countries/AE.png
Normal file
After Width: | Height: | Size: 180 B |
BIN
desktop/onionshare/resources/images/countries/AF.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
desktop/onionshare/resources/images/countries/AG.png
Normal file
After Width: | Height: | Size: 862 B |
BIN
desktop/onionshare/resources/images/countries/AI.png
Normal file
After Width: | Height: | Size: 1.4 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: 169 B |
BIN
desktop/onionshare/resources/images/countries/AO.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
desktop/onionshare/resources/images/countries/AQ.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
desktop/onionshare/resources/images/countries/AR.png
Normal file
After Width: | Height: | Size: 617 B |
BIN
desktop/onionshare/resources/images/countries/AS.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
desktop/onionshare/resources/images/countries/AT.png
Normal file
After Width: | Height: | Size: 172 B |
BIN
desktop/onionshare/resources/images/countries/AU.png
Normal file
After Width: | Height: | Size: 983 B |
BIN
desktop/onionshare/resources/images/countries/AW.png
Normal file
After Width: | Height: | Size: 639 B |
BIN
desktop/onionshare/resources/images/countries/AX.png
Normal file
After Width: | Height: | Size: 206 B |
BIN
desktop/onionshare/resources/images/countries/AZ.png
Normal file
After Width: | Height: | Size: 755 B |
BIN
desktop/onionshare/resources/images/countries/BA.png
Normal file
After Width: | Height: | Size: 734 B |
BIN
desktop/onionshare/resources/images/countries/BB.png
Normal file
After Width: | Height: | Size: 444 B |
BIN
desktop/onionshare/resources/images/countries/BD.png
Normal file
After Width: | Height: | Size: 434 B |
BIN
desktop/onionshare/resources/images/countries/BE.png
Normal file
After Width: | Height: | Size: 178 B |
BIN
desktop/onionshare/resources/images/countries/BF.png
Normal file
After Width: | Height: | Size: 430 B |
BIN
desktop/onionshare/resources/images/countries/BG.png
Normal file
After Width: | Height: | Size: 172 B |
BIN
desktop/onionshare/resources/images/countries/BH.png
Normal file
After Width: | Height: | Size: 340 B |
BIN
desktop/onionshare/resources/images/countries/BI.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
desktop/onionshare/resources/images/countries/BJ.png
Normal file
After Width: | Height: | Size: 184 B |
BIN
desktop/onionshare/resources/images/countries/BL.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
desktop/onionshare/resources/images/countries/BM.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
desktop/onionshare/resources/images/countries/BN.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
desktop/onionshare/resources/images/countries/BO.png
Normal file
After Width: | Height: | Size: 686 B |
BIN
desktop/onionshare/resources/images/countries/BR.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
desktop/onionshare/resources/images/countries/BS.png
Normal file
After Width: | Height: | Size: 467 B |
BIN
desktop/onionshare/resources/images/countries/BT.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
desktop/onionshare/resources/images/countries/BW.png
Normal file
After Width: | Height: | Size: 178 B |
BIN
desktop/onionshare/resources/images/countries/BY.png
Normal file
After Width: | Height: | Size: 595 B |
BIN
desktop/onionshare/resources/images/countries/BZ.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
desktop/onionshare/resources/images/countries/CA.png
Normal file
After Width: | Height: | Size: 486 B |
BIN
desktop/onionshare/resources/images/countries/CC.png
Normal file
After Width: | Height: | Size: 1004 B |
BIN
desktop/onionshare/resources/images/countries/CD.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
desktop/onionshare/resources/images/countries/CF.png
Normal file
After Width: | Height: | Size: 377 B |
BIN
desktop/onionshare/resources/images/countries/CG.png
Normal file
After Width: | Height: | Size: 323 B |
BIN
desktop/onionshare/resources/images/countries/CH.png
Normal file
After Width: | Height: | Size: 175 B |
BIN
desktop/onionshare/resources/images/countries/CI.png
Normal file
After Width: | Height: | Size: 172 B |
BIN
desktop/onionshare/resources/images/countries/CK.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
desktop/onionshare/resources/images/countries/CL.png
Normal file
After Width: | Height: | Size: 309 B |
BIN
desktop/onionshare/resources/images/countries/CM.png
Normal file
After Width: | Height: | Size: 367 B |
BIN
desktop/onionshare/resources/images/countries/CN.png
Normal file
After Width: | Height: | Size: 745 B |
BIN
desktop/onionshare/resources/images/countries/CO.png
Normal file
After Width: | Height: | Size: 174 B |
BIN
desktop/onionshare/resources/images/countries/CR.png
Normal file
After Width: | Height: | Size: 184 B |
BIN
desktop/onionshare/resources/images/countries/CU.png
Normal file
After Width: | Height: | Size: 605 B |
BIN
desktop/onionshare/resources/images/countries/CV.png
Normal file
After Width: | Height: | Size: 360 B |
BIN
desktop/onionshare/resources/images/countries/CW.png
Normal file
After Width: | Height: | Size: 441 B |
BIN
desktop/onionshare/resources/images/countries/CX.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
desktop/onionshare/resources/images/countries/CY.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
desktop/onionshare/resources/images/countries/CZ.png
Normal file
After Width: | Height: | Size: 369 B |
BIN
desktop/onionshare/resources/images/countries/DE.png
Normal file
After Width: | Height: | Size: 168 B |
BIN
desktop/onionshare/resources/images/countries/DJ.png
Normal file
After Width: | Height: | Size: 452 B |
BIN
desktop/onionshare/resources/images/countries/DK.png
Normal file
After Width: | Height: | Size: 180 B |
BIN
desktop/onionshare/resources/images/countries/DM.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
desktop/onionshare/resources/images/countries/DO.png
Normal file
After Width: | Height: | Size: 588 B |
BIN
desktop/onionshare/resources/images/countries/DZ.png
Normal file
After Width: | Height: | Size: 592 B |
BIN
desktop/onionshare/resources/images/countries/EC.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
desktop/onionshare/resources/images/countries/EE.png
Normal file
After Width: | Height: | Size: 170 B |
BIN
desktop/onionshare/resources/images/countries/EG.png
Normal file
After Width: | Height: | Size: 634 B |
BIN
desktop/onionshare/resources/images/countries/EH.png
Normal file
After Width: | Height: | Size: 577 B |
BIN
desktop/onionshare/resources/images/countries/ER.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
desktop/onionshare/resources/images/countries/ES.png
Normal file
After Width: | Height: | Size: 996 B |
BIN
desktop/onionshare/resources/images/countries/ET.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
desktop/onionshare/resources/images/countries/FI.png
Normal file
After Width: | Height: | Size: 175 B |
BIN
desktop/onionshare/resources/images/countries/FJ.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
desktop/onionshare/resources/images/countries/FK.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
desktop/onionshare/resources/images/countries/FO.png
Normal file
After Width: | Height: | Size: 197 B |
BIN
desktop/onionshare/resources/images/countries/FR.png
Normal file
After Width: | Height: | Size: 175 B |
BIN
desktop/onionshare/resources/images/countries/GA.png
Normal file
After Width: | Height: | Size: 180 B |
BIN
desktop/onionshare/resources/images/countries/GB.png
Normal file
After Width: | Height: | Size: 680 B |
BIN
desktop/onionshare/resources/images/countries/GD.png
Normal file
After Width: | Height: | Size: 991 B |
BIN
desktop/onionshare/resources/images/countries/GE.png
Normal file
After Width: | Height: | Size: 254 B |
BIN
desktop/onionshare/resources/images/countries/GG.png
Normal file
After Width: | Height: | Size: 250 B |
BIN
desktop/onionshare/resources/images/countries/GH.png
Normal file
After Width: | Height: | Size: 443 B |
BIN
desktop/onionshare/resources/images/countries/GI.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
desktop/onionshare/resources/images/countries/GL.png
Normal file
After Width: | Height: | Size: 521 B |
BIN
desktop/onionshare/resources/images/countries/GM.png
Normal file
After Width: | Height: | Size: 189 B |
BIN
desktop/onionshare/resources/images/countries/GN.png
Normal file
After Width: | Height: | Size: 180 B |
BIN
desktop/onionshare/resources/images/countries/GQ.png
Normal file
After Width: | Height: | Size: 836 B |
BIN
desktop/onionshare/resources/images/countries/GR.png
Normal file
After Width: | Height: | Size: 195 B |
BIN
desktop/onionshare/resources/images/countries/GS.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
desktop/onionshare/resources/images/countries/GT.png
Normal file
After Width: | Height: | Size: 727 B |
BIN
desktop/onionshare/resources/images/countries/GU.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
desktop/onionshare/resources/images/countries/GW.png
Normal file
After Width: | Height: | Size: 384 B |
BIN
desktop/onionshare/resources/images/countries/GY.png
Normal file
After Width: | Height: | Size: 712 B |
BIN
desktop/onionshare/resources/images/countries/HK.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
desktop/onionshare/resources/images/countries/HN.png
Normal file
After Width: | Height: | Size: 302 B |
BIN
desktop/onionshare/resources/images/countries/HR.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
desktop/onionshare/resources/images/countries/HT.png
Normal file
After Width: | Height: | Size: 573 B |
BIN
desktop/onionshare/resources/images/countries/HU.png
Normal file
After Width: | Height: | Size: 172 B |
BIN
desktop/onionshare/resources/images/countries/ID.png
Normal file
After Width: | Height: | Size: 167 B |
BIN
desktop/onionshare/resources/images/countries/IE.png
Normal file
After Width: | Height: | Size: 170 B |
BIN
desktop/onionshare/resources/images/countries/IL.png
Normal file
After Width: | Height: | Size: 737 B |
BIN
desktop/onionshare/resources/images/countries/IM.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
desktop/onionshare/resources/images/countries/IN.png
Normal file
After Width: | Height: | Size: 614 B |