diff --git a/portprotonqt/dialogs.py b/portprotonqt/dialogs.py index adca5fc..877922a 100644 --- a/portprotonqt/dialogs.py +++ b/portprotonqt/dialogs.py @@ -300,6 +300,7 @@ class FileExplorer(QDialog): self.file_list.setFocusPolicy(Qt.FocusPolicy.NoFocus) self.file_list.setTextElideMode(Qt.TextElideMode.ElideRight) self.file_list.setHorizontalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAlwaysOff) + self.file_list.setAlternatingRowColors(True) self.file_list.addItem(item) for f in sorted(files): diff --git a/portprotonqt/themes/standart/styles.py b/portprotonqt/themes/standart/styles.py index 7fbf32b..a930332 100644 --- a/portprotonqt/themes/standart/styles.py +++ b/portprotonqt/themes/standart/styles.py @@ -860,7 +860,7 @@ FILE_EXPLORER_STYLE = f""" QListView {{ font-size: {font_size_a}; font-family: {font_family}; - background-color: {color_c}; + background: {color_c}; color: {color_f}; border-top-left-radius: 5px; border-bottom-left-radius: 5px; @@ -868,20 +868,23 @@ FILE_EXPLORER_STYLE = f""" QListView::item {{ padding: 8px; margin: 0px 5px; - border-bottom: {border_b} rgba(255, 255, 255, 0.1); + }} + QListView::item:alternate {{ + margin: 0px 5px; + background: {color_d}; }} QListView::item:selected {{ - background-color: {color_a}; + background: {color_a}; color: {color_f}; border-radius: {border_radius_a}; }} QListView::item:hover {{ - background-color: {color_a}; + background: {color_a}; color: {color_f}; border-radius: {border_radius_a}; }} QListView::item:focus {{ - background-color: {color_a}; + background: {color_a}; color: {color_f}; border-radius: {border_radius_a}; }} @@ -931,4 +934,4 @@ def detail_page_style(stops): {stops}); border-radius: {border_radius_b}; }} -""" +""" \ No newline at end of file