Skip to content

Instantly share code, notes, and snippets.

@topherfangio
Created May 15, 2014 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save topherfangio/2e2292d6316aeb2d81ed to your computer and use it in GitHub Desktop.
Save topherfangio/2e2292d6316aeb2d81ed to your computer and use it in GitHub Desktop.
# my_project/sc_config
var craft = BT.AppBuilder.create({
path: 'apps/craft',
frameworks: ['firecore', 'core'],
theme: 'scimple_theme',
indexHtml: function () {
return this.renderIndexHtml(this).replace("<head>", "<head><link href='//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css' rel='stylesheet'>");
}.property()
});
BT.serverConfig = {
host: "localhost",
port: 8080,
localOnly: true
};
# my_project/apps/craft/theme.js
Craft.Theme = Scimple.Theme.create({
name: 'craft'
});
// SproutCore needs to know that your app's theme exists
SC.Theme.addTheme(Craft.Theme);
// Setting it as the default theme makes every pane SproutCore
// creates default to this theme unless otherwise specified.
SC.defaultTheme = 'craft';
# my_project/themes/scimple/sc_config
BT.addTheme(BT.Theme.extend({
ref: "scimple_theme",
cssName: "scimple",
path: dirname() + "themes/scimple",
dependencies: ["sproutcore:empty_theme"]
}));
# my_project/themes/scimple/theme.js
Scimple = SC.Object.create();
Scimple.Theme = SC.EmptyTheme.create({
name: 'scimple'
});
SC.Theme.addTheme(Scimple.Theme);
SC.defaultTheme = 'scimple';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment