fix gridline color in macOS dark mode

https://anki.tenderapp.com/discussions/beta-testing/1752-beta7-nightmode-issues-on-mac
This commit is contained in:
Damien Elmes 2020-02-02 12:01:27 +10:00
parent 05be20f834
commit 92888345fb

View file

@ -804,6 +804,11 @@ class Browser(QMainWindow):
"QTableView{ selection-background-color: rgba(150, 150, 150, 50); "
"selection-color: black; }"
)
elif theme_manager.macos_dark_mode():
grid = theme_manager.str_color("frame-bg")
self.form.tableView.setStyleSheet(f"""
QTableView {{ gridline-color: {grid} }}
""")
self.singleCard = False
def setupEditor(self):