[kepler-dev] background color

David Welker david.v.welker at gmail.com
Mon Aug 3 21:30:55 PDT 2009


I agree that this is something that should be addressed by the new  
configuration system.

David


On Aug 3, 2009, at 5:21 PM, Aaron Schultz wrote:

>
> Would be great to be compatible with Ptolemy, Chad and David are  
> working on the new configuration system
> Hopefully a proper change can be worked in with that effort.
>
> For now I changed the hard coded background color in  
> KeplerGraphFrame back to white.
>
> Aaron
>
> Christopher Brooks wrote:
>> 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
>>>>
>>>
>>>
>>>
>>
>
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev



More information about the Kepler-dev mailing list