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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

371 lines
15 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>
[SG-416] Updates to Bitwarden Authenticator (Feature Branch) (#2041) * Initial commit of new TOTP page * Revert config files from previous commit This reverts commit b02c58e3623781ada1e9e8f820b403a5c48274aa. * clear extra code and fix build * add tab page * add authentication view cell * add toolbar icons * got the countdown working * enable context loading and vm init * PS-70 Added toggle to quickly filter TOTP cypher items and show their details, Added new text resource * PS-70 removed old authentication tab * removed unnecessary code on vm * fixed formatting * PS-70 Added circular progress to the OTP count down * PS-70 Fixed grid cell width. Added red progress at 20 percent. Refactored circular progress view. * PS-70 Added new props to custom control. * PS-70 show toggle only if it's premium * PS-70 removed unnecessary code * PS-70 add copy to clipboard. * PS-70 show upgrade to premium text on details to free user. * PS-70 added text labels to resource files * PS-70 Renamed TOTP to Totp to have consistency in naming. Removed a11y text of switch because android was overlapping text. * PS-70 added new UI to enter code manually in the QR Code scanner screen. Changed existing labels on scanner screen. * PS-70 Splited totp code to adjust spacing. * PS-70 Added scanner square corner overlay. Added scanning animation. Added scan success animation. * PS-70 let zxing scanner camera feed on until screen is closed. * PS-70 fixed scanner animation for android devices * PS-70 added vibrate permission to manifest. refactored scanpage code. added manual authentication key feature in scanner. * PS-70 fixed totp cell title label font * PS-70 added copy button to totp edit cipher. Added row button when totp is null. * PS-70 changed labels on manual scanner screen * PS-70 Added label on top of button to solve UI bug. * PS-70 Fixed android button overlapping bug by adding button styling to a Frame view and placing a label inside. Fixed Color on scanner page. * PS-70 Added frame styling for iOS, since frame view has different base configuration for android and iOS. * PS-70 fixed font clipping bug on iOS * PS-70 removed shadow for newer versions of android * PS-70 code format * PS-70 removed update to premium uri launch * PS-70 PR fix for AppResource vs code behind generation. * PS-70 changed premium required label. fixed bug when to show premium required label. * [SSG-416] Removed the dashes from free user and just left the Premium subscription required. * [SSG-416] removed unnecessary changes to the TabsPage file * [SSG-416] removed unnecessary using. * [SSG-416] Updated ViewPageViewModel and code refactoring. * [SG-416] Updated scanner mode toggle text color to be inline with figma designs * [SSG-416] Mobile PR Fixes * [SSG-416] Add to remove a11y text from totp toggle because on android it places an helper text next to the switch making it invisible. Also removed from the label because it already reads the text from the label * [SSG-416] run dotnet tool run dotnet-format * [SSG-416] PR fixes * Revert "[SSG-416] PR fixes" This reverts commit 2f2b90aceed81944e6a2737d5b4409d6798dc9da. * [PS-416] Fixed a bug where the item details page was not updating after saving. * [SG-416] Authenticator toggle remake (#2027) * [SG-416] Removed toggle to TOTP. Added on MainPage new entry to go to screen with TOTP codes. Added filter for TOTP codes to be used when searching. * [SG-416] Removed unnecessary code. Added nav back if there is only 1 cipher with totp code and the user removes it. * [SG-416] Run dotnet format tool * [SG-416] PR fixes * [SG-416] PR Fixes. Manifest formatting. Add try catch. Extracted method and added null protection. * [SG-416] Make TOTP codes appear above favourites. * [SG-416] PR fixes. Show error dialog. Co-authored-by: Carlos J. Muentes <42616259+cmuentes@users.noreply.github.com> Co-authored-by: Jacob Fink <jfink@bitwarden.com>
2022-08-18 00:10:16 +03:00
<Style TargetType="Frame"
[SG-166] Two Step Login - Feature Branch (#2157) * [SG-166] Update fonts to have necessary icons * [SG-166] Add new custom view to hold a button with a font icon and a label. * [SG-166] Two Step login flow - Mobile (#2153) * [SG-166] Add UI elements to Home and Login pages. Change VMs to function with new UI. Add new string resources. * [SG-166] Pass email parameter from Home to Login page. * [SG-166] Pass email to password hint page. * [SG-166] Remove remembered email from account switching. * [SG-166] Add GetKnownDevice endpoint to ApiService * [SG-166] Fix GetKnownDevice string uri * [SG-166] Add Renderer for IconLabel control. Add RemoveFontPadding bool property. * [SG-166] include IconLabelRenderer in Android csproj file * [SG-166] Add new control. Add styles for the control. * [SG-166] Add verification to start login if email is remembered * [SG-166] Pass default email to hint page * [SG-166] Login with device button only shows if it is a known device. * [SG-166] Change Remember Email to Remember me. Change Check to Switch control. * [SG-166] Add command to button for SSO Login * Revert "[SG-166] Update fonts to have necessary icons" This reverts commit 472b541cef2efa874e65035fed4952a817bdebb1. * [SG-166] Remove IconLabel Android renderer. Add RemoveFontPadding effect. * [SG-166] Update font with new device and suitcase icon * [SG-166] Fix RemoveFontPadding effect * [SG-166] Remove unused property in IconLabel * [SG-166] Fix formatting on IconLabelButton.xaml * [SG-166] Update padding effect to IconLabel * [SG-166] Add control variable to run code once on create * [SG-166] Add email validation before continue * [SG-166] Refactor icons * [SG-166] Update iOS Extension font * [SG-166] Remove HomePage login btn step * [SG-166] Make clickable area smaller * [SG-166] Fix hint filled by default * [SG-166] Fix IconButton font issue * [SG-166] Fix iOS extension * [SG-166] Move style to Base instead of platforms * [SG-166] Fix layout for IconLabelButton * [SG-166] Switched EventHandler for Command * [SG-166] Removed event handler * [SG-166] Fix LoginPage layout options * [SG-166] Fix extensions Login null email * [SG-166] Move remembered email logic to viewmodel * [SG-166] Protect method and show dialog in case of error * [SG-166] Rename of GetKnownDevice api method * [SG-166] rename text resource key name * [SG-166] Add close button to iOS extension * [SG-166] Switch event handlers for commands * [SG-166] Change commands UI thread invocation. * [SG-166] Remove Login with device button from the UI * [SG-166] Fixed appOptions and close button on iOS Extensions
2022-10-29 01:10:41 +03:00
ApplyToDerivedTypes="True"
[SG-416] Updates to Bitwarden Authenticator (Feature Branch) (#2041) * Initial commit of new TOTP page * Revert config files from previous commit This reverts commit b02c58e3623781ada1e9e8f820b403a5c48274aa. * clear extra code and fix build * add tab page * add authentication view cell * add toolbar icons * got the countdown working * enable context loading and vm init * PS-70 Added toggle to quickly filter TOTP cypher items and show their details, Added new text resource * PS-70 removed old authentication tab * removed unnecessary code on vm * fixed formatting * PS-70 Added circular progress to the OTP count down * PS-70 Fixed grid cell width. Added red progress at 20 percent. Refactored circular progress view. * PS-70 Added new props to custom control. * PS-70 show toggle only if it's premium * PS-70 removed unnecessary code * PS-70 add copy to clipboard. * PS-70 show upgrade to premium text on details to free user. * PS-70 added text labels to resource files * PS-70 Renamed TOTP to Totp to have consistency in naming. Removed a11y text of switch because android was overlapping text. * PS-70 added new UI to enter code manually in the QR Code scanner screen. Changed existing labels on scanner screen. * PS-70 Splited totp code to adjust spacing. * PS-70 Added scanner square corner overlay. Added scanning animation. Added scan success animation. * PS-70 let zxing scanner camera feed on until screen is closed. * PS-70 fixed scanner animation for android devices * PS-70 added vibrate permission to manifest. refactored scanpage code. added manual authentication key feature in scanner. * PS-70 fixed totp cell title label font * PS-70 added copy button to totp edit cipher. Added row button when totp is null. * PS-70 changed labels on manual scanner screen * PS-70 Added label on top of button to solve UI bug. * PS-70 Fixed android button overlapping bug by adding button styling to a Frame view and placing a label inside. Fixed Color on scanner page. * PS-70 Added frame styling for iOS, since frame view has different base configuration for android and iOS. * PS-70 fixed font clipping bug on iOS * PS-70 removed shadow for newer versions of android * PS-70 code format * PS-70 removed update to premium uri launch * PS-70 PR fix for AppResource vs code behind generation. * PS-70 changed premium required label. fixed bug when to show premium required label. * [SSG-416] Removed the dashes from free user and just left the Premium subscription required. * [SSG-416] removed unnecessary changes to the TabsPage file * [SSG-416] removed unnecessary using. * [SSG-416] Updated ViewPageViewModel and code refactoring. * [SG-416] Updated scanner mode toggle text color to be inline with figma designs * [SSG-416] Mobile PR Fixes * [SSG-416] Add to remove a11y text from totp toggle because on android it places an helper text next to the switch making it invisible. Also removed from the label because it already reads the text from the label * [SSG-416] run dotnet tool run dotnet-format * [SSG-416] PR fixes * Revert "[SSG-416] PR fixes" This reverts commit 2f2b90aceed81944e6a2737d5b4409d6798dc9da. * [PS-416] Fixed a bug where the item details page was not updating after saving. * [SG-416] Authenticator toggle remake (#2027) * [SG-416] Removed toggle to TOTP. Added on MainPage new entry to go to screen with TOTP codes. Added filter for TOTP codes to be used when searching. * [SG-416] Removed unnecessary code. Added nav back if there is only 1 cipher with totp code and the user removes it. * [SG-416] Run dotnet format tool * [SG-416] PR fixes * [SG-416] PR Fixes. Manifest formatting. Add try catch. Extracted method and added null protection. * [SG-416] Make TOTP codes appear above favourites. * [SG-416] PR fixes. Show error dialog. Co-authored-by: Carlos J. Muentes <42616259+cmuentes@users.noreply.github.com> Co-authored-by: Jacob Fink <jfink@bitwarden.com>
2022-08-18 00:10:16 +03:00
Class="btn-icon-row">
<Setter Property="BackgroundColor"
Value="{DynamicResource ButtonBackgroundColor}" />
<Setter Property="BorderColor"
Value="{DynamicResource ButtonBorderColor}" />
<Setter Property="CornerRadius"
Value="5" />
<Setter Property="Margin"
Value="0, 5, 0, 0" />
<Setter Property="HasShadow"
Value="False" />
<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}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</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="Medium" />
<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="Medium" />
<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>
<Style TargetType="Label"
Class="accountlist-title-platform"
ApplyToDerivedTypes="True">
<Setter Property="FontSize"
Value="Body" />
</Style>
<Style TargetType="Label"
Class="accountlist-sub-platform"
ApplyToDerivedTypes="True">
<Setter Property="FontSize"
Value="Caption" />
</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>