sproutcore / abbot

SproutCore Build Tools [deprecated]
http://www.sproutcore.com
88 stars 44 forks source link

sc-gen theme: theme.js and Buildfile #21

Closed ialexi closed 13 years ago

ialexi commented 13 years ago

sc-gen theme should generate themes that include a Buildfile including the directive:

config :theme_name, :css_name => "theme-name"

And should include a theme.js file in the theme root:

 MyApp.Theme = SC.AceTheme.create({
    name: 'my-app'
  });

  SC.Theme.addTheme(MyApp.Theme);

Note: The theme.js should not set the SC.defaultTheme. Apps should set this.

ialexi commented 13 years ago

Done.