PyQt Window themes

   7519   3   0
User Avatar
Member
54 posts
Joined: March 2008
Offline
Hi ,

I am trying to create some small renaming tool for houdini with pyqt , but I need to apply the same houdini color theme to my pyqt window too like dark window color for some fancy look

is there any possibility to do that with houdini ?

Thanks
User Avatar
Member
1926 posts
Joined: Nov. 2006
Offline
Not easily. You would have to write some code that would parse a Houdini color scheme file to find the colors of the elements you want and then apply them to your PyQt widgets. You also run into the problem of there not being a way to query which color scheme is active inside Houdini so you'd have to hard code the expected theme and hope the user doesn't have another one active.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
54 posts
Joined: March 2008
Offline
Thanks graham ,

And one quick question , is there any way i can query the current style from houdini ?
User Avatar
Member
1926 posts
Joined: Nov. 2006
Offline
Nope. You could probably parse ui.pref in order to get the information, as well as other ui color adjustments but it seems pretty overkill for a simple custom tool
Graham Thompson, Technical Artist @ Rockstar Games
  • Quick Links