// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); // status bar UIView statusBar = UIApplication.SharedApplication.ValueForKey(new NSString("statusBar")) as UIView; if (statusBar.RespondsToSelector(new ObjCRuntime.Selector("setBackgroundColor:"))) { statusBar.BackgroundColor = Color.FromHex(AppTheme.MainColor()).ToUIColor(); } return(base.FinishedLaunching(app, options)); }
public BaseNavigationPage(Page root) : base(root) { BarBackgroundColor = Color.FromHex(AppTheme.MainColor()); BarTextColor = Color.FromHex(AppTheme.DefaultTextColor()); }