|
#1
|
|||
|
|||
viz.Theme()
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
__________________
21 is only half the truth. |
#2
|
|||
|
|||
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. |
#3
|
|||
|
|||
Tool to explore themes
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) BR Walter
__________________
21 is only half the truth. |
#4
|
|||
|
|||
Nice example, I'll look into getting this or a variation of it included in the docs.
|
Tags |
gui, infopanel, theme |
Thread Tools | |
Display Modes | Rate This Thread |
|
|