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 2012/09/24 12:35:40 UTC

CalendarButton style

Hi,
     How i can change the calendar component style inside a CalendarButton ?

Thks

Re: CalendarButton style

Posted by Sandro Martini <sa...@gmail.com>.
Hi Jamal,

in the Terra Theme (skin), the visual skin for CalendarComponent is
the TerraCalendarButtonSkin class, as you can see here:
        componentSkinMap.put(CalendarButton.class,
TerraCalendarButtonSkin.class);

(note that TerraCalendarButtonSkin extends the more generic CalendarButtonSkin)

so you could even define your own Theme (maybe extending TerraTheme),
and add your skin class for CalendarButton, and maybe for other
components ...


But before this, I recommend to you to try with existing properties
and styles, for example using ComponentExplorer:

http://pivot.apache.org/demos/component-explorer.html


Or if you need something general (that could be useful even to
others), tell to us ...


Bye