You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Jamal BERRICH <jb...@gmail.com> on 2014/06/03 14:31:26 UTC

Pivot theme

Hi,
   I want to create my own theme color to applicate to my new Pivot
application (i will share a screencast as soon)
   but how :( ?
Best,
Jamal

Re: Pivot theme

Posted by Sandro Martini <sa...@gmail.com>.
Hi all,
if you only need a different set of colors, you can create your own
color scheme file (.json), and set it as active.
In Pivot we have many examples, all with name TerraTheme_*.json
Note that there are some parameters there so you can change not only
colors, but multiply coefficients, tell if it's a dark color scheme
(negative logic), etc.

You can create them even with the demo ColorSchemeCreator.

Some info here:
http://apache-pivot-users.399431.n3.nabble.com/Applying-custom-Color-themes-to-pivot-app-td2457362.html


Bye


2014-06-04 4:45 GMT+02:00 Roger and Beth Whitcomb <Ro...@rbwhitcomb.com>:
> Well, "setBaseColor" and "setColor" do slightly different things, so I'm not
> sure exactly what you want to do.  "setBaseColor" will update one of the
> basic palette colors and also adjust the darker and lighter shades of that
> color.  "setColor" will let you individually set any of the colors
> independently.
>
> HTH,
> ~Roger
>
>
> On 6/3/14 4:37 PM, Jamal BERRICH wrote:
>
> Hi,
>     I think it's setBaseColor not setColor.
>
> Best,
> Jamal
>
>
> 2014-06-03 23:52 GMT+01:00 Roger Whitcomb <Ro...@actian.com>:
>>
>> Hi Jamal,
>>
>>                 So, I’m assuming you want to change the RGB value of one
>> of the theme colors to something different, is that true?  If that’s what
>> you want to do it is quite easy:
>>
>> Theme theme = Theme.getTheme();
>>
>> theme.setColor(index, new Color(…));
>>
>>                 But, note that you should do this before displaying any
>> GUI elements because components that have already been painted will not be
>> updated by making this call.
>>
>>
>>
>> HTH,
>>
>> ~Roger
>>
>>
>>
>> From: Jamal BERRICH [mailto:jberrich@gmail.com]
>> Sent: Tuesday, June 03, 2014 5:31 AM
>> To: user@pivot.apache.org
>> Subject: Pivot theme
>>
>>
>>
>> Hi,
>>
>>    I want to create my own theme color to applicate to my new Pivot
>> application (i will share a screencast as soon)
>>
>>    but how :( ?
>>
>> Best,
>>
>> Jamal
>
>
>

Re: Pivot theme

Posted by Roger and Beth Whitcomb <Ro...@rbwhitcomb.com>.
Well, "setBaseColor" and "setColor" do slightly different things, so I'm 
not sure exactly what you want to do.  "setBaseColor" will update one of 
the basic palette colors and also adjust the darker and lighter shades 
of that color.  "setColor" will let you individually set any of the 
colors independently.

HTH,
~Roger

On 6/3/14 4:37 PM, Jamal BERRICH wrote:
> Hi,
>     I think it's setBaseColor not setColor.
>
> Best,
> Jamal
>
>
> 2014-06-03 23:52 GMT+01:00 Roger Whitcomb <Roger.Whitcomb@actian.com 
> <ma...@actian.com>>:
>
>     Hi Jamal,
>
>     So, I’m assuming you want to change the RGB value of one of the
>     theme colors to something different, is that true?  If that’s what
>     you want to do it is quite easy:
>
>     Theme theme = Theme.getTheme();
>
>     theme.setColor(index, new Color(…));
>
>     But, note that you should do this before displaying any GUI
>     elements because components that have already been painted will
>     not be updated by making this call.
>
>     HTH,
>
>     ~Roger
>
>     *From:*Jamal BERRICH [mailto:jberrich@gmail.com
>     <ma...@gmail.com>]
>     *Sent:* Tuesday, June 03, 2014 5:31 AM
>     *To:* user@pivot.apache.org <ma...@pivot.apache.org>
>     *Subject:* Pivot theme
>
>     Hi,
>
>        I want to create my own theme color to applicate to my new
>     Pivot application (i will share a screencast as soon)
>
>        but how :( ?
>
>     Best,
>
>     Jamal
>
>


Re: Pivot theme

Posted by Jamal BERRICH <jb...@gmail.com>.
Hi,
    I think it's setBaseColor not setColor.

Best,
Jamal


2014-06-03 23:52 GMT+01:00 Roger Whitcomb <Ro...@actian.com>:

>  Hi Jamal,
>
>                 So, I’m assuming you want to change the RGB value of one
> of the theme colors to something different, is that true?  If that’s what
> you want to do it is quite easy:
>
> Theme theme = Theme.getTheme();
>
> theme.setColor(index, new Color(…));
>
>                 But, note that you should do this before displaying any
> GUI elements because components that have already been painted will not be
> updated by making this call.
>
>
>
> HTH,
>
> ~Roger
>
>
>
> *From:* Jamal BERRICH [mailto:jberrich@gmail.com]
> *Sent:* Tuesday, June 03, 2014 5:31 AM
> *To:* user@pivot.apache.org
> *Subject:* Pivot theme
>
>
>
> Hi,
>
>    I want to create my own theme color to applicate to my new Pivot
> application (i will share a screencast as soon)
>
>    but how :( ?
>
> Best,
>
> Jamal
>

RE: Pivot theme

Posted by Roger Whitcomb <Ro...@actian.com>.
Hi Jamal,
                So, I’m assuming you want to change the RGB value of one of the theme colors to something different, is that true?  If that’s what you want to do it is quite easy:
Theme theme = Theme.getTheme();
theme.setColor(index, new Color(…));
                But, note that you should do this before displaying any GUI elements because components that have already been painted will not be updated by making this call.

HTH,
~Roger

From: Jamal BERRICH [mailto:jberrich@gmail.com]
Sent: Tuesday, June 03, 2014 5:31 AM
To: user@pivot.apache.org
Subject: Pivot theme

Hi,
   I want to create my own theme color to applicate to my new Pivot application (i will share a screencast as soon)
   but how :( ?
Best,
Jamal