From 44782b1ddffcda017e91047321317c9d76874c6e Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 20 Jun 2019 17:05:28 -0400 Subject: [PATCH] header upper on iOS --- src/App/Pages/Accounts/EnvironmentPage.xaml | 4 ++-- src/App/Pages/Generator/GeneratorPage.xaml | 2 +- src/App/Pages/Settings/OptionsPage.xaml | 4 ++-- src/App/Pages/Vault/AddEditPage.xaml | 14 ++++++------- src/App/Pages/Vault/AttachmentsPage.xaml | 2 +- src/App/Pages/Vault/SharePage.xaml | 2 +- src/App/Pages/Vault/ViewPage.xaml | 10 +++++----- src/App/Styles/iOS.xaml | 22 +++++++++++++++++++-- src/App/Utilities/I18nExtension.cs | 8 +++++++- 9 files changed, 46 insertions(+), 22 deletions(-) diff --git a/src/App/Pages/Accounts/EnvironmentPage.xaml b/src/App/Pages/Accounts/EnvironmentPage.xaml index d78da40ba..2f9312675 100644 --- a/src/App/Pages/Accounts/EnvironmentPage.xaml +++ b/src/App/Pages/Accounts/EnvironmentPage.xaml @@ -21,7 +21,7 @@ - @@ -42,7 +42,7 @@ - diff --git a/src/App/Pages/Generator/GeneratorPage.xaml b/src/App/Pages/Generator/GeneratorPage.xaml index c115b4648..307cd8af4 100644 --- a/src/App/Pages/Generator/GeneratorPage.xaml +++ b/src/App/Pages/Generator/GeneratorPage.xaml @@ -52,7 +52,7 @@ - diff --git a/src/App/Pages/Settings/OptionsPage.xaml b/src/App/Pages/Settings/OptionsPage.xaml index fe0c1edf0..3a1a46475 100644 --- a/src/App/Pages/Settings/OptionsPage.xaml +++ b/src/App/Pages/Settings/OptionsPage.xaml @@ -96,7 +96,7 @@ - @@ -134,7 +134,7 @@ - diff --git a/src/App/Pages/Vault/AddEditPage.xaml b/src/App/Pages/Vault/AddEditPage.xaml index 61c57aa4a..70df83ec2 100644 --- a/src/App/Pages/Vault/AddEditPage.xaml +++ b/src/App/Pages/Vault/AddEditPage.xaml @@ -57,7 +57,7 @@ - - @@ -464,7 +464,7 @@ - @@ -491,7 +491,7 @@ - @@ -504,7 +504,7 @@ - @@ -584,7 +584,7 @@ - @@ -600,7 +600,7 @@ - - diff --git a/src/App/Pages/Vault/SharePage.xaml b/src/App/Pages/Vault/SharePage.xaml index 69b851b5f..d05df94f7 100644 --- a/src/App/Pages/Vault/SharePage.xaml +++ b/src/App/Pages/Vault/SharePage.xaml @@ -49,7 +49,7 @@ - - @@ -418,7 +418,7 @@ - @@ -479,7 +479,7 @@ - @@ -496,7 +496,7 @@ - @@ -569,7 +569,7 @@ - diff --git a/src/App/Styles/iOS.xaml b/src/App/Styles/iOS.xaml index cc754975e..80211e027 100644 --- a/src/App/Styles/iOS.xaml +++ b/src/App/Styles/iOS.xaml @@ -31,7 +31,7 @@ @@ -63,7 +63,25 @@ ApplyToDerivedTypes="True" Class="list-row-button-platform"> + Value="37" /> + + + + + + + diff --git a/src/App/Utilities/I18nExtension.cs b/src/App/Utilities/I18nExtension.cs index 232ddb2af..39897d391 100644 --- a/src/App/Utilities/I18nExtension.cs +++ b/src/App/Utilities/I18nExtension.cs @@ -20,10 +20,16 @@ namespace Bit.App.Utilities public string P1 { get; set; } public string P2 { get; set; } public string P3 { get; set; } + public bool Header { get; set; } public object ProvideValue(IServiceProvider serviceProvider) { - return _i18nService.T(Id, P1, P2, P3); + var val = _i18nService.T(Id, P1, P2, P3); + if(Header && Device.RuntimePlatform == Device.iOS) + { + return val.ToUpper(); + } + return val; } } }