mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-08 09:30:46 +01: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 vaultNavigation = new ExtendedNavigationPage(new VaultListCiphersPage(false, uri));
|
||||||
var toolsNavigation = new ExtendedNavigationPage(new ToolsPage());
|
var toolsNavigation = new ExtendedNavigationPage(new ToolsPage());
|
||||||
|
|
||||||
favoritesNavigation.Title = AppResources.Favorites;
|
|
||||||
favoritesNavigation.Icon = "star.png";
|
favoritesNavigation.Icon = "star.png";
|
||||||
|
|
||||||
vaultNavigation.Title = AppResources.MyVault;
|
|
||||||
vaultNavigation.Icon = "fa_lock.png";
|
vaultNavigation.Icon = "fa_lock.png";
|
||||||
|
|
||||||
toolsNavigation.Title = AppResources.Tools;
|
|
||||||
toolsNavigation.Icon = "tools.png";
|
toolsNavigation.Icon = "tools.png";
|
||||||
|
|
||||||
settingsNavigation.Title = AppResources.Settings;
|
|
||||||
settingsNavigation.Icon = "cogs.png";
|
settingsNavigation.Icon = "cogs.png";
|
||||||
|
|
||||||
Children.Add(favoritesNavigation);
|
Children.Add(favoritesNavigation);
|
||||||
|
@ -56,6 +56,12 @@ namespace Bit.iOS.Controls
|
|||||||
|
|
||||||
try
|
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");
|
icon = string.Concat(icon, "_selected");
|
||||||
if(item?.SelectedImage?.AccessibilityIdentifier == icon)
|
if(item?.SelectedImage?.AccessibilityIdentifier == icon)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user