![]() Registered Member ![]()
|
Hi all!
I'm looking for help with changing color palette from a script. i've tried by writing directly on kdeglobals:
And from kcmshell4 colors i can see that the colorscheme is highlighted as current, but has not been applied... After some searches i found this old thread: viewtopic.php?f=17&t=102884&hilit=notifyChange I then tried with the code from the last post there:
With the very same effect as using kwriteconfig. The colorscheme is written into kdeglobals, but the change is not picked, despite the KGlobalSettings.emitChange. Most probably i'm doing it wrong. Since i consider myself a real noob™ i would like to ask your help with this. I garantuee you'll have my eternal gratitude (in form of a comment within the script itself) ![]() |
![]() Registered Member ![]()
|
Stupid me, it works actually. Because of autocompletion i didn't realize that i was trying to call KGlobalSettings istance with an uppercase
![]()
I'm not sure...But probably i owe myself a beer now.... |
![]() Registered Member ![]()
|
Would be great to have a plasmoid for stuff like this. Missing the theme switcher too.
|
![]() Registered Member ![]()
|
Or, a service for Color abstraction. Like: Extracting colors from current wallpaper(on any wallpaper changed event) → generate a colorscheme → apply the generated colorscheme on the fly. And since Plasma supports colorschemes in its themes, this could be a really nice automation, visually. I suppose i could post about this on the VDG section, if there's an interest. |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]