1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-28 22:23:35 +00:00

some style consolidation

This commit is contained in:
Kyle Spearrin
2016-06-17 00:01:25 -04:00
parent 7c6a4c8fb1
commit 0c3bd0b92c
10 changed files with 5947 additions and 104 deletions

View File

@@ -5,6 +5,12 @@ namespace Bit.App.Controls
{
public class ExtendedTextCell : TextCell
{
public ExtendedTextCell()
{
TextColor = Color.FromHex("333333");
DetailColor = Color.FromHex("777777");
}
public static readonly BindableProperty BackgroundColorProperty =
BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(ExtendedTextCell), Color.White);

View File

@@ -11,8 +11,8 @@ namespace Bit.App.Controls
{
Text = labelText,
FontSize = 14,
TextColor = Color.FromHex("777777"),
VerticalOptions = LayoutOptions.Start
VerticalOptions = LayoutOptions.Start,
Style = (Style)Application.Current.Resources["text-muted"]
};
Entry = new ExtendedEntry
@@ -20,8 +20,7 @@ namespace Bit.App.Controls
Keyboard = entryKeyboard,
HasBorder = false,
VerticalOptions = LayoutOptions.CenterAndExpand,
IsPassword = IsPassword,
TextColor = Color.FromHex("333333")
IsPassword = IsPassword
};
if(nextElement != null)

View File

@@ -28,7 +28,7 @@ namespace Bit.App.Controls
{
Text = labelText,
FontSize = 14,
TextColor = Color.FromHex("777777"),
Style = (Style)Application.Current.Resources["text-muted"],
VerticalOptions = LayoutOptions.Start
};
@@ -39,8 +39,7 @@ namespace Bit.App.Controls
{
Text = valueText,
LineBreakMode = LineBreakMode.TailTruncation,
VerticalOptions = LayoutOptions.CenterAndExpand,
TextColor = Color.FromHex("333333")
VerticalOptions = LayoutOptions.CenterAndExpand
};
labelValueStackLayout.Children.Add(Value);
@@ -59,8 +58,7 @@ namespace Bit.App.Controls
Text = button1Text,
HorizontalOptions = LayoutOptions.End,
VerticalOptions = LayoutOptions.Center,
Margin = new Thickness(0),
TextColor = Color.FromHex("3c8dbc")
Margin = new Thickness(0)
};
buttonStackLayout.Children.Add(Button1);
@@ -73,8 +71,7 @@ namespace Bit.App.Controls
Text = button2Text,
HorizontalOptions = LayoutOptions.End,
VerticalOptions = LayoutOptions.Center,
Margin = new Thickness(0),
TextColor = Color.FromHex("3c8dbc")
Margin = new Thickness(0)
};
buttonStackLayout.Children.Add(Button2);

View File

@@ -13,7 +13,6 @@ namespace Bit.App.Controls
{
HorizontalTextAlignment = TextAlignment.Center,
FontSize = 30,
TextColor = Color.FromHex("333333"),
FontFamily = "Courier"
};