[ui][settings] Type tab as the first tab

This commit is contained in:
Vinícius Moreira
2020-01-30 16:13:01 -03:00
parent 9885aa151b
commit 9165e1cc5b
2 changed files with 3 additions and 2 deletions

View File

@@ -49,7 +49,6 @@ class GenericSettingsManager:
def_gem_opts.add(opt)
core_config = read_config()
tabs.append(self._gen_general_settings(core_config, screen_width, screen_height))
if gem_opts:
type_help = TextComponent(html=self.i18n['core.config.types.tip'])
@@ -64,6 +63,7 @@ class GenericSettingsManager:
content=PanelComponent([type_help, FormComponent([gem_selector], spaces=False)]),
id_='core.types'))
tabs.append(self._gen_general_settings(core_config, screen_width, screen_height))
tabs.append(self._gen_ui_settings(core_config, screen_width, screen_height))
tabs.append(self._gen_tray_settings(core_config, screen_width, screen_height))
tabs.append(self._gen_adv_settings(core_config, screen_width, screen_height))

View File

@@ -152,6 +152,7 @@ class ManageWindow(QWidget):
self.combo_filter_type = QComboBox()
self.combo_filter_type.setView(QListView())
self.combo_filter_type.setStyleSheet('QLineEdit { height: 2px; }')
self.combo_filter_type.setIconSize(QSize(14, 14))
self.combo_filter_type.setSizeAdjustPolicy(QComboBox.AdjustToContents)
self.combo_filter_type.setEditable(True)
self.combo_filter_type.lineEdit().setReadOnly(True)
@@ -798,7 +799,7 @@ class ManageWindow(QWidget):
icon = self.cache_type_filter_icons.get(app_type)
if not icon:
icon = load_icon(icon_path, 14)
icon = QIcon(icon_path)
self.cache_type_filter_icons[app_type] = icon
self.combo_filter_type.addItem(icon, app_type.capitalize(), app_type)