mirror of
https://github.com/bitwarden/mobile
synced 2026-01-07 02:53:56 +00:00
Icon Updates (#1541)
This commit is contained in:
@@ -29,13 +29,13 @@ namespace Bit.App.Utilities
|
||||
icon = GetLoginIconGlyph(cipher);
|
||||
break;
|
||||
case CipherType.SecureNote:
|
||||
icon = "\uf24a"; // fa-sticky-note-o
|
||||
icon = BitwardenIcons.StickyNote;
|
||||
break;
|
||||
case CipherType.Card:
|
||||
icon = "\uf09d"; // fa-credit-card
|
||||
icon = BitwardenIcons.CreditCard;
|
||||
break;
|
||||
case CipherType.Identity:
|
||||
icon = "\uf2c3"; // fa-id-card-o
|
||||
icon = BitwardenIcons.IdCard;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@@ -45,17 +45,17 @@ namespace Bit.App.Utilities
|
||||
|
||||
string GetLoginIconGlyph(CipherView cipher)
|
||||
{
|
||||
var icon = "\uf0ac"; // fa-globe
|
||||
var icon = BitwardenIcons.Globe;
|
||||
if (cipher.Login.Uri != null)
|
||||
{
|
||||
var hostnameUri = cipher.Login.Uri;
|
||||
if (hostnameUri.StartsWith(Constants.AndroidAppProtocol))
|
||||
{
|
||||
icon = "\uf17b"; // fa-android
|
||||
icon = BitwardenIcons.Android;
|
||||
}
|
||||
else if (hostnameUri.StartsWith(Constants.iOSAppProtocol))
|
||||
{
|
||||
icon = "\uf179"; // fa-apple
|
||||
icon = BitwardenIcons.Apple;
|
||||
}
|
||||
}
|
||||
return icon;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using Bit.Core;
|
||||
using Bit.Core.Enums;
|
||||
using Bit.Core.Models.View;
|
||||
using Xamarin.Forms;
|
||||
@@ -19,10 +20,10 @@ namespace Bit.App.Utilities
|
||||
switch (send.Type)
|
||||
{
|
||||
case SendType.Text:
|
||||
icon = "\uf0f6"; // fa-file-text-o
|
||||
icon = BitwardenIcons.FileText;
|
||||
break;
|
||||
case SendType.File:
|
||||
icon = "\uf016"; // fa-file-o
|
||||
icon = BitwardenIcons.File;
|
||||
break;
|
||||
}
|
||||
return icon;
|
||||
|
||||
Reference in New Issue
Block a user