Closed yamsu closed 5 months ago
Possibly related: https://github.com/CadQuery/CQ-editor/issues/304
Possibly related: #304
There is also the fork mentioned in #304 that does this and allows one to choose the theme. Although pyqdarktheme has an option to detect the system colorscheme. But i have not tested this.
qdarktheme.setup_theme('auto')
I'm finding CQ-Editor really useful to learn and use cadquery. However, I couldn't figure out how to get a dark theme set for the entire app and not just the editor widget.
I have a crude work around that involve editing the CQ-editor python files directly
__main__.py
# Add Dark Mode
line to./cq-editor/lib/python3.11/site-packages/cq_editor/__main__.py
,from PyQt5.QtWidgets import QApplication
Add Dark mode
import qdarktheme
NAME = 'CQ-editor'
need to initialize QApp here, otherewise svg icons do not work on windows
app = QApplication(sys.argv, applicationName=NAME)
Add Dark Mode
qdarktheme.setup_theme()
from .main_window import MainWindow