Ejemplo n.º 1
0
		public override void FinishedLaunching (UIApplication application)
		{
			string documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); // Documents folder
			string libraryPath = Path.Combine (documentsPath, "..","Library","soma.db"); // Library folder
			Database = new Core.SomaDatabase (libraryPath);


			#region APPEARANCE
			//http://dribbble.com/shots/1121640-iOS-7-Colors-PS-Swatches/attachments/142910
			UINavigationBar.Appearance.TintColor = new UIColor(88/255f, 86/255f, 214/255f, 1f);
			//UILabel.Appearance.Font = UIFont.FromName (FontLightName, 14f); // Avenir-Heavy, Avenir-Black, Avenir-Medium, ...Oblique
			UINavigationBar.Appearance.SetTitleTextAttributes (FontTitleTextAttributes);
			UIBarButtonItem.Appearance.SetTitleTextAttributes (FontBackTextAttributes, UIControlState.Normal);
			#endregion
		}
Ejemplo n.º 2
0
        public override void FinishedLaunching(UIApplication application)
        {
            string documentsPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);    // Documents folder
            string libraryPath   = Path.Combine(documentsPath, "..", "Library", "soma.db");          // Library folder

            Database = new Core.SomaDatabase(libraryPath);


            #region APPEARANCE
            //http://dribbble.com/shots/1121640-iOS-7-Colors-PS-Swatches/attachments/142910
            UINavigationBar.Appearance.TintColor = new UIColor(88 / 255f, 86 / 255f, 214 / 255f, 1f);
            //UILabel.Appearance.Font = UIFont.FromName (FontLightName, 14f); // Avenir-Heavy, Avenir-Black, Avenir-Medium, ...Oblique
            UINavigationBar.Appearance.SetTitleTextAttributes(FontTitleTextAttributes);
            UIBarButtonItem.Appearance.SetTitleTextAttributes(FontBackTextAttributes, UIControlState.Normal);
            #endregion
        }