From 1f0f94746bf22f4379f86e8c504d44f0e2ee2ddb Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 30 Oct 2017 14:13:09 -0400 Subject: [PATCH] only show icons in nav --- src/App/Pages/MainPage.cs | 7 ------- src/iOS/Controls/ExtendedTabbedPageRenderer.cs | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/App/Pages/MainPage.cs b/src/App/Pages/MainPage.cs index e9c2926cb..6dfefc7cf 100644 --- a/src/App/Pages/MainPage.cs +++ b/src/App/Pages/MainPage.cs @@ -16,16 +16,9 @@ namespace Bit.App.Pages var vaultNavigation = new ExtendedNavigationPage(new VaultListCiphersPage(false, uri)); var toolsNavigation = new ExtendedNavigationPage(new ToolsPage()); - favoritesNavigation.Title = AppResources.Favorites; favoritesNavigation.Icon = "star.png"; - - vaultNavigation.Title = AppResources.MyVault; vaultNavigation.Icon = "fa_lock.png"; - - toolsNavigation.Title = AppResources.Tools; toolsNavigation.Icon = "tools.png"; - - settingsNavigation.Title = AppResources.Settings; settingsNavigation.Icon = "cogs.png"; Children.Add(favoritesNavigation); diff --git a/src/iOS/Controls/ExtendedTabbedPageRenderer.cs b/src/iOS/Controls/ExtendedTabbedPageRenderer.cs index 351cb1b55..21b66c87c 100644 --- a/src/iOS/Controls/ExtendedTabbedPageRenderer.cs +++ b/src/iOS/Controls/ExtendedTabbedPageRenderer.cs @@ -56,6 +56,12 @@ namespace Bit.iOS.Controls try { + // Only show icon + // ref: https://stackoverflow.com/questions/26494130/remove-tab-bar-item-text-show-only-image + item.Title = string.Empty; + item.ImageInsets = new UIEdgeInsets(6, 0, -6, 0); + + // Set selected icon icon = string.Concat(icon, "_selected"); if(item?.SelectedImage?.AccessibilityIdentifier == icon) {