files/app/app_delegate.rb in motion-prime-0.3.0 vs files/app/app_delegate.rb in motion-prime-0.3.1
- old
+ new
@@ -1,14 +1,17 @@
class AppDelegate < Prime::BaseAppDelegate
def on_load(app, options)
setup_navigation_styles
- open_with_sidebar HomeScreen.new(navigation: true), SidebarScreen.new
+ open_screen HomeScreen.new(navigation: true), sidebar: 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
+ bar_appearance = UINavigationBar.appearance
+ bar_appearance.barTintColor = Prime::Config.color.dark.uicolor
+
+ settings = {
+ UITextAttributeFont => MP::Config.font.name.uifont(17),
+ UITextAttributeTextColor => :white.uicolor
+ }
+ bar_appearance.setTitleTextAttributes(settings)
end
end
\ No newline at end of file