From 4ba721b314b5b48dc0fc906dc271ff0935cb4a6a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 14 Jun 2016 00:19:18 -0400 Subject: [PATCH] styling updates to ios --- src/App/Controls/LabeledValueCell.cs | 6 ++++-- src/iOS.Extension/ActionViewController.cs | 8 ++++++++ src/iOS/AppDelegate.cs | 3 +++ src/iOS/Controls/ExtendedTabbedPageRenderer.cs | 5 +++++ src/iOS/Resources/ion_chevron_right.png | Bin 261 -> 0 bytes src/iOS/Resources/ion_chevron_right@2x.png | Bin 515 -> 0 bytes src/iOS/Resources/ion_chevron_right@3x.png | Bin 595 -> 0 bytes src/iOS/Resources/plus.png | Bin 149 -> 157 bytes src/iOS/Resources/plus@2x.png | Bin 155 -> 150 bytes src/iOS/Resources/plus@3x.png | Bin 144 -> 137 bytes src/iOS/iOS.csproj | 9 --------- 11 files changed, 20 insertions(+), 11 deletions(-) delete mode 100644 src/iOS/Resources/ion_chevron_right.png delete mode 100644 src/iOS/Resources/ion_chevron_right@2x.png delete mode 100644 src/iOS/Resources/ion_chevron_right@3x.png diff --git a/src/App/Controls/LabeledValueCell.cs b/src/App/Controls/LabeledValueCell.cs index 96ca450a5..2ae2a7520 100644 --- a/src/App/Controls/LabeledValueCell.cs +++ b/src/App/Controls/LabeledValueCell.cs @@ -59,7 +59,8 @@ namespace Bit.App.Controls Text = button1Text, HorizontalOptions = LayoutOptions.End, VerticalOptions = LayoutOptions.Center, - Margin = new Thickness(0) + Margin = new Thickness(0), + TextColor = Color.FromHex("3c8dbc") }; buttonStackLayout.Children.Add(Button1); @@ -72,7 +73,8 @@ namespace Bit.App.Controls Text = button2Text, HorizontalOptions = LayoutOptions.End, VerticalOptions = LayoutOptions.Center, - Margin = new Thickness(0) + Margin = new Thickness(0), + TextColor = Color.FromHex("3c8dbc") }; buttonStackLayout.Children.Add(Button2); diff --git a/src/iOS.Extension/ActionViewController.cs b/src/iOS.Extension/ActionViewController.cs index 4f68379f2..242bc3660 100644 --- a/src/iOS.Extension/ActionViewController.cs +++ b/src/iOS.Extension/ActionViewController.cs @@ -19,6 +19,14 @@ namespace Bit.iOS.Extension public Context Context { get; set; } + public override void ViewWillAppear(bool animated) + { + UINavigationBar.Appearance.ShadowImage = new UIImage(); + UINavigationBar.Appearance.SetBackgroundImage(new UIImage(), UIBarMetrics.Default); + + base.ViewWillAppear(animated); + } + public override void ViewDidLoad() { base.ViewDidLoad(); diff --git a/src/iOS/AppDelegate.cs b/src/iOS/AppDelegate.cs index 09c5932a4..9644c9ca1 100644 --- a/src/iOS/AppDelegate.cs +++ b/src/iOS/AppDelegate.cs @@ -54,6 +54,9 @@ namespace Bit.iOS Resolver.Resolve(), Resolver.Resolve())); + UINavigationBar.Appearance.ShadowImage = new UIImage(); + UINavigationBar.Appearance.SetBackgroundImage(new UIImage(), UIBarMetrics.Default); + return base.FinishedLaunching(app, options); } diff --git a/src/iOS/Controls/ExtendedTabbedPageRenderer.cs b/src/iOS/Controls/ExtendedTabbedPageRenderer.cs index 80fa57254..572af79e3 100644 --- a/src/iOS/Controls/ExtendedTabbedPageRenderer.cs +++ b/src/iOS/Controls/ExtendedTabbedPageRenderer.cs @@ -1,6 +1,7 @@ using System; using Bit.App.Controls; using Bit.iOS.Controls; +using Foundation; using UIKit; using Xamarin.Forms; using Xamarin.Forms.Platform.iOS; @@ -19,6 +20,10 @@ namespace Bit.iOS.Controls TabBar.TintColor = page.TintColor.ToUIColor(); TabBar.BarTintColor = page.BarTintColor.ToUIColor(); TabBar.BackgroundColor = page.BackgroundColor.ToUIColor(); + + // remove top border + // ref: http://stackoverflow.com/questions/14371343/ios-uitabbar-remove-top-shadow-gradient-line + TabBar.SetValueForKeyPath(FromObject(true), new NSString("_hidesShadow")); } public override void ViewWillAppear(bool animated) diff --git a/src/iOS/Resources/ion_chevron_right.png b/src/iOS/Resources/ion_chevron_right.png deleted file mode 100644 index dd7cb2406a632c8e484d840ec507326f224a3943..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 261 zcmeAS@N?(olHy`uVBq!ia0vp^d?3uh3?wzC-F*zC0t0+PT!A!oLCi`~C!mQ^B|(0{ z42(=Htn8dT3d%VZm8}ye&0Vo}>xqjuA3S^UUNK4)sLIpR#W93qW^zJ8!UKVnBnPHL zK}|g#F=>LDj45{AD@5cs6@?jU#--TJ-XUUcG(R?|i+iSa;~7@1X9rV7E-2N_Ipn{URCj)#!T!HlP0IO`&{eV7kDhcun zW?*DuW?^Mx=iub#;o}z&7LkyYQ&Cmd(K9hMGk0+G2~Wx`uV`-VpS5(u_FV@K9zApJ z;^nK?@7#Ox?8WQ1A3uNp{r8Se>S~~A%ROBjLo|X*FSt7~1qiqt?2il#Fj%lCL1~7t zo4|_S@~2pD&)mK?v|O{>Z_cze$ug-wx_;I*U6nsGtMl5i8Shkg{ciWPy?9Jy|Lsn* z^dGmpz9jVZ_qs%X*f%XhdS1AYZS(P`F4hIxMUtQL@+H4H9GYXhqw}rQuZ^*X76{#9 z`h&A!F@u9@=duwPc;|B5t4m$(dp QouH`nboFyt=akR{0C!V@nE(I) diff --git a/src/iOS/Resources/ion_chevron_right@3x.png b/src/iOS/Resources/ion_chevron_right@3x.png deleted file mode 100644 index 8df8be9aa8e4ff7765cb0306589101afb7612d2a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 595 zcmeAS@N?(olHy`uVBq!ia0vp^S|H593?x6vT4n;Ns{uYCu0VSD0lw5AL7=bPN`m}? z8JL(^SlQS)IJtOu`2_?;L?tAp1a@=v_TuH+_n*K2{u{~Wcn)adb59q?5R21mueu8zGT>po;K0;!q5Az^ z;i~s9{<$Y59^CM#duGM!?Hf{GMql1H&G1#`rqmlQvKv*hykE3*bgWQa!0fuRab@gTe~DWM4feJ`TJ diff --git a/src/iOS/Resources/plus.png b/src/iOS/Resources/plus.png index 9b0bfe3b7be92bcf4d62f9373ee4471b24547e33..b6ce2b9ce2497968f41e25538a826fed03446af6 100644 GIT binary patch literal 157 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh-3?!F4n4AKn6a#!hT!A!xkbBYNAW#KYNswPK z0~3e1j@`Z!KYyR!db9y3s_5zB7{Vc&oWRhOBEZOYC8d<%pqD~kY5-G{kV4p!K3N9$ WXr5V>rurbu89ZJ6T-G@yGywqj^B@NR literal 149 zcmeAS@N?(olHy`uVBq!ia0vp^Vj#@I3?$8F6>VS)S0IfGObL9X0F>h>3GxeO zVB*lTbN%_-I`3g5P)yO&#W6%;YH|WYV;UQa1Vfn=$Cl;}5jItU3|7IeFD1+jais#& UdW@H!11e_lboFyt=akR{0E6-!1^@s6 diff --git a/src/iOS/Resources/plus@2x.png b/src/iOS/Resources/plus@2x.png index 6a3ee23daa58899dd20687422272c3bb993df414..207029feb145ace59de3da610010d32f4b753739 100644 GIT binary patch literal 150 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|l3?zm1T2})pi2$DvS0IfQgqh1|0VUW=g8YIR znAjY`_8ph*Pk0FwQuB0i4AD5BoY27ZnSrguK+9!LfTfkjF|{QutnWMn+8$*HOj2WE X;5JryVqX}{2QuB$)z4*}Q$iB}@-ZG= literal 155 zcmeAS@N?(olHy`uVBq!ia0vp^Iv~u#3?$#IayJ4}(g8jpu0R?Wm=gF%0Vu~&666=m zz-;U=_sqr5=29t_fnw^OE{-7@=aUl}nETz>auPx+R&bXmFrVGg;{0&IBHnX6QoJ`F aD)TVBiMLnZ7bKYsvcl8V&t;ucLK6Uhz9csQ diff --git a/src/iOS/Resources/plus@3x.png b/src/iOS/Resources/plus@3x.png index b2c953167b3d4d6cfbf9836de1831036aa8ecb6a..85ef4985772fa13de303c35ffeca9abe0c6de1df 100644 GIT binary patch delta 110 zcmbQh*vY8a8Q|y6%O%Cdz`(%k>ERLtq|HE>g&9cJWtYF3sHoz?qUUhZvF#U7MAg&9 zF~s6@a)JYsk{%b&jsq+1thkdfx%eRGoJ=KiDgMPp&LMmZ@3T#0g*2US05vdpy85}S Ib4q9e0NMKERLtq@6&Rg&9Z+R>|I;sHo!Y;Jf%FqlN=eM90&` zF~q|=Il+NdOOK7`$H5g{fuf7G+&Z|#nGQ_!)8g1&5^@wIrX0k|@IuS|s-fAMP@p~r MPgg&ebxsLQ03pF1zyJUM diff --git a/src/iOS/iOS.csproj b/src/iOS/iOS.csproj index 9eecce1e3..d6deab4d7 100644 --- a/src/iOS/iOS.csproj +++ b/src/iOS/iOS.csproj @@ -264,15 +264,6 @@ - - - - - - - - -