-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Wow!
Fantastic!
Finally, a long awaited theme customization is available!
Great, fantastic job!
I've checked the code I use to jar the files, and I think the problem was that I forgot to close the jarEntry. Instead I relied only on putNextEntry which closes the previous entry. So the last one was "unclosed" and it was 'zkthemer/ThemeProvider.class'.
I've corrected it and uploaded a new zkthemer.jar. Could you check if it works now on Windows? Thank you.
I've also posted the source code.
@Fernando
@Jaume
I had the same problem, the solution that I found was include the "metainfo/zk/lang-addon.xml" in the theme file. My application has a lot of iframes and frames and I think that this is the problem (I don't konw why). I tried the theme file in a full zk application and it just works.
I hope that it helps someone.
Regards,
edgar
Ho Jose,
I'm getting following error.
=============================================
EVERE: Unable to load /WEB-INF/zk.xml
org.zkoss.zk.ui.UiException: Unable to load zkthemer.ThemeProvider, at [SYS jndi:/localhost/CSS-M-eye/WEB-INF/zk.xml line 8 col 17]
at org.zkoss.zk.ui.sys.ConfigParser.parseClass(ConfigParser.java:577)
at org.zkoss.zk.ui.sys.ConfigParser.parseDesktopConfig(ConfigParser.java:486)
===========================
Thanks,
Dhana
Excellent tool. After a couple of tries, I got it working for me. But I was wondering if it were possible to create various jars with different colors and the user would be able to change them at runtime. How could this be achieved? Thanks a lot.
Yes, it is possible to create various jars and change them at runtime. You only have to modify the ThemeProvider class listed in the smalltalk. As you can see, the default one looks for a properties file called 'zkthemer.properties' with an entry 'theme=<<yourThemeName>>'. Each generated jar has a similar file. In your new ThemeProvider class you have to replace this mechanism completely and choose the theme from the 'Execution' passed in
getThemeURIs(Execution exec, List uris)