Adds country flags

This commit is contained in:
Saptak S 2022-03-16 16:44:11 +05:30
parent 9c61c46ea8
commit 23e623f45c
No known key found for this signature in database
GPG key ID: 7B7F1772C0C6FCBF
236 changed files with 47 additions and 1 deletions

View file

@ -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()