It's simply because there's no style in standard .css.

Anyway a scroll panel is simply a div with overflow set to scroll.

It's not css standard to be able to customize it... I didn't pay attention
to what widget you wanted to customize, I simply explained how we customize
a widget in general.

Christian


On Fri, Feb 12, 2010 at 12:03 PM, RPB <[email protected]> wrote:

> Thanks for the suggestion, but ScrollPanel doesn't exist in
> standard.css (or if i've missed it, could you please post the google
> css here?)
>
> I've been trying a couple of things. The most successful is the below
> which works on IE but not Firefox or Chrome.
> Any other ideas?
>
> .....
> .scroll{
>        scrollbar-3dlight-color:#FFD700;
>        scrollbar-arrow-color:#FFFF00;
>        scrollbar-base-color:#FF6347;
>        scrollbar-darkshadow-color:#FFA500;
>        scrollbar-face-color:#008080;
>        scrollbar-highlight-color:#FF69B4;
>        scrollbar-shadow-color:#FF00FF;
> }
> ......
> <g:ScrollPanel styleName='{style.scroll}'>
>
> On Feb 12, 4:42 pm, Christian Goudreau <[email protected]>
> wrote:
> > Simply copy the ScrollPanel css from the google css file. Change de
> > gwt-ScrollPanel name to whatever you want, but only change the primary
> name.
> >
> > Then, you have to call setStylePrimaryName on your scrollbar.
> >
> > Finally, you change the css as you wish.
> >
> > Christian
> >
> > On Fri, Feb 12, 2010 at 11:38 AM, RPB <[email protected]> wrote:
> > > Hello,
> >
> > > Does anyone know how to change the scrollpanel CSS (specifically I
> > > want to make the scrollbar a different colour). Any example CSS or
> > > tips would be much appreciated (it's not in the GWT showcase).
> >
> > > Thanks
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<google-web-toolkit%[email protected]>
> <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to