David,
I use something like that. To easy manage my CSS class names, I use a
generator similar to the CssResource-generator. I define an interface
extending Identifiers with one method for each CSS class name:
interface MyCssClasses
extends Identifiers
{
public String firstClass();
public String secondClass();
}
My generator create an implementation that returns the name of the
method for each one. This allow refractoring and avoid typo-error. I
also added some annotation to allow name override (@Identifier) and
case transformation (@Transform). I also use it each time an
identifier is needed.
You can find my code here:
http://code.google.com/p/tyco/source/browse/#svn/trunk/tyco-gwt/src/main/com/googlecode/tyco/gwt/user
Hope this helps,
Olivier
On 8 juin, 21:42, David Grant <[email protected]> wrote:
> Any suggestions on how to do theming, ie. to allow a new theme to be created
> in the future as a separate css file that can be switched on/off at runtime.
> I also don't want just global CSS though, I want CSS scope as local as
> possible but I want to be able to expose some CSS to be themable. Here's my
> idea about how to organize our CSS to do this:
>
> 1) Shared CSS file - contain some styles that are shared across all widgets
> like fonts
> 2) Local CSS stuff - stuff that applies only to 1 widget or so, this will be
> inside the widget's ui.xml file, or in a separate css file and referened
> from the ui.xml file
> 3) Theme CSS file - there will be several, all of which extend from some
> interface that defines classes that can be then modified by a theme's css
> file
>
> So within any one ui.xml file I might be referring to some local css, the
> shared css, or the theme's css.
>
> Any comments?
--
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.