I’m new to Paraview, and started using it on a Windows 10 Laptop.
I was immediately looking to enable a dark UI theme, which I’m used to work with in other programs. Unfortunately, your trick doesn’t work on Windows.
Paraview ships with the WindowsVista Qt style, which I wasn’t able to adjust easily. However, it turns out that it’s possible to override the style and apply a custom stylesheet to get a pleasingly dark look. I took the qdarkstyle from the web and got the following result.
To use the QDarkStyle, I created a “qdarkstyle” sub-folder in Paraview’s “bin/styles” folder, and copied the .qss file there. Then I could reference the .qss file relative to the “bin” folder as
-stylesheet=styles/qdarkstyle/style.qss
BTW, this stylesheet seems to be one of the most complete Qt “dark” styles I could find. It’s a good reference, and perhaps I will come up with my own “dark scheme” soon
Hey y’all, thanks to this post a while back I made a custom QT stylesheet for windows that I really enjoyed, although it no longer works for me after updating to 5.9 since I think the QT version has changed. Has anyone gotten their stylesheet to work with 5.9 on windows?
I saw the same issue in ParaView 5.9 when using the “default” style on Win 10. Changing to either “windows” or “fusion” style fixed it for me, like this:
The “fusion” style works best with high-DPI scaling on Win 10 according to Qt docs, while “windows” style might have issues with certain scaling values.
Hey, I’ve tried following the above steps for a Windows 10 install of the 5.9 MPI binary and it isn’t working. Any ideas? Here’s the shortcut properties:
Thanks for the instructions, I got it to work. Unfortunately, checkboxes appear invisible after applying the dark style.qss.
QCheckbox is included in the qss file though, so that shouldn’t be the problem. Do you know of a fix for this?
The problem is that the stylesheet contains references to icons (:/qss_icons/rc/...), which are missing.
You would need to replace these by relative paths (relative to the qss file), and store the icons next to the stylesheet on disk.
I have done this for a few stylesheets here: paraview-stylesheets.tar.gz (299.4 KB)
They can be used with paraview as described in the original post.