Sha256: 16c37b611c0bd7f3caa2179b06a1f154736df357b989e9f0fed564417791d3e9

Contents?: true

Size: 1.17 KB

Versions: 5

Compression:

Stored size: 1.17 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            Portions ©2008-2010 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================

/**
  Styling becomes easier when your app has its own theme to target.
  The theme's name will be included in every view's class names in DOM,
  so you can apply styles without being exceedingly specific.
  
  If working with Chance, the $theme variable (which has its initial
  value set in your Buildfile) will allow you to target the theme
  automatically:
  
  Example:
  
      $theme.button {
        border: 1px solid black;
      }
*/
TestControls.Theme = SC.AceTheme.create({ 
  name: 'test-controls'
});

SC.Theme.addTheme(TestControls.Theme);

// this makes all panes use your app's theme by default
// QUESTION: should we make this be set by the Buildfile?
//    :theme => 'test-controls' 
// generates JS: 
//    SC.defaultTheme = 'test-controls'
SC.defaultTheme = 'test-controls';

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
spade-0.0.1 sproutcore/apps/test_controls/theme.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/apps/test_controls/theme.js
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/apps/test_controls/theme.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/apps/test_controls/theme.js
sproutcore-1.5.0.pre.3 lib/frameworks/sproutcore/apps/test_controls/theme.js