Demo of pilot's new look, first try#678
Conversation
| -Dpybind11_DIR=`pybind11-config --cmakedir` \ | ||
| -DCMAKE_TOOLCHAIN_FILE=${DEVENVPREFIX}/lib/cmake/Qt6/qt.toolchain.cmake \ |
There was a problem hiding this comment.
Wrong indent.
| -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 \ |
| *.env | ||
| profiling/results/ | ||
|
|
||
| .DS_Store No newline at end of file |
There was a problem hiding this comment.
This change is not related by this PR. Please revert it.
There was a problem hiding this comment.
The PR is work in progress and I will change it to be so.
Fix #xxx
Do not add issue operating commands in PR like above. I'll edit your comment to remove it.
I got a new look for pilot gui using the Python library qt-material
This is a good start. Mac does not use material design. Perhaps we need to find a configuration for the mac light theme. Could you please help look into it?
Next time when requesting for a review, please (1) run CI in your fork to make sure it passes linters and (2) leave a global comment to request for the review explicitly (no need to press the button, which we do not pay attention to).
Additional points to address:
- Formatting and history issues.
Yes, I'm looking into it now. Since I want the light mode to look like the same as platform native, or very close to, I try to locate the default style sheets(qss). Interestingly, Qt does not set the default look from stylesheets, but it at runtime directly creates and applies the platform-specific subclass of QStyle. (QStyle works at level lower than qss) For Windows and Linux there exist subclass files; for macOS thing are tricky: it goes to find some .dylib at some path and load it for use, which I still can't find that on my mac🤔 Other than that, I will try using qss, to be able to style custom colors. |
Ref #510
I got a new look for pilot gui using the Python library qt-material, as below:

Compared to my macOS dark mode native look:

As you can see, the qt-material default (light-red) themes looks cool, but its font and buttons etc, not so much
And it lacks a simple white-ish, light mode theme, without light COLORS
Now my primary goal is to let users select light mode or dark mode
Either one of them is platform dependent (Windows/Mac), but you can choose freely
Then I can extend to provide more fancy-looking themes...
Next step I'm going to dive into Qt code and see how to customize