Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ setup.mk
*.pdb
*.env
profiling/results/

.DS_Store
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not related by this PR. Please revert it.

2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Comment on lines +96 to +97
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong indent.

Suggested change
-Dpybind11_DIR=`pybind11-config --cmakedir` \
-DCMAKE_TOOLCHAIN_FILE=${DEVENVPREFIX}/lib/cmake/Qt6/qt.toolchain.cmake \
-Dpybind11_DIR=`pybind11-config --cmakedir` \
-DCMAKE_TOOLCHAIN_FILE=${DEVENVPREFIX}/lib/cmake/Qt6/qt.toolchain.cmake \

$(CMAKE_ARGS)

$(BUILD_PATH)/Makefile: CMakeLists.txt Makefile
Expand Down
6 changes: 6 additions & 0 deletions modmesh/pilot/_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down
Loading