Registered Member
|
I want to connect a lamda function to a signal that gets emmited when the colorscheme (either global or app-specific) is changed.
Now I am using
but it's qt breeze-specific and it isn't using the Frameworks API. I would like it to be able to support gtk applications too. I found ColorScope, is this right? |
Registered Member
|
You want http://doc.qt.io/qt-5/qguiapplication.h ... tteChanged
KDecorations2 is just for window decorations. |
Registered Member
|
So there isn't a way to handle this in a more generic way? Like read gtk palette too and force a repaint if this palette changes? |
Registered Member
|
I'm pretty sure gtk3 does something completely different, since their themes are derived more directly from (svg) images and css.
Regardless, I believe Qt should take care of translating whatever it is that gtk may be doing (when using the gtk theme for qt), so insofar as qt is able to recognize that the gtk color palette has changed then it will update its colors and fire off that event.
airdrik, proud to be a member of KDE forums since 2008-Dec.
|
Registered Member
|
Thank you very much for your kind help. I will look more into this. |
Registered Member
|
A similar code also uses sites like this one https://www.snapscoresofficiel.me/
|
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell