PDA

View Full Version : viz.Theme()


fordprefect
06-04-2014, 05:43 AM
Dear all,

although there are several references to viz.Theme() and the respective get and set methods, I don't find an overall description of how the 17 available color attributes (e.g.highbordercolor) are used for the different <node3d:GUI> objects. This makes it hard to find out which colors need to be set for e.g. a customized vizinfo.Infopanel().

Another puzzle is that there seem to be 4 color values for each attribute - are those (r, g, b, alpha) ? (In any case, that makes it hard to use viz predefined colors).

Best Regards,
Walter

Jeff
06-04-2014, 08:28 PM
I don't think the vizinfo panel has a theme option but you should be able to set the theme on the underlying vizdlg panel object. We don't have an example but can add this to our documentation to do list.

The forth value is alpha. From the Vizard IDE, press Alt + 1 to bring up a color dialog. Select a color to insert RGB values into your script.

fordprefect
06-05-2014, 08:08 AM
Hi Jeff,

thanks for picking this up.

To cover the time until such documentation exists, I compiled a script where you can watch the change to your favorite <node3d:GUI> when items of a theme are changed. All you have to do is to rename the script from .txt to a .py ending (py not allowed for upload). Then, create additional GUI elements you want to change, and add them to the oList (object list).

Hope this helps someone else, too.

By the way, Jeff, while you are at it - please also add a documentation of skins - as in <panel>.setSkin(skin) :confused:

BR Walter

Jeff
06-10-2014, 12:32 AM
Nice example, I'll look into getting this or a variation of it included in the docs.