mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
only show icons in nav
This commit is contained in:
parent
c057be17d0
commit
1f0f94746b
2 changed files with 6 additions and 7 deletions
|
@ -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 a new issue