Permalink
Browse files

Applied style updates to welcome message

  • Loading branch information...
1 parent 0e6054b commit 10d21631d4cc87efb7704e98029f67d351b39f68 @benbahrenburg benbahrenburg committed Mar 18, 2011
Showing with 38 additions and 23 deletions.
  1. +22 −6 Resources/javascript/disclaimer.js
  2. +16 −17 Resources/javascript/disclaimer.jss
@@ -2,19 +2,35 @@ Ti.include('./application.js');
var cc ={win:Ti.UI.currentWindow};
(function(){
- cc.bgImage = Ti.UI.createImageView({id:'bgImage'});
- cc.win.add(cc.bgImage);
cc.scrollView = Ti.UI.createScrollView({id:'scrollView'});
cc.disclaimerLabel = Ti.UI.createLabel({id:'disclaimerLabel'});
cc.scrollView.add(cc.disclaimerLabel);
cc.win.add(cc.scrollView);
- cc.tosButton = Ti.UI.createButton({id:'tosButton'});
- cc.win.add(cc.tosButton);
+ cc.okButton = Ti.UI.createView({
+ borderRadius:isAndroid() ? 10 : 5,
+ id:'okButton'
+ });
+
+ cc.win.add(cc.okButton);
+
+ cc.okButtonLabel = Ti.UI.createLabel({
+ text:L('disclaimer_button_title'),
+ right:10,
+ left:10,
+ textAlign:'center',
+ color:'#fff',
+ font:{
+ fontSize:20,fontWeight:'Bold'
+ }
+
+ });
+ cc.okButton.add(cc.okButtonLabel);
- cc.tosButton.addEventListener('click', function() {
- Ti.App.fireEvent('remove_disclaimer');
+ cc.okButton.addEventListener('click', function() {
+ Ti.App.Properties.setBool('disclaimerViewed', true);
+ cc.win.close();
});
})();
@@ -1,14 +1,9 @@
-#tosButton {
+#okButton {
left:10;
right:10;
bottom:10;
- height: 57;
- backgroundImage: '../images/button_dark_off.png';
- backgroundSelectedImage: '../images/button_dark_on.png';
- font-size:16;
- font-weight:'bold';
- color:"#fff";
- titleid: 'disclaimer_button_title'
+ height:60;
+ backgroundImage:'../images/buttons/button_spacer.png';
}
#disclaimerLabel {
@@ -22,17 +17,21 @@
textid: 'disclaimer_text'
}
-#bgImage {
- top:0;
- left:0;
- height:'auto';
- width:'auto';
-}
-
#scrollView {
- top: 0;
- left: 0;
+ top:20;
+ left:0;
bottom:80;
contentHeight: 'auto';
contentWidth: 320;
+ showVerticalScrollIndicator:'true';
+}
+
+#okButtonLabel {
+ textid:'disclaimer_button_title';
+ right:10;
+ left:10;
+ text-align:'center';
+ color:'#fff';
+ font-size:20;
+ font-weight:'Bold';
}

0 comments on commit 10d2163

Please sign in to comment.