From 610789fd6dde6f095b638b5faef28a3ab246a719 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 22 Aug 2016 18:59:15 -0400 Subject: [PATCH] Android font size adjustments --- src/Android/Android.csproj | 1 + src/Android/Controls/CustomButtonRenderer.cs | 26 +++++++++++++++++++ .../Controls/ExtendedButtonRenderer.cs | 2 +- .../Controls/ExtendedPickerRenderer.cs | 2 +- .../Controls/ExtendedSwitchCellRenderer.cs | 14 ++++++++++ .../Controls/ExtendedTextCellRenderer.cs | 13 ++++++++++ src/App/App.csproj | 1 - src/App/Controls/EntryLabel.cs | 13 ---------- src/App/Controls/FormEditorCell.cs | 4 +-- src/App/Controls/FormEntryCell.cs | 7 +++-- src/App/Controls/LabeledDetailCell.cs | 3 ++- src/App/Controls/LabeledValueCell.cs | 2 +- src/App/Controls/PinControl.cs | 2 +- src/App/Controls/StepperCell.cs | 6 +++-- src/App/Pages/HomePage.cs | 2 +- src/App/Pages/Settings/SettingsAboutPage.cs | 1 + src/App/Pages/Settings/SettingsPage.cs | 1 + src/App/Pages/Tools/ToolsPage.cs | 1 + .../Pages/Tools/ToolsPasswordGeneratorPage.cs | 2 ++ src/App/Pages/Vault/VaultListSitesPage.cs | 1 + 20 files changed, 76 insertions(+), 28 deletions(-) create mode 100644 src/Android/Controls/CustomButtonRenderer.cs delete mode 100644 src/App/Controls/EntryLabel.cs diff --git a/src/Android/Android.csproj b/src/Android/Android.csproj index 394e144db..d8af19e1a 100644 --- a/src/Android/Android.csproj +++ b/src/Android/Android.csproj @@ -291,6 +291,7 @@ + diff --git a/src/Android/Controls/CustomButtonRenderer.cs b/src/Android/Controls/CustomButtonRenderer.cs new file mode 100644 index 000000000..a0584d31f --- /dev/null +++ b/src/Android/Controls/CustomButtonRenderer.cs @@ -0,0 +1,26 @@ +using System; +using System.ComponentModel; +using Bit.Android.Controls; +using Xamarin.Forms; +using Xamarin.Forms.Platform.Android; + +[assembly: ExportRenderer(typeof(Button), typeof(CustomButtonRenderer))] +namespace Bit.Android.Controls +{ + public class CustomButtonRenderer : ButtonRenderer + { + protected override void OnElementChanged(ElementChangedEventArgs