We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ee63e commit 0ac06a1Copy full SHA for 0ac06a1
src/tagstudio/qt/ts_qt.py
@@ -13,6 +13,7 @@
13
import dataclasses
14
import math
15
import os
16
+import platform
17
import re
18
import sys
19
import time
@@ -257,7 +258,9 @@ def start(self) -> None:
257
258
app = QApplication(sys.argv)
259
app.setStyle("Fusion")
260
- if QGuiApplication.styleHints().colorScheme() is Qt.ColorScheme.Dark:
261
+ if (
262
+ platform.system() == "Darwin" or platform.system() == "Windows"
263
+ ) and QGuiApplication.styleHints().colorScheme() is Qt.ColorScheme.Dark:
264
pal: QPalette = app.palette()
265
pal.setColor(QPalette.ColorGroup.Normal, QPalette.ColorRole.Window, QColor("#1e1e1e"))
266
pal.setColor(QPalette.ColorGroup.Normal, QPalette.ColorRole.Button, QColor("#1e1e1e"))
0 commit comments