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

333 lines
13 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"
2019-06-24 21:29:23 +03:00
x:Class="Bit.App.Styles.Android"
xmlns:controls="clr-namespace:Bit.App.Controls">
2019-05-01 22:11:54 +03:00
<Style TargetType="Entry"
ApplyToDerivedTypes="True">
2019-06-05 19:32:40 +03:00
<Setter Property="PlaceholderColor"
Value="{DynamicResource InputPlaceholderColor}" />
<Setter Property="TextColor"
Value="{DynamicResource TextColor}" />
2019-05-01 22:11:54 +03:00
<Setter Property="Margin"
2019-05-08 06:22:25 +03:00
Value="-4, 0, -4, -4" />
</Style>
<Style TargetType="Picker"
ApplyToDerivedTypes="True">
<Setter Property="TextColor"
Value="{DynamicResource TextColor}" />
2019-05-08 06:22:25 +03:00
<Setter Property="Margin"
Value="-4, 0, -4, -4" />
2019-05-01 22:11:54 +03:00
</Style>
<Style TargetType="DatePicker"
ApplyToDerivedTypes="True">
<Setter Property="TextColor"
Value="{DynamicResource TextColor}" />
<Setter Property="BackgroundColor"
Value="{DynamicResource BackgroundColor}" />
</Style>
<Style TargetType="TimePicker"
ApplyToDerivedTypes="True">
<Setter Property="TextColor"
Value="{DynamicResource TextColor}" />
<Setter Property="BackgroundColor"
Value="{DynamicResource BackgroundColor}" />
</Style>
2019-05-08 22:00:45 +03:00
<Style TargetType="Editor"
ApplyToDerivedTypes="True">
<Setter Property="TextColor"
Value="{DynamicResource TextColor}" />
2019-06-05 19:32:40 +03:00
<Setter Property="PlaceholderColor"
Value="{DynamicResource InputPlaceholderColor}" />
2019-05-08 22:00:45 +03:00
<Setter Property="Margin"
Value="-4, 0, -4, -4" />
2019-06-24 18:53:19 +03:00
</Style>
<Style TargetType="Switch"
ApplyToDerivedTypes="True">
<Setter Property="OnColor"
Value="{DynamicResource SwitchOnColor}" />
</Style>
<Style TargetType="SearchBar"
ApplyToDerivedTypes="True">
2019-06-24 18:53:19 +03:00
<Setter Property="BackgroundColor"
Value="Transparent" />
<Setter Property="TextColor"
Value="{DynamicResource TitleEntryTextColor}" />
2019-06-24 18:53:19 +03:00
<Setter Property="CancelButtonColor"
Value="{DynamicResource TitleEntryTextColor}" />
2019-06-24 18:53:19 +03:00
<Setter Property="PlaceholderColor"
Value="{DynamicResource TitleEntryPlaceholderColor}" />
</Style>
<Style TargetType="ContentPage"
ApplyToDerivedTypes="True">
<Setter Property="BackgroundColor"
Value="{DynamicResource BackgroundColor}" />
2019-06-24 21:29:23 +03:00
</Style>
<Style TargetType="controls:ExtendedSlider">
<Setter Property="MinimumTrackColor"
Value="{DynamicResource SliderTrackMinColor}" />
2019-06-24 21:29:23 +03:00
<Setter Property="MaximumTrackColor"
Value="{DynamicResource SliderTrackMinColor}" />
2019-06-24 21:29:23 +03:00
<Setter Property="ThumbColor"
Value="{DynamicResource SliderThumbColor}" />
2019-06-24 21:29:23 +03:00
<Setter Property="ThumbBorderColor"
Value="{DynamicResource SliderThumbBorderColor}" />
</Style>
<Style TargetType="controls:ExtendedStepper">
<Setter Property="StepperBackgroundColor"
Value="{DynamicResource StepperBackgroundColor}" />
<Setter Property="StepperForegroundColor"
Value="{DynamicResource StepperForegroundColor}" />
2019-05-08 22:00:45 +03:00
</Style>
2019-05-02 19:20:56 +03:00
<!-- Buttons -->
<Style TargetType="Button">
<Setter Property="BackgroundColor"
Value="{DynamicResource ButtonBackgroundColor}" />
<Setter Property="BorderColor"
Value="{DynamicResource ButtonBorderColor}" />
<Setter Property="BorderWidth"
Value="1" />
<Setter Property="TextColor"
Value="{DynamicResource ButtonTextColor}" />
<Setter Property="FontSize"
Value="18" />
<Setter Property="CornerRadius"
Value="5" />
<Setter Property="Margin"
Value="0, 5, 0, 0" />
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="BackgroundColor"
Value="{DynamicResource ButtonBackgroundColorDisabled}" />
<Setter Property="BorderWidth"
Value="0" />
<Setter Property="TextColor"
Value="{DynamicResource ButtonTextColorDisabled}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
<Style TargetType="Button"
Class="btn-primary">
<Setter Property="BackgroundColor"
Value="{DynamicResource PrimaryColor}" />
<Setter Property="BorderColor"
Value="{DynamicResource PrimaryColor}" />
<Setter Property="BorderWidth"
Value="1" />
<Setter Property="TextColor"
Value="{DynamicResource ButtonPrimaryTextColor}" />
<Setter Property="FontSize"
Value="18" />
<Setter Property="FontAttributes"
Value="Bold" />
<Setter Property="CornerRadius"
Value="5" />
<Setter Property="Margin"
Value="0, 5, 0, 0" />
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="TextColor"
Value="{DynamicResource ButtonPrimaryTextColorDisabled}" />
<Setter Property="BackgroundColor"
Value="{DynamicResource ButtonPrimaryBackgroundColorDisabled}" />
<Setter Property="BorderColor"
Value="{DynamicResource ButtonPrimaryBackgroundColorDisabled}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
<Style TargetType="Button"
Class="btn-secondary">
<Setter Property="BackgroundColor"
Value="Transparent" />
<Setter Property="BorderColor"
Value="{DynamicResource ButtonBorderColor}" />
<Setter Property="BorderWidth"
Value="1" />
<Setter Property="TextColor"
2021-12-20 18:31:12 +03:00
Value="{DynamicResource ButtonTextColorOpacity}" />
<Setter Property="FontSize"
Value="Medium" />
<Setter Property="CornerRadius"
Value="5" />
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="TextColor"
Value="{DynamicResource ButtonTextColorDisabled}" />
<Setter Property="BackgroundColor"
Value="{DynamicResource ButtonBackgroundColorDisabled}" />
<Setter Property="BorderColor"
Value="{DynamicResource ButtonBackgroundColorDisabled}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
<Style TargetType="Button"
Class="btn-danger">
<Setter Property="BackgroundColor"
Value="{DynamicResource DangerColor}" />
<Setter Property="BorderColor"
Value="{DynamicResource DangerColor}" />
<Setter Property="BorderWidth"
Value="1" />
<Setter Property="TextColor"
Value="{DynamicResource ButtonPrimaryTextColor}" />
<Setter Property="FontSize"
Value="Medium" />
<Setter Property="CornerRadius"
Value="5" />
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="TextColor"
Value="{DynamicResource ButtonTextColorDisabled}" />
<Setter Property="BackgroundColor"
Value="{DynamicResource ButtonBackgroundColorDisabled}" />
<Setter Property="BorderColor"
Value="{DynamicResource ButtonBackgroundColorDisabled}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
2019-05-02 19:20:56 +03:00
<Style TargetType="Button"
ApplyToDerivedTypes="True"
Class="btn-icon-platform">
<Setter Property="WidthRequest"
Value="37" />
<Setter Property="FontSize"
Value="25" />
</Style>
2019-05-07 06:18:13 +03:00
<!-- Title -->
<Style TargetType="Button"
Class="btn-title-platform"
ApplyToDerivedTypes="True">
<Setter Property="WidthRequest"
Value="28" />
<Setter Property="FontSize"
Value="24" />
</Style>
2019-04-26 19:57:52 +03:00
<!-- List -->
2019-05-08 17:42:55 +03:00
<Style TargetType="BoxView"
Class="list-item-separator-bottom-platform"
2019-05-08 17:42:55 +03:00
ApplyToDerivedTypes="True">
<Setter Property="BackgroundColor"
2019-04-23 00:08:37 +03:00
Value="Transparent" />
</Style>
2019-06-20 23:02:39 +03:00
<Style TargetType="StackLayout"
Class="list-row-header-platform">
<Setter Property="Padding"
Value="10, 12" />
<Setter Property="VerticalOptions"
Value="CenterAndExpand" />
</Style>
2019-04-22 18:32:17 +03:00
<Style TargetType="Label"
Class="list-header-platform">
2019-04-22 21:17:33 +03:00
<Setter Property="TextColor"
Value="{DynamicResource ListHeaderTextColor}" />
2019-04-23 00:08:37 +03:00
<Setter Property="FontSize"
Value="Small" />
<Setter Property="FontAttributes"
Value="Bold" />
</Style>
2019-06-20 23:02:39 +03:00
<Style TargetType="BoxView"
Class="list-section-separator-top-platform">
<Setter Property="Color"
Value="{DynamicResource ListItemBorderColor}" />
2019-06-20 23:02:39 +03:00
</Style>
<Style TargetType="BoxView"
Class="list-section-separator-bottom-platform">
<Setter Property="Color"
Value="Transparent" />
<Setter Property="IsVisible"
Value="False" />
</Style>
2019-04-23 00:08:37 +03:00
<Style TargetType="StackLayout"
Class="list-row-platform">
</Style>
<Style TargetType="controls:ExtendedStackLayout"
Class="list-row-platform">
</Style>
2019-04-23 00:08:37 +03:00
<Style TargetType="Grid"
Class="list-row-platform">
2019-04-22 18:32:17 +03:00
</Style>
<Style TargetType="controls:ExtendedGrid"
Class="list-row-platform">
</Style>
2019-06-12 16:13:13 +03:00
<Style TargetType="Label"
Class="list-icon-platform"
ApplyToDerivedTypes="True">
<Setter Property="FontSize"
2019-10-30 16:30:45 +03:00
Value="23" />
2019-06-12 16:13:13 +03:00
</Style>
2019-05-02 21:53:45 +03:00
<Style TargetType="Button"
ApplyToDerivedTypes="True"
Class="list-row-button-platform">
<Setter Property="WidthRequest"
Value="37" />
<Setter Property="FontSize"
Value="25" />
</Style>
2019-04-26 07:26:09 +03:00
<!-- Box -->
2019-04-26 19:57:52 +03:00
<Style TargetType="Label"
Class="box-header-platform">
<Setter Property="TextColor"
Value="{DynamicResource BoxHeaderTextColor}" />
2019-04-26 19:57:52 +03:00
<Setter Property="FontSize"
Value="Small" />
<Setter Property="FontAttributes"
Value="Bold" />
</Style>
2019-04-26 07:26:09 +03:00
<Style TargetType="Button"
ApplyToDerivedTypes="True"
Class="box-row-button-platform">
<Setter Property="WidthRequest"
2019-04-26 23:58:20 +03:00
Value="37" />
2019-10-30 16:30:45 +03:00
<Setter Property="HeightRequest"
Value="45" />
2019-04-26 07:26:09 +03:00
<Setter Property="FontSize"
2019-04-26 23:58:20 +03:00
Value="25" />
2019-04-26 07:26:09 +03:00
</Style>
2021-12-20 18:31:12 +03:00
<Style TargetType="Label"
ApplyToDerivedTypes="True"
Class="title-danger">
<Setter Property="TextColor"
Value="{DynamicResource DangerColor}" />
<Setter Property="FontSize"
Value="Title" />
</Style>
2019-04-22 18:32:17 +03:00
</ResourceDictionary>