WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-04-2014, 05:43 AM
fordprefect fordprefect is offline
Member
 
Join Date: Oct 2012
Location: Vienna, Austria, Europe
Posts: 39
Question 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.
Reply With Quote
  #2  
Old 06-04-2014, 08:28 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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.
Reply With Quote
  #3  
Old 06-05-2014, 08:08 AM
fordprefect fordprefect is offline
Member
 
Join Date: Oct 2012
Location: Vienna, Austria, Europe
Posts: 39
Arrow 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
Attached Files
File Type: txt Theme.txt (1.7 KB, 1609 views)
__________________
21 is only half the truth.
Reply With Quote
  #4  
Old 06-10-2014, 12:32 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Nice example, I'll look into getting this or a variation of it included in the docs.
Reply With Quote
Reply

Tags
gui, infopanel, theme

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:08 AM.


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