JJPPeters / clTEM

OpenCL accelerated multislice simulation for electron microscopy.
https://jjppeters.github.io/clTEM/
13 stars 3 forks source link

Support windows 10 dark theme #89

Open JJPPeters opened 5 years ago

JJPPeters commented 5 years ago

Windows 10 suport for dark theme is expanding and clTEM should be able to update alongside the OS settings. Currently this does nothing.

JJPPeters commented 5 years ago

I have performed some work so that I can get the application to react to switch from dark/light in windows 10 personalisation. However, there is no simple way to recreate the dark theme without writing a custom stylesheet from scratch (using palettes only resets about half the widgets' appearance).

I'm unsure as to continue with this at the moment because I would imagine this will be incorporated into Qt at some point.

JJPPeters commented 5 years ago

I have played around with this in some down time. I have an vaguely acceptable basis for a dark native theme.

Interestingly, the title bar (that is controlled by windows) still has elements of the light theme (i.e. inactive windows are white, instead of grey). If I get bored in the future, I may use my custom title bar, but I will ahve to handle the colour used by windows (or detect if it is even enabled).

I'd also like to add the windows accent colour to buttons and things like that.