blossom
Version:
Modern, Cross-Platform Application Framework
52 lines (44 loc) • 1.46 kB
JavaScript
// ==========================================================================
// Project: Blossom - Modern, Cross-Platform Application Framework
// Copyright: ©2012 Fohr Motion Picture Studios. All rights reserved.
// License: Licensed under the GPLv3 license (see BLOSSOM-LICENSE).
// ==========================================================================
/*globals global WidgetDemo */
var base03 = "#002b36";
var base02 = "#073642";
var base01 = "#586e75";
var base00 = "#657b83";
var base0 = "#839496";
var base1 = "#93a1a1";
var base2 = "#eee8d5";
var base3 = "#fdf6e3";
var yellow = "#b58900";
var orange = "#cb4b16";
var red = "#dc322f";
var magenta = "#d33682";
var violet = "#6c71c4";
var blue = "#268bd2";
var cyan = "#2aa198";
var green = "#859900";
var white = "white";
sc_require('buttons');
sc_require('controls');
WidgetDemo.setUpTabs = function() {
WidgetDemo.tabsSurface = SC.TabSurface.create({
theme: 'regular',
items: [{ title: "Buttons",
value: "buttonsSurface",
enabled: true },
{ title: "Controls",
value: "controlsSurface",
enabled: true }
],
value: 'controlsSurface',
itemTitleKey: 'title',
itemValueKey: 'value',
itemIconKey: 'icon',
itemIsEnabledKey: 'enabled',
buttonsSurface: WidgetDemo.buttonsSurface,
controlsSurface: WidgetDemo.controlsSurface
});
};