On 15 avr, 16:49, klas <[email protected]> wrote:
> Should I use
> datepicker.setStylePrimaryName("myOwnPlain")
> ?
If you do this, you'll lose the theme style.
> After reading DatePicker source code it seems like the primary style
> will *always* be applied.
> And, by default, it will set the background-color of weekends.
the *theme* sets the style of weekends, using a CSS selector based on
the "primary style" defined in the code. If you don't use a theme, or
want to make your own theme, you then don't have to set a specific
"primary style" on the datepicker and you can just the "default" one
on your CSS selectors.
I bet your issue has something to do with the "cascading" part of CSS:
as stated here several times during the past few weeks, unless you
inject your style using a <stylesheet> in your module's gwt.xml, the
stylesheet from the theme you're using will override your styles
(because it'll always be inserted *after* yours, in document order).
Search the group, you'll find the answers (several possibilities;
hint: search for "StandardResources")
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---