I was hoping to implement some simple customizable themes for my
project.  Nothing fancy, just pretty much changing color schemes.
Based on the wiki for CssResource I was planning on using @eval to
determine colors and things at runtime like so:

@eval userBackground com.module.UserPreferences.getUserBackground();
div {
  background: userBackground;
}

Is there a way to share userBackground between CSS resources?   I know
I can provide multiple .css files and GWT will concatenate them for me
like @Source("common.css", "other.css"),  but I need to provide a
relative path to common.css, which isn't too convenient when
common.css and other.css are in different packages.

I would also like to be able to access the variables from within
<ui:style> maybe something like this:
<ui:with field='common' type='com.my.app.common.Resources'/>
<ui:style>
.user{
  background-color: {common.style.userBackground};
}
</ui:style>

Is there a way to use @eval's between different css resources an
ui.xml files?

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

Reply via email to