fix: removed some errors and made sure that same filenames but different files do not break
This commit is contained in:
1 parent
a01cf79447
commit
693bd8f9a3
3 files changed
+32
-4
No files matched your search
+21
-2
@@ -24,7 +24,7 @@ except ModuleNotFoundError:
|
||||
|
||||
try:
|
||||
import pyqtgraph as pg
|
||||
from PyQt6 import QtWidgets, QtCore
|
||||
from PyQt6 import QtWidgets, QtCore, QtGui
|
||||
HAS_PG = True
|
||||
except ImportError as e:
|
||||
print("ERROR: pyqtgraph/PyQt6 not installed — run make install", file=sys.stderr)
|
||||
@@ -477,7 +477,26 @@ def main():
|
||||
print(f"ERROR: B not found {b_path}", file=sys.stderr); sys.exit(1)
|
||||
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
pg.setConfigOptions(antialias=True, background="#121212", foreground="#eee")
|
||||
# Dark theme: Fusion style + dark palette (works without kvantum)
|
||||
app.setStyle("Fusion")
|
||||
dark = QtWidgets.QPalette()
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.Window, QtGui.QColor(45, 45, 45))
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.WindowText, QtGui.QColor(220, 220, 220))
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.Base, QtGui.QColor(30, 30, 30))
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.AlternateBase, QtGui.QColor(45, 45, 45))
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.ToolTipBase, QtGui.QColor(45, 45, 45))
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.ToolTipText, QtGui.QColor(220, 220, 220))
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.Text, QtGui.QColor(220, 220, 220))
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.Button, QtGui.QColor(45, 45, 45))
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.ButtonText, QtGui.QColor(220, 220, 220))
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.BrightText, QtGui.QColor(255, 50, 50))
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.Link, QtGui.QColor(100, 180, 255))
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.Highlight, QtGui.QColor(60, 120, 200))
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.HighlightedText, QtGui.QColor(255, 255, 255))
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.Disabled, QtWidgets.QPalette.ColorRole.Text, QtGui.QColor(120, 120, 120))
|
||||
dark.setColor(QtWidgets.QPalette.ColorRole.Disabled, QtWidgets.QPalette.ColorRole.ButtonText, QtGui.QColor(120, 120, 120))
|
||||
app.setPalette(dark)
|
||||
pg.setConfigOptions(antialias=True, background="#1e1e1e", foreground="#ddd")
|
||||
w = SyncWindow(a_path, b_path, sr=sr, method=method, device=device)
|
||||
w.show()
|
||||
sys.exit(app.exec())
|
||||
|
||||
Reference in new issue
Block a user