WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   viz.Theme() (https://forum.worldviz.com/showthread.php?t=5056)

fordprefect 06-04-2014 05:43 AM

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 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

Tool to explore themes
 
1 Attachment(s)
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 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 .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.


All times are GMT -7. The time now is 01:00 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC