lib/under_os/config.rb in under-os-0.0.0 vs lib/under_os/config.rb in under-os-1.0.0
- old
+ new
@@ -1,6 +1,33 @@
#
-# A little wrap over the ruby Motion config
+# Application config proxy
#
class UnderOs::Config
+ def initialize(app)
+ @app = app
+ end
+
+ def root_page
+ @app.history.root_page
+ end
+
+ def root_page=(page)
+ @app.history.root_page = page
+ end
+
+ def status_bar
+ @status_bar
+ end
+
+ def status_bar=(visible)
+ @status_bar = visible
+ end
+
+ def navbar
+ @app.history.navbar.visible
+ end
+
+ def navbar=(visible)
+ @app.history.navbar.__send__ visible ? :show : :hide, false
+ end
end