diff --git a/.gitignore b/.gitignore index f009e459..e1c5cd7a 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,4 @@ setup.mk *.tlog *.obj *.pdb -*.env +*.env \ No newline at end of file diff --git a/Makefile b/Makefile index b4aa3b73..30fc019c 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 70aa02d5..d08bcd18 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 @@ -105,6 +107,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):