mirror of
https://github.com/bitwarden/mobile.git
synced 2024-09-10 01:08:23 +02:00
only show icons in nav
This commit is contained in:
parent
c057be17d0
commit
1f0f94746b
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user