{"hidden":false,"children":[{"configs":{"itemId":"module"},"expanded":true,"children":[{"configs":{"layout":"fit","itemId":"themePanel","appImage":"wb/images/icon/theme.png"},"expanded":true,"children":[{"configs":{"itemId":"titlebar1","title":"@Str.theme","docked":"top","titleAlign":"left"},"expanded":true,"children":[{"configs":{"itemId":"save","glyph":"f0c7","ui":"action","text":"@Str.save","align":"right"},"expanded":false,"children":[],"type":"tbutton","events":{"tap":"var theme, checkItem = app.themePanel.down('[checked=true]');\ntheme = checkItem ? checkItem.itemId : 'classic';\nWb.request({\n  url: 'm?xwl=apps/sys/tools/theme/set-theme',\n  params: {\n    theme: theme\n  },\n  success: function(resp) {\n    Wb.confirm(Str.refreshWindow, function() {\n      location.reload();\n    });\n  }\n});"}}],"type":"ttitlebar"},{"configs":{"itemId":"container1","scrollable":"true"},"expanded":true,"children":[{"configs":{"itemId":"themeSet","defaults":"{\n  labelWidth: '60%'\n}"},"expanded":true,"children":[{"configs":{"itemId":"classic","name":"theme","label":"@Str.classic"},"expanded":false,"children":[],"type":"tradio"},{"configs":{"itemId":"apple","name":"theme","label":"Apple"},"expanded":false,"children":[],"type":"tradio"},{"configs":{"itemId":"bb10","name":"theme","label":"BlackBerry"},"expanded":false,"children":[],"type":"tradio"},{"configs":{"itemId":"cupertino","name":"theme","label":"Cupertino"},"expanded":false,"children":[],"type":"tradio"},{"configs":{"itemId":"mountainview","name":"theme","label":"Mountainview"},"expanded":false,"children":[],"type":"tradio"},{"configs":{"itemId":"tizen","name":"theme","label":"Tizen"},"expanded":false,"children":[],"type":"tradio"},{"configs":{"itemId":"wp","name":"theme","label":"Windows Phone"},"expanded":false,"children":[],"type":"tradio"}],"type":"tfieldset"}],"type":"tcontainer","events":{"painted":"var item = app[Wb.theme];\nif (item)\n  item.check();"}}],"type":"tviewport"}],"type":"module"}],"roles":{"demo":1},"title":"Str.theme","iconCls":"color_icon","inframe":true,"pageLink":""}