files/app/app_delegate.rb in motion-prime-0.1.0 vs files/app/app_delegate.rb in motion-prime-0.1.1
- old
+ new
@@ -1,4 +1,14 @@
class AppDelegate < MotionPrime::BaseAppDelegate
def on_load(app, options)
+ setup_navigation_styles
+ open_with_sidebar HomeScreen.new(navigation: true), SidebarScreen.new
+ end
+
+ def setup_navigation_styles
+ # set navigation bar and button backgrounds
+ UINavigationBar.appearance.setBackgroundImage "images/navigation/bg.png".uiimage,
+ forBarMetrics: UIBarMetricsDefault
+ UIBarButtonItem.appearance.setBackgroundImage "images/navigation/button.png".uiimage,
+ forState: UIControlStateNormal, barMetrics:UIBarMetricsDefault
end
end
\ No newline at end of file