forked from Boria138/PortProtonQt
Compare commits
3 Commits
main
...
fix_for_na
Author | SHA1 | Date | |
---|---|---|---|
c99bb2183d
|
|||
1bf5b84f1d
|
|||
c01d71f15d
|
@ -95,6 +95,7 @@ class AddGameDialog(QDialog):
|
|||||||
self.setStyleSheet(self.theme.MAIN_WINDOW_STYLE + self.theme.MESSAGE_BOX_STYLE)
|
self.setStyleSheet(self.theme.MAIN_WINDOW_STYLE + self.theme.MESSAGE_BOX_STYLE)
|
||||||
|
|
||||||
layout = QFormLayout(self)
|
layout = QFormLayout(self)
|
||||||
|
layout.setLabelAlignment(Qt.AlignmentFlag.AlignLeft)
|
||||||
|
|
||||||
# Game name
|
# Game name
|
||||||
self.nameEdit = QLineEdit(self)
|
self.nameEdit = QLineEdit(self)
|
||||||
|
@ -918,9 +918,11 @@ class MainWindow(QMainWindow):
|
|||||||
formLayout = QFormLayout()
|
formLayout = QFormLayout()
|
||||||
formLayout.setContentsMargins(0, 10, 0, 0)
|
formLayout.setContentsMargins(0, 10, 0, 0)
|
||||||
formLayout.setSpacing(10)
|
formLayout.setSpacing(10)
|
||||||
|
formLayout.setLabelAlignment(Qt.AlignmentFlag.AlignLeft)
|
||||||
|
|
||||||
# 1. Time detail_level
|
# 1. Time detail_level
|
||||||
self.timeDetailCombo = QComboBox()
|
self.timeDetailCombo = QComboBox()
|
||||||
|
self.timeDetailCombo.setMinimumContentsLength(500) # удалить потом. Сомнительное решение для растягивания комбобоксов в нативе
|
||||||
self.time_keys = ["detailed", "brief"]
|
self.time_keys = ["detailed", "brief"]
|
||||||
self.time_labels = [_("detailed"), _("brief")]
|
self.time_labels = [_("detailed"), _("brief")]
|
||||||
self.timeDetailCombo.addItems(self.time_labels)
|
self.timeDetailCombo.addItems(self.time_labels)
|
||||||
@ -939,6 +941,7 @@ class MainWindow(QMainWindow):
|
|||||||
|
|
||||||
# 2. Games sort_method
|
# 2. Games sort_method
|
||||||
self.gamesSortCombo = QComboBox()
|
self.gamesSortCombo = QComboBox()
|
||||||
|
self.gamesSortCombo.setMinimumContentsLength(500) # удалить потом. Сомнительное решение для растягивания комбобоксов в нативе
|
||||||
self.sort_keys = ["last_launch", "playtime", "alphabetical", "favorites"]
|
self.sort_keys = ["last_launch", "playtime", "alphabetical", "favorites"]
|
||||||
self.sort_labels = [_("last launch"), _("playtime"), _("alphabetical"), _("favorites")]
|
self.sort_labels = [_("last launch"), _("playtime"), _("alphabetical"), _("favorites")]
|
||||||
self.gamesSortCombo.addItems(self.sort_labels)
|
self.gamesSortCombo.addItems(self.sort_labels)
|
||||||
@ -959,6 +962,7 @@ class MainWindow(QMainWindow):
|
|||||||
self.filter_keys = ["all", "steam", "portproton", "favorites", "epic"]
|
self.filter_keys = ["all", "steam", "portproton", "favorites", "epic"]
|
||||||
self.filter_labels = [_("all"), "steam", "portproton", _("favorites")]
|
self.filter_labels = [_("all"), "steam", "portproton", _("favorites")]
|
||||||
self.gamesDisplayCombo = QComboBox()
|
self.gamesDisplayCombo = QComboBox()
|
||||||
|
self.gamesDisplayCombo.setMinimumContentsLength(500) # удалить потом. Сомнительное решение для растягивания комбобоксов в нативе
|
||||||
self.gamesDisplayCombo.addItems(self.filter_labels)
|
self.gamesDisplayCombo.addItems(self.filter_labels)
|
||||||
self.gamesDisplayCombo.setStyleSheet(self.theme.SETTINGS_COMBO_STYLE)
|
self.gamesDisplayCombo.setStyleSheet(self.theme.SETTINGS_COMBO_STYLE)
|
||||||
self.gamesDisplayCombo.setFocusPolicy(Qt.FocusPolicy.StrongFocus)
|
self.gamesDisplayCombo.setFocusPolicy(Qt.FocusPolicy.StrongFocus)
|
||||||
|
@ -190,13 +190,6 @@ SEARCH_EDIT_STYLE = """
|
|||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
SETTINGS_CHECKBOX_STYLE = """
|
|
||||||
QCheckBox:focus {
|
|
||||||
border: 2px solid #409EFF;
|
|
||||||
background: #404554;
|
|
||||||
}
|
|
||||||
"""
|
|
||||||
|
|
||||||
# ОТКЛЮЧАЕМ РАМКУ У QScrollArea
|
# ОТКЛЮЧАЕМ РАМКУ У QScrollArea
|
||||||
SCROLL_AREA_STYLE = """
|
SCROLL_AREA_STYLE = """
|
||||||
QWidget {
|
QWidget {
|
||||||
|
Reference in New Issue
Block a user