mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
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:
parent
05be20f834
commit
92888345fb
1 changed files with 5 additions and 0 deletions
|
@ -804,6 +804,11 @@ class Browser(QMainWindow):
|
||||||
"QTableView{ selection-background-color: rgba(150, 150, 150, 50); "
|
"QTableView{ selection-background-color: rgba(150, 150, 150, 50); "
|
||||||
"selection-color: black; }"
|
"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
|
self.singleCard = False
|
||||||
|
|
||||||
def setupEditor(self):
|
def setupEditor(self):
|
||||||
|
|
Loading…
Reference in a new issue