CloudCompare
CloudCompare copied to clipboard
Dark Mode Theme
Describe the feature you would like
I would like to start thinking of dark mode support in CloudCompare.
I'm a member of the dark mode addicts club, but CloudCompare does't have that
- macOs has a system wide dark mode, but support for it in CC seems not very great (#1424), but the cause and fixes remains to be found (which I cannot do as I do not have yet a macOs I can play on)
- Windows 10 also has a system wide dark mode, but it does nothing for CC, it stays in white mode
- I don't know how it goes for Linuxes and their myriad of desktop enviromnent and themes.
I think we should try to have to some of support for dark themes.
Qt supports style sheets (qss) to customize the apperance of the different widgets. There is also QPalette which allow to customize the appearance.
There is a really cool looking https://github.com/ColinDuquesnoy/QDarkStyleSheet stylesheet available and would save time. I tried to integrate them in a standard plugin and the result looks like this:
QDarkStyleSheet example

An example using QPalette:

It seems rather easy to have something basic working, however some details needs to be figured:
- Is it a needed / requested feature ?
- The ccConsole is not very readable in dark mode, it will probably need some changes.
- Shoud it be a plugin that embarks custom themes ?
- ...
Describe alternatives you've considered
Using white theme is not an option anymore 🕶
I think it is a need for the future and we are in the same club. I have used the dark mode on macOS for a long time and like it. On my office windows machine, it is enabled since the last update a few weeks ago. It also looks great in office.
Some of the laser scan tools I uses from Hexagon uses the dark mode too. In combination with a light red color not always a glance, but mostly looking good.
A good working dark mode can be from my perspective a next evolve step for CloudCompare and a good chance to think about a good and consequent used light mode theme too! Program wide and with ease, that would be cool.
The dark lines of the console could be done better, but I think, this could be done in the same step.
If there would be a good concept to extract the hard coded formats and change them to a flexible solution, I would try to dive deeper into the code.
Nice work, @tmontaigu! Is your plugin working? I'd like to give it try.
I had this https://github.com/tmontaigu/CloudCompare-DarkTheme
Does it work as a style plugin? Because now CC let the user change the style dynamically:

So we could add that to the main project maybe?