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.whitc...@actian.com <mailto:roger.whitc...@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:jberr...@gmail.com
    <mailto:jberr...@gmail.com>]
    *Sent:* Tuesday, June 03, 2014 5:31 AM
    *To:* user@pivot.apache.org <mailto: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



Reply via email to