Skip to content

Comments

Demo of pilot's new look, first try#678

Draft
JunliXiao wants to merge 1 commit intosolvcon:masterfrom
JunliXiao:master
Draft

Demo of pilot's new look, first try#678
JunliXiao wants to merge 1 commit intosolvcon:masterfrom
JunliXiao:master

Conversation

@JunliXiao
Copy link

@JunliXiao JunliXiao commented Feb 7, 2026

Ref #510

I got a new look for pilot gui using the Python library qt-material, as below:
light_red_theme

Compared to my macOS dark mode native look:
macos_default_theme

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

Comment on lines +96 to +97
-Dpybind11_DIR=`pybind11-config --cmakedir` \
-DCMAKE_TOOLCHAIN_FILE=${DEVENVPREFIX}/lib/cmake/Qt6/qt.toolchain.cmake \
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 \

*.env
profiling/results/

.DS_Store No newline at end of file
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.

Copy link
Member

@yungyuc yungyuc left a comment

Choose a reason for hiding this comment

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

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.

@yungyuc yungyuc added the pilot GUI and visualization label Feb 8, 2026
@yungyuc yungyuc marked this pull request as draft February 8, 2026 02:13
@JunliXiao
Copy link
Author

Perhaps we need to find a configuration for the mac light theme. Could you please help look into it?

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pilot GUI and visualization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants