Sha256: 51b86b1702bf62e79c8b27755a6c324ecece4a09d5e4b9b370d392bbd0a51e6e

Contents?: true

Size: 526 Bytes

Versions: 9

Compression:

Stored size: 526 Bytes

Contents

class AppDelegate < Prime::BaseAppDelegate
  def on_load(app, options)
    setup_navigation_styles
    open_screen HomeScreen.new(navigation: true), sidebar: SidebarScreen.new
  end

  def setup_navigation_styles
    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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
motion-prime-0.4.5 files/app/app_delegate.rb
motion-prime-0.4.4 files/app/app_delegate.rb
motion-prime-0.4.3 files/app/app_delegate.rb
motion-prime-0.4.2 files/app/app_delegate.rb
motion-prime-0.4.1 files/app/app_delegate.rb
motion-prime-0.4.0 files/app/app_delegate.rb
motion-prime-0.3.3 files/app/app_delegate.rb
motion-prime-0.3.2 files/app/app_delegate.rb
motion-prime-0.3.1 files/app/app_delegate.rb