diff --git a/.gitignore b/.gitignore index aab873359..d36449521 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ setup.mk *.pdb *.env profiling/results/ + +.DS_Store \ No newline at end of file diff --git a/Makefile b/Makefile index 3cb804f18..36848eb56 100644 --- a/Makefile +++ b/Makefile @@ -93,6 +93,8 @@ CMAKE_CMD = cmake $(MODMESH_ROOT) \ -DLINT_AS_ERRORS=ON \ -DMODMESH_PROFILE=$(MODMESH_PROFILE) \ -DQT3D_USE_RHI=$(QT3D_USE_RHI) \ + -Dpybind11_DIR=`pybind11-config --cmakedir` \ + -DCMAKE_TOOLCHAIN_FILE=${DEVENVPREFIX}/lib/cmake/Qt6/qt.toolchain.cmake \ $(CMAKE_ARGS) $(BUILD_PATH)/Makefile: CMakeLists.txt Makefile diff --git a/modmesh/pilot/_gui.py b/modmesh/pilot/_gui.py index 74a24a9cf..7b836316e 100644 --- a/modmesh/pilot/_gui.py +++ b/modmesh/pilot/_gui.py @@ -34,12 +34,14 @@ import sys import importlib +from qt_material import apply_stylesheet from . import _pilot_core as _pcore from . import airfoil if _pcore.enable: from PySide6.QtGui import QAction + from PySide6.QtWidgets import QApplication from . import _mesh from . import _euler1d from . import _burgers1d @@ -101,6 +103,10 @@ def launch(self, name="pilot", size=(1000, 600)): self.runprofiling = _profiling.RunProfiling(mgr=self._rmgr) self.populate_menu() self._rmgr.show() + + app = QApplication.instance() + apply_stylesheet(app, theme='light_red.xml') + return self._rmgr.exec() def populate_menu(self):