bitwarden-android/src/App/Styles/Base.xaml

236 lines
7.5 KiB
Text
Raw Normal View History

2019-04-22 18:32:17 +03:00
<?xml version="1.0" encoding="utf-8" ?>
<ResourceDictionary xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Bit.App.Styles.Base">
2019-04-23 00:08:37 +03:00
<!-- General -->
<Style TargetType="Label"
ApplyToDerivedTypes="True">
<Setter Property="FontSize"
Value="Medium" />
<Setter Property="TextColor"
Value="{StaticResource TextColor}" />
</Style>
<Style TargetType="Label"
x:Key="text-default">
<Setter Property="TextColor"
Value="{StaticResource TextColor}" />
</Style>
2019-04-30 16:50:35 +03:00
<Style TargetType="Label"
x:Key="text-muted">
<Setter Property="TextColor"
Value="{StaticResource MutedColor}" />
</Style>
<Style TargetType="Label"
x:Key="text-danger">
<Setter Property="TextColor"
Value="{StaticResource DangerColor}" />
</Style>
<Style TargetType="Label"
x:Key="text-success">
<Setter Property="TextColor"
Value="{StaticResource SuccessColor}" />
</Style>
2019-04-30 16:50:35 +03:00
<Style TargetType="Label"
x:Key="text-sm">
<Setter Property="FontSize"
Value="Small" />
</Style>
<Style TargetType="Label"
x:Key="text-lg">
<Setter Property="FontSize"
Value="Large" />
</Style>
<Style TargetType="Label"
x:Key="text-bold">
<Setter Property="FontAttributes"
Value="Bold" />
</Style>
2019-04-23 00:08:37 +03:00
<!-- List -->
2019-04-22 18:32:17 +03:00
<Style TargetType="ListView"
Class="list">
</Style>
<Style TargetType="StackLayout"
Class="list-row-header">
<Setter Property="Padding"
2019-04-23 00:08:37 +03:00
Value="10, 12" />
2019-05-01 19:28:49 +03:00
<Setter Property="Orientation"
Value="Horizontal" />
2019-04-22 18:32:17 +03:00
</Style>
<Style TargetType="Label"
Class="list-header">
2019-05-01 19:28:49 +03:00
<Setter Property="HorizontalOptions"
Value="StartAndExpand" />
<Setter Property="VerticalOptions"
Value="CenterAndExpand" />
<Setter Property="VerticalTextAlignment"
Value="Center" />
</Style>
<Style TargetType="Label"
Class="list-header-sub">
<Setter Property="HorizontalTextAlignment"
Value="End" />
<Setter Property="VerticalTextAlignment"
Value="Center" />
<Setter Property="TextColor"
Value="{StaticResource MutedColor}" />
<Setter Property="HorizontalOptions"
Value="End" />
<Setter Property="VerticalOptions"
Value="CenterAndExpand" />
2019-04-22 18:32:17 +03:00
</Style>
<Style TargetType="StackLayout"
Class="list-row">
<Setter Property="Padding"
2019-05-01 18:31:00 +03:00
Value="10, 12" />
2019-04-23 00:08:37 +03:00
</Style>
<Style TargetType="Grid"
Class="list-row">
<Setter Property="Padding"
Value="2, 5" />
2019-04-22 18:32:17 +03:00
</Style>
<Style TargetType="Label"
Class="list-title">
2019-04-23 00:08:37 +03:00
</Style>
2019-05-01 19:28:49 +03:00
<Style TargetType="Label"
Class="list-sub">
<Setter Property="TextColor"
Value="{StaticResource MutedColor}" />
</Style>
2019-04-23 00:08:37 +03:00
<Style TargetType="Label"
ApplyToDerivedTypes="True"
Class="list-title-icon">
2019-04-22 18:32:17 +03:00
<Setter Property="FontSize"
2019-04-23 00:08:37 +03:00
Value="Small" />
<Setter Property="TextColor"
Value="{StaticResource MutedColor}" />
2019-04-22 18:32:17 +03:00
</Style>
<Style TargetType="Label"
Class="list-subtitle">
<Setter Property="FontSize"
Value="Small" />
2019-04-23 00:08:37 +03:00
<Setter Property="TextColor"
Value="{StaticResource MutedColor}" />
2019-04-22 18:32:17 +03:00
</Style>
<Style TargetType="Label"
Class="list-icon"
ApplyToDerivedTypes="True">
2019-05-01 18:31:00 +03:00
<Setter Property="WidthRequest"
Value="26" />
<Setter Property="HeightRequest"
Value="26" />
<Setter Property="HorizontalTextAlignment"
Value="Center" />
<Setter Property="VerticalTextAlignment"
Value="Center" />
2019-04-22 18:32:17 +03:00
<Setter Property="FontSize"
2019-04-25 06:53:36 +03:00
Value="Large" />
2019-04-23 00:08:37 +03:00
<Setter Property="TextColor"
Value="{StaticResource MutedColor}" />
2019-04-22 18:32:17 +03:00
</Style>
2019-04-30 18:27:53 +03:00
<Style TargetType="ImageButton"
ApplyToDerivedTypes="True"
Class="list-button">
<Setter Property="BackgroundColor"
Value="Transparent" />
<Setter Property="Padding"
Value="0" />
<Setter Property="HorizontalOptions"
Value="End" />
<Setter Property="VerticalOptions"
Value="CenterAndExpand" />
</Style>
2019-04-26 07:26:09 +03:00
<!-- Box -->
<Style TargetType="StackLayout"
Class="box">
<Setter Property="Padding"
Value="10, 0" />
<Setter Property="Spacing"
Value="0" />
</Style>
2019-04-30 16:50:35 +03:00
<Style TargetType="StackLayout"
Class="box-bottom">
<Setter Property="Padding"
Value="10, 0, 10, 10" />
<Setter Property="Spacing"
Value="0" />
</Style>
2019-04-26 19:57:52 +03:00
<Style TargetType="StackLayout"
Class="box-row-header">
<Setter Property="Padding"
Value="0, 10, 0, 5" />
</Style>
<Style TargetType="Label"
Class="box-header">
</Style>
2019-04-26 07:26:09 +03:00
<Style TargetType="Grid"
Class="box-row">
<Setter Property="Padding"
Value="0, 10" />
<Setter Property="RowSpacing"
Value="0" />
<Setter Property="ColumnSpacing"
Value="10" />
</Style>
<Style TargetType="StackLayout"
Class="box-row">
<Setter Property="Padding"
Value="0, 10" />
<Setter Property="Spacing"
Value="0" />
</Style>
<Style TargetType="Button"
ApplyToDerivedTypes="True"
Class="box-row-button">
<Setter Property="BackgroundColor"
Value="Transparent" />
<Setter Property="Padding"
Value="0" />
<Setter Property="TextColor"
Value="{StaticResource PrimaryColor}" />
<Setter Property="HorizontalOptions"
Value="End" />
<Setter Property="VerticalOptions"
Value="CenterAndExpand" />
</Style>
<Style TargetType="BoxView"
Class="box-row-separator">
<Setter Property="HeightRequest"
Value="1" />
<Setter Property="Color"
Value="{StaticResource BoxBorderColor}" />
</Style>
<Style TargetType="Label"
Class="box-label">
<Setter Property="FontSize"
Value="Small" />
2019-04-30 16:50:35 +03:00
<Setter Property="Margin"
Value="0, 0, 0, 5" />
2019-04-26 07:26:09 +03:00
<Setter Property="TextColor"
Value="{StaticResource MutedColor}" />
</Style>
<Style TargetType="Label"
2019-04-27 06:37:21 +03:00
ApplyToDerivedTypes="True"
2019-04-26 07:26:09 +03:00
Class="box-value">
2019-04-27 05:59:53 +03:00
<Setter Property="LineBreakMode"
Value="CharacterWrap" />
2019-04-26 07:26:09 +03:00
</Style>
2019-04-29 21:35:44 +03:00
<Style TargetType="Label"
Class="box-sub-label">
<Setter Property="FontSize"
Value="Small" />
<Setter Property="TextColor"
Value="{StaticResource MutedColor}" />
</Style>
2019-04-30 16:50:35 +03:00
<Style TargetType="Label"
Class="box-footer-label">
<Setter Property="FontSize"
Value="Small" />
<Setter Property="TextColor"
Value="{StaticResource MutedColor}" />
</Style>
2019-04-22 18:32:17 +03:00
</ResourceDictionary>