Permalink
Browse files

add ui/style, helpers/util

  • Loading branch information...
1 parent 091e5a1 commit dbc74df7279bcaf124e7c187c784ffd9238c6101 @ofl committed Apr 27, 2012
Showing with 62 additions and 0 deletions.
  1. +52 −0 Resources/ui/style.js
  2. +10 −0 coffee/helpers/util.coffee
View
52 Resources/ui/style.js
@@ -0,0 +1,52 @@
+var exports, mix, style, theme;
+mix = (require('helpers/util')).mix;
+theme = {
+ blackText: '#333333',
+ lightBlackText: '#666666',
+ barColor: '#808080',
+ buttonBackground: '#777777',
+ background: '#eee',
+ darkBackground: '#333333',
+ blueText: '#336699',
+ darkBlue: '#93caed',
+ lightGrayBackground: '#eee',
+ white: '#fff',
+ fontFamily: 'Helvetica Neue'
+};
+style = {
+ theme: theme,
+ window: {
+ tabBarHidden: true,
+ navBarHidden: false,
+ barColor: theme.barColor,
+ backgroundColor: theme.background,
+ orientationModes: [Ti.UI.PORTRAIT],
+ width: 320,
+ height: Ti.UI.FILL
+ },
+ tab: {
+ width: 320,
+ height: Ti.UI.FILL
+ },
+ tabGroup: {
+ width: 320,
+ height: Ti.UI.FILL
+ },
+ tableView: {
+ backgroundColor: theme.background
+ },
+ tableViewRow: {
+ color: theme.blackText
+ },
+ menuBtn: {
+ style: Ti.UI.iPhone.SystemButtonStyle.BORDERED,
+ title: 'Menu'
+ },
+ animation: {
+ curve: Ti.UI.iOS.ANIMATION_CURVE_EASE_OUT,
+ duration: 500
+ }
+};
+exports = {
+ style: style
+};
View
10 coffee/helpers/util.coffee
@@ -0,0 +1,10 @@
+exports =
+
+ mix: () ->
+ child = {}
+ for arg in arguments
+ for prop of arg
+ if arg.hasOwnProperty prop
+ child[prop] = arg[prop]
+ return child
+

0 comments on commit dbc74df

Please sign in to comment.