mirror of
https://github.com/bitwarden/mobile
synced 2026-01-05 01:53:17 +00:00
stylesheets
This commit is contained in:
@@ -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>
|
||||
|
||||
20
src/App/Controls/FaLabel.cs
Normal file
20
src/App/Controls/FaLabel.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user