[kepler-dev] background color

Christopher Brooks cxh at eecs.berkeley.edu
Mon Aug 3 08:05:09 PDT 2009


The best way would be to take a look at ptolemy/actor/gui/ConfigurationApplication.java
and take the code that finds the configuration, then finds the PtolemyPreferences
attribute and then sets the background parameter.

This would need to be done in the Kepler class that brings up the application.
Offhand, I'm not sure what that would be.

The reason this is best is because it avoid duplicating Ptolemy classes
and uses the way that Ptolemy sets the background, so a struggle between
PtolemyPreferences setting the background and the change to KeplerGraphTableau
is avoided.

_Christopher

Matt Jones wrote:
> Yeah, this has been bugging me too.  Lets change the background back
> to the white background that we designed for the Kepler UI.  Anyone
> know who made this UI change?  Can you change it back please?
> 
> Matt
> 
> On Mon, Aug 3, 2009 at 6:32 AM, Christopher Brooks<cxh at eecs.berkeley.edu> wrote:
>> Hi Norbert,
>> In Ptolemy, drag in a LocalPreferences attribute from Utilities.
>> Then set the Background color.
>>
>> It appears that Kepler does not have LocalPreferences in the list
>> of attributes, so I did Tools->Instantiate Attribute and then
>> entered ptolemy.actor.gui.PtolemyPreferences
>>
>> When I hacked in the -printPDF facility, I added some code that
>> sets the background, see for example
>> ptolemy.actor.gui.ConfigurationApplication.
>>
>> The place where PtolemyPreferences is used to set the background is in
>> ptolemy.vergil.basic.BasicGraphFrame
>>
>> _Christopher
>>
>> Podhorszki, Norbert wrote:
>>> Hi,
>>>
>>> Where can I set the GUI's background back to white?
>>> After years of making nice screenshots for (white bg) papers and slides, I
>>> just cannot stand the current gray background.
>>>
>>> There is a gray background color defined in
>>>  gui/src/org/kepler/gui/frame/KeplerGraphTableau.java
>>> but that seems to control only some empty areas and the toolbox.
>>>
>>> Thanks
>>> Norbert
>>>
>>>  Norbert Podhorszki
>>>  ------------------------------------------
>>>  Scientific Computing Group
>>>  National Center for Computational Sciences
>>>  Oak Ridge National Laboratory
>>>  Phone: (865) 574-7159
>>>
>>>
>>> _______________________________________________
>>> Kepler-dev mailing list
>>> Kepler-dev at kepler-project.org
>>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>> --
>> Christopher Brooks (cxh at eecs berkeley edu) University of California
>> CHESS Executive Director                      US Mail: 337 Cory Hall
>> Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
>> ph: 510.643.9841 fax:510.642.2718             (Office: 545Q Cory)
>> home: (F-Tu) 707.665.0131 (W-F) 510.655.5480
>> _______________________________________________
>> Kepler-dev mailing list
>> Kepler-dev at kepler-project.org
>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>>
> 
> 
> 

-- 
Christopher Brooks (cxh at eecs berkeley edu) University of California
CHESS Executive Director                      US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718	      (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 (W-F) 510.655.5480


More information about the Kepler-dev mailing list