You could maybe find the QMenuItem widget which relates to it with some
hacky nonsense along these lines of findviewer in this code, then set
the stylesheet:
https://gist.github.com/dbr/5703516

..but using icons would be much more reliable - you could dynamically
generate the icons with:

from PySide import QtGui
img = QtGui.QImage(26, 26, QtGui.QImage.Format_RGB32)
img.fill(QtGui.QColor(0, 0, 200))
img.save(".../test.png")

..then switch them out with the nuke.Menu.setIcon() method. More
fancily, you could load the current icon path with QImage.load and alter
it (e.g add coloured border), save the old icon path and restore it
later and so on

On 26/09/14 06:56, Dan Walker wrote:
> Hi all,
> 
> Wanting to know if anyone knows how to color the text of submenu items
> in the toolbar or menu?
> 
> Pythonically or other methods?
> 
> Wanting to highlight certain tools with out the use of icons.
> 
> Thanks!
> 
> Dan
> 
> 
> 
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> 

-- 
ben dickson
2D TD | ben.dick...@rsp.com.au
rising sun pictures | www.rsp.com.au
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to