Dark Theme is not being used.
I am using a dark OS theme. Flatcam v8.991 is not using it, maybe it does not support yet. The Light/Dark theme selector in `UI Preferences`
seems to be doing nothing. I thought that it should basically inherit what the OS they is using without much extra effort from the code perspective.
Comments (10)
-
-
reporter Ok, so, how to use the System Theme by default? I saw a user with a dark theme by default.
-
I think that it may be something specific to the used packages (some specific package versions). It doesn’t have to do with FlatCAM directly, at least I did not do anything in that direction. Try to use PyQt5.12 and see if this solve the issue.
-
It seems that it’s an OS thing:
-
reporter Totally, it is a config of the system, but I believe something must be enabled in the software. The plugin was missing for me, thanks for the reference.
Look what has happened. VLC was set correctly while Flatcam still looks something pale from another planet. So it is still the same, this is why I believe something should be enabled in the software.
Off-topic, Virtualbox is doing some custom things like font colors internally, so it is unreadable now.
-
reporter Ah, I found this, here it says it is for widgets. I actually don't know much about these definitions but it is something that shows what I was talking about to enable dark themes inside the application.
https://stackoverflow.com/questions/48256772/dark-theme-for-qt-widgets -
This is a whole different thing. I know this post, I even tried all the solutions offered there at some point but we are talking about different things.
What we talk here is about FlatCAM inheriting from the OS theme while the link you posted talk about adding a dark theme to an app. Suffice to say that creating a dark theme for FlatCAM is no easy task (I already looked into it) and I don’t think that the time spent is justified by the outcome, at least not for me.
If you want to give it a try it will be nice to have. But make sure that it is optional, meaning that it has to be easy to be disabled. A hint is that you will have to style all the widgets used by FlatCAM and the breeze theme is not the good looking. -
reporter Sure, you are right. This is not an easy task and does not add much functionality.
If I have an idea I will give it a try then.
-
Perhaps you can explain how did you manage to use the GTK2 theme, fact mentioned in the Discussions forum on http://flatcam.org/discussion#!/usage:dark-theme-in-shell-8991? Thanks.
-
- changed status to resolved
GTK2 theme will be available in Linux after installing the qt5-style-plugins.
By selecting this Style in Edit → Preferences → General → GUI Preferences → Style the app can inherit the Dark Theme from Linux OS.I’ve added this package in the setup_ubuntu.sh file.
- Log in to comment
The Light/Dark theme selector will apply the theme on the canvas (canvas color, grid color, mouse pointer color).