Guest User

Untitled

a guest
Jan 23rd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. win = Ti.UI.currentWindow;
  2.  
  3. Titanium.App.Properties.setString("themePak","joker");
  4.  
  5. var theme = Titanium.App.Properties.getString("themePak");
  6.  
  7. var themeProps= {};
  8.  
  9.  
  10. var themesFile = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, theme + '.json');
  11.  
  12. themeProps = JSON.parse(themesFile.read());
  13.  
  14.  
  15. var headerView = Ti.UI.createView(themeProps.header);
  16.  
  17. win.add(headerView);
Add Comment
Please, Sign In to add comment