theme integration #1470
-
Hello, I was wondering how would I go about integrating the application's theme with the host pc theme, for example I'm using KDE on linux, and I use a custom dark theme, and I want the application to use the same theme, how would that work? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Your question is really interesting. I also want to know this. So, I googled and the answer, though, isn't that nice. There is a clarifying post at https://stackoverflow.com/questions/16254895/x11-how-to-get-system-colors . There you will find: "It could be all so simple, weren't both Qt and GTK+/GNOME serious cases of the NIH syndrome..", as explained by datenwolf. You would need to read the theme's configuration files from your custom theme, If this functionality is only for KDE, than another nice post can be found at Get system colors from KDE. Once you have those files, they could to be serialized into a structure called OSTheme, for example. In my sys, I can find these files inside /home/user_name/.kde4/share/apps/color-schemes/, the location may vary. After that you you need to convert KDE values to Ice's values So:
Other nice readings: |
Beta Was this translation helpful? Give feedback.
Your question is really interesting. I also want to know this. So, I googled and the answer, though, isn't that nice. There is a clarifying post at https://stackoverflow.com/questions/16254895/x11-how-to-get-system-colors . There you will find: "It could be all so simple, weren't both Qt and GTK+/GNOME serious cases of the NIH syndrome..", as explained by datenwolf.
You would need to read the theme's configuration files from your custom theme, If this functionality is only for KDE, than another nice post can be found at Get system colors from KDE. Once you have those files, they could to be serialized into a structure called OSTheme, for example. In my sys, I can find these files inside /…