Re: [qooxdoo-devel] setTheme issue

2008-04-14 Thread zhangwolf
try this var mgr = qx.theme.manager.Meta.getInstance(); var listStyle = mgr.getMetaThemes(); var ext = listStyle[5]; qx.theme.manager.Meta.getInstance().setTheme(ext); -- View this message in context: http://www.nabble.com/setTheme-

Re: [qooxdoo-devel] setTheme issue

2008-03-25 Thread Grykar
Sebastian thanks for help qx.io.local.CookieApi.set('_theme_',qx.theme.manager.Meta.getInstance().getTheme(), 2); var theme_cookie = qx.io.local.CookieApi.get('_theme_'); theme_cookie = theme_cookie.substring(7,theme_cookie.length-1); if(theme_cookie) qx.theme.manager.Meta.getInstance().setTheme(

Re: [qooxdoo-devel] setTheme issue

2008-03-25 Thread Sebastian Werner
Looks like you try to store and object instance in an cookie which could not work. Try to modify your code to just store the classname of the theme to use. And use this class name together with qx.Theme.getByName to get the theme instance back. This instance then could be used for the setTheme

[qooxdoo-devel] setTheme issue

2008-03-22 Thread Grykar
Hi, step 1 save theme in cookie qx.io.local.CookieApi.set('_theme_', qx.theme.manager.Meta.getInstance().getTheme(), 2); step 2 in the same session nor next one the code below doesn't work var theme_cookie = qx.io.local.CookieApi.get('_the