1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-05 01:53:17 +00:00

stylesheets

This commit is contained in:
Kyle Spearrin
2019-03-29 17:54:03 -04:00
parent a1c853d7fc
commit fe52324eea
10 changed files with 92 additions and 34 deletions

View File

@@ -3,12 +3,11 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Bit.App.Controls.CipherViewCell"
xmlns:controls="clr-namespace:Bit.App.Controls">
<ViewCell.View>
<StackLayout x:Name="_layout"
Padding="10"
x:DataType="controls:CipherViewCellViewModel">
<StackLayout.BindingContext>
<controls:CipherViewCellViewModel />
</StackLayout.BindingContext>
@@ -16,8 +15,7 @@
<Label Text="{Binding Cipher.Name}"
LineBreakMode="NoWrap"
FontSize="16" />
</StackLayout>
</ViewCell.View>
</ViewCell.View>
</ViewCell>

View File

@@ -0,0 +1,20 @@
using Xamarin.Forms;
namespace Bit.App.Controls
{
public class FaLabel : Label
{
public FaLabel()
{
switch(Device.RuntimePlatform)
{
case Device.iOS:
FontFamily = "FontAwesome";
break;
case Device.Android:
FontFamily = "FontAwesome.ttf#FontAwesome";
break;
}
}
}
}