only show icons in nav

This commit is contained in:
Kyle Spearrin 2017-10-30 14:13:09 -04:00
parent c057be17d0
commit 1f0f94746b
2 changed files with 6 additions and 7 deletions

View File

@ -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);

View File

@ -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)
{