cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject spec commit: Small tweak to statusbar manual test
Date Tue, 15 Jul 2014 02:57:46 GMT
Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master 290a435e1 -> 8a591f9bb


Small tweak to statusbar manual test


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/8a591f9b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/8a591f9b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/8a591f9b

Branch: refs/heads/master
Commit: 8a591f9bb50bde92b11fa5ece31917e6726f7abd
Parents: 290a435
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Mon Jul 14 22:57:00 2014 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Mon Jul 14 22:57:34 2014 -0400

----------------------------------------------------------------------
 www/statusbar/index.html | 5 +++--
 www/statusbar/index.js   | 8 +++++++-
 2 files changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/8a591f9b/www/statusbar/index.html
----------------------------------------------------------------------
diff --git a/www/statusbar/index.html b/www/statusbar/index.html
index 620db22..c5251f7 100644
--- a/www/statusbar/index.html
+++ b/www/statusbar/index.html
@@ -40,8 +40,9 @@
     Also: tapping bar on iOS should emit a log.
     <div class="btn large action-show">show</div>
     <div class="btn large action-hide">hide</div>
-    <div class="btn large action-color1">style=default</div>
-    <div class="btn large action-color2">style=red</div>
+    <div class="btn large action-color1">style=red</div>
+    <div class="btn large action-color2">style=translucent black</div>
+    <div class="btn large action-color3">style=default</div>
     <div class="btn large action-overlays">Toggle Overlays</div>
     <h2> </h2><div class="backBtn">Back</div>
   </body>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/8a591f9b/www/statusbar/index.js
----------------------------------------------------------------------
diff --git a/www/statusbar/index.js b/www/statusbar/index.js
index dae733a..201cf26 100644
--- a/www/statusbar/index.js
+++ b/www/statusbar/index.js
@@ -21,7 +21,12 @@ function doColor1() {
 }
 
 function doColor2() {
-    log('set color=default');
+    log('set style=translucent black');
+    StatusBar.styleBlackTranslucent();
+}
+
+function doColor3() {
+    log('set style=default');
     StatusBar.styleDefault();
 }
 
@@ -47,6 +52,7 @@ window.onload = function() {
   addListenerToClass('action-hide', doHide);
   addListenerToClass('action-color1', doColor1);
   addListenerToClass('action-color2', doColor2);
+  addListenerToClass('action-color3', doColor3);
   addListenerToClass('action-overlays', doOverlay);
   addListenerToClass('backBtn', backHome);
   init();


Mime
View raw message