android tweaks

This commit is contained in:
Kyle Spearrin 2019-06-03 22:19:51 -04:00
parent 4f990ffe96
commit b38b801963
11 changed files with 137 additions and 95 deletions

View file

@ -136,6 +136,7 @@
<Compile Include="Services\LocalizeService.cs" /> <Compile Include="Services\LocalizeService.cs" />
<Compile Include="Tile\MyVaultTileService.cs" /> <Compile Include="Tile\MyVaultTileService.cs" />
<Compile Include="Utilities\AndroidHelpers.cs" /> <Compile Include="Utilities\AndroidHelpers.cs" />
<Compile Include="Utilities\CustomFingerprintDialogFragment.cs" />
<Compile Include="Utilities\HockeyAppCrashManagerListener.cs" /> <Compile Include="Utilities\HockeyAppCrashManagerListener.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View file

@ -10,6 +10,7 @@ using Bit.Core.Abstractions;
using Bit.Core.Services; using Bit.Core.Services;
using Bit.Core.Utilities; using Bit.Core.Utilities;
using Bit.Droid.Services; using Bit.Droid.Services;
using Bit.Droid.Utilities;
using Plugin.CurrentActivity; using Plugin.CurrentActivity;
using Plugin.Fingerprint; using Plugin.Fingerprint;
using Plugin.Fingerprint.Abstractions; using Plugin.Fingerprint.Abstractions;
@ -64,6 +65,7 @@ namespace Bit.Droid
ZXing.Net.Mobile.Forms.Android.Platform.Init(); ZXing.Net.Mobile.Forms.Android.Platform.Init();
}); });
CrossFingerprint.SetCurrentActivityResolver(() => CrossCurrentActivity.Current.Activity); CrossFingerprint.SetCurrentActivityResolver(() => CrossCurrentActivity.Current.Activity);
CrossFingerprint.SetDialogFragmentType<CustomFingerprintDialogFragment>();
var preferencesStorage = new PreferencesStorageService(null); var preferencesStorage = new PreferencesStorageService(null);
var documentsPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal); var documentsPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);

View file

@ -6722,44 +6722,44 @@ namespace Bit.Droid
public partial class Color public partial class Color
{ {
// aapt resource value: 0x7f0b0082
public const int abc_background_cache_hint_selector_material_dark = 2131427458;
// aapt resource value: 0x7f0b0083 // aapt resource value: 0x7f0b0083
public const int abc_background_cache_hint_selector_material_light = 2131427459; public const int abc_background_cache_hint_selector_material_dark = 2131427459;
// aapt resource value: 0x7f0b0084 // aapt resource value: 0x7f0b0084
public const int abc_btn_colored_borderless_text_material = 2131427460; public const int abc_background_cache_hint_selector_material_light = 2131427460;
// aapt resource value: 0x7f0b0085 // aapt resource value: 0x7f0b0085
public const int abc_btn_colored_text_material = 2131427461; public const int abc_btn_colored_borderless_text_material = 2131427461;
// aapt resource value: 0x7f0b0086 // aapt resource value: 0x7f0b0086
public const int abc_color_highlight_material = 2131427462; public const int abc_btn_colored_text_material = 2131427462;
// aapt resource value: 0x7f0b0087 // aapt resource value: 0x7f0b0087
public const int abc_hint_foreground_material_dark = 2131427463; public const int abc_color_highlight_material = 2131427463;
// aapt resource value: 0x7f0b0088 // aapt resource value: 0x7f0b0088
public const int abc_hint_foreground_material_light = 2131427464; public const int abc_hint_foreground_material_dark = 2131427464;
// aapt resource value: 0x7f0b0089
public const int abc_hint_foreground_material_light = 2131427465;
// aapt resource value: 0x7f0b000c // aapt resource value: 0x7f0b000c
public const int abc_input_method_navigation_guard = 2131427340; public const int abc_input_method_navigation_guard = 2131427340;
// aapt resource value: 0x7f0b0089
public const int abc_primary_text_disable_only_material_dark = 2131427465;
// aapt resource value: 0x7f0b008a // aapt resource value: 0x7f0b008a
public const int abc_primary_text_disable_only_material_light = 2131427466; public const int abc_primary_text_disable_only_material_dark = 2131427466;
// aapt resource value: 0x7f0b008b // aapt resource value: 0x7f0b008b
public const int abc_primary_text_material_dark = 2131427467; public const int abc_primary_text_disable_only_material_light = 2131427467;
// aapt resource value: 0x7f0b008c // aapt resource value: 0x7f0b008c
public const int abc_primary_text_material_light = 2131427468; public const int abc_primary_text_material_dark = 2131427468;
// aapt resource value: 0x7f0b008d // aapt resource value: 0x7f0b008d
public const int abc_search_url_text = 2131427469; public const int abc_primary_text_material_light = 2131427469;
// aapt resource value: 0x7f0b008e
public const int abc_search_url_text = 2131427470;
// aapt resource value: 0x7f0b000d // aapt resource value: 0x7f0b000d
public const int abc_search_url_text_normal = 2131427341; public const int abc_search_url_text_normal = 2131427341;
@ -6770,29 +6770,29 @@ namespace Bit.Droid
// aapt resource value: 0x7f0b000f // aapt resource value: 0x7f0b000f
public const int abc_search_url_text_selected = 2131427343; public const int abc_search_url_text_selected = 2131427343;
// aapt resource value: 0x7f0b008e
public const int abc_secondary_text_material_dark = 2131427470;
// aapt resource value: 0x7f0b008f // aapt resource value: 0x7f0b008f
public const int abc_secondary_text_material_light = 2131427471; public const int abc_secondary_text_material_dark = 2131427471;
// aapt resource value: 0x7f0b0090 // aapt resource value: 0x7f0b0090
public const int abc_tint_btn_checkable = 2131427472; public const int abc_secondary_text_material_light = 2131427472;
// aapt resource value: 0x7f0b0091 // aapt resource value: 0x7f0b0091
public const int abc_tint_default = 2131427473; public const int abc_tint_btn_checkable = 2131427473;
// aapt resource value: 0x7f0b0092 // aapt resource value: 0x7f0b0092
public const int abc_tint_edittext = 2131427474; public const int abc_tint_default = 2131427474;
// aapt resource value: 0x7f0b0093 // aapt resource value: 0x7f0b0093
public const int abc_tint_seek_thumb = 2131427475; public const int abc_tint_edittext = 2131427475;
// aapt resource value: 0x7f0b0094 // aapt resource value: 0x7f0b0094
public const int abc_tint_spinner = 2131427476; public const int abc_tint_seek_thumb = 2131427476;
// aapt resource value: 0x7f0b0095 // aapt resource value: 0x7f0b0095
public const int abc_tint_switch_track = 2131427477; public const int abc_tint_spinner = 2131427477;
// aapt resource value: 0x7f0b0096
public const int abc_tint_switch_track = 2131427478;
// aapt resource value: 0x7f0b0072 // aapt resource value: 0x7f0b0072
public const int accent = 2131427442; public const int accent = 2131427442;
@ -6815,8 +6815,11 @@ namespace Bit.Droid
// aapt resource value: 0x7f0b0015 // aapt resource value: 0x7f0b0015
public const int background_material_light = 2131427349; public const int background_material_light = 2131427349;
// aapt resource value: 0x7f0b007d // aapt resource value: 0x7f0b007e
public const int black = 2131427453; public const int black = 2131427454;
// aapt resource value: 0x7f0b007b
public const int black_border = 2131427451;
// aapt resource value: 0x7f0b0073 // aapt resource value: 0x7f0b0073
public const int border = 2131427443; public const int border = 2131427443;
@ -6878,8 +6881,8 @@ namespace Bit.Droid
// aapt resource value: 0x7f0b006e // aapt resource value: 0x7f0b006e
public const int colorPrimaryDark = 2131427438; public const int colorPrimaryDark = 2131427438;
// aapt resource value: 0x7f0b0096 // aapt resource value: 0x7f0b0097
public const int common_google_signin_btn_text_dark = 2131427478; public const int common_google_signin_btn_text_dark = 2131427479;
// aapt resource value: 0x7f0b0000 // aapt resource value: 0x7f0b0000
public const int common_google_signin_btn_text_dark_default = 2131427328; public const int common_google_signin_btn_text_dark_default = 2131427328;
@ -6893,8 +6896,8 @@ namespace Bit.Droid
// aapt resource value: 0x7f0b0003 // aapt resource value: 0x7f0b0003
public const int common_google_signin_btn_text_dark_pressed = 2131427331; public const int common_google_signin_btn_text_dark_pressed = 2131427331;
// aapt resource value: 0x7f0b0097 // aapt resource value: 0x7f0b0098
public const int common_google_signin_btn_text_light = 2131427479; public const int common_google_signin_btn_text_light = 2131427480;
// aapt resource value: 0x7f0b0004 // aapt resource value: 0x7f0b0004
public const int common_google_signin_btn_text_light_default = 2131427332; public const int common_google_signin_btn_text_light_default = 2131427332;
@ -6908,8 +6911,8 @@ namespace Bit.Droid
// aapt resource value: 0x7f0b0007 // aapt resource value: 0x7f0b0007
public const int common_google_signin_btn_text_light_pressed = 2131427335; public const int common_google_signin_btn_text_light_pressed = 2131427335;
// aapt resource value: 0x7f0b0098 // aapt resource value: 0x7f0b0099
public const int common_google_signin_btn_tint = 2131427480; public const int common_google_signin_btn_tint = 2131427481;
// aapt resource value: 0x7f0b0079 // aapt resource value: 0x7f0b0079
public const int dark_accent = 2131427449; public const int dark_accent = 2131427449;
@ -6935,8 +6938,8 @@ namespace Bit.Droid
// aapt resource value: 0x7f0b0071 // aapt resource value: 0x7f0b0071
public const int darkaccent = 2131427441; public const int darkaccent = 2131427441;
// aapt resource value: 0x7f0b007e // aapt resource value: 0x7f0b007f
public const int darkgray = 2131427454; public const int darkgray = 2131427455;
// aapt resource value: 0x7f0b0049 // aapt resource value: 0x7f0b0049
public const int design_bottom_navigation_shadow_color = 2131427401; public const int design_bottom_navigation_shadow_color = 2131427401;
@ -6947,8 +6950,8 @@ namespace Bit.Droid
// aapt resource value: 0x7f0b004b // aapt resource value: 0x7f0b004b
public const int design_default_color_primary_dark = 2131427403; public const int design_default_color_primary_dark = 2131427403;
// aapt resource value: 0x7f0b0099 // aapt resource value: 0x7f0b009a
public const int design_error = 2131427481; public const int design_error = 2131427482;
// aapt resource value: 0x7f0b004c // aapt resource value: 0x7f0b004c
public const int design_fab_shadow_end_color = 2131427404; public const int design_fab_shadow_end_color = 2131427404;
@ -6974,8 +6977,8 @@ namespace Bit.Droid
// aapt resource value: 0x7f0b0053 // aapt resource value: 0x7f0b0053
public const int design_snackbar_background_color = 2131427411; public const int design_snackbar_background_color = 2131427411;
// aapt resource value: 0x7f0b009a // aapt resource value: 0x7f0b009b
public const int design_tint_password_toggle = 2131427482; public const int design_tint_password_toggle = 2131427483;
// aapt resource value: 0x7f0b001e // aapt resource value: 0x7f0b001e
public const int dim_foreground_disabled_material_dark = 2131427358; public const int dim_foreground_disabled_material_dark = 2131427358;
@ -7004,8 +7007,8 @@ namespace Bit.Droid
// aapt resource value: 0x7f0b0025 // aapt resource value: 0x7f0b0025
public const int foreground_material_light = 2131427365; public const int foreground_material_light = 2131427365;
// aapt resource value: 0x7f0b007f // aapt resource value: 0x7f0b0080
public const int gray = 2131427455; public const int gray = 2131427456;
// aapt resource value: 0x7f0b0026 // aapt resource value: 0x7f0b0026
public const int highlighted_text_material_dark = 2131427366; public const int highlighted_text_material_dark = 2131427366;
@ -7043,14 +7046,14 @@ namespace Bit.Droid
// aapt resource value: 0x7f0b006c // aapt resource value: 0x7f0b006c
public const int hockeyapp_text_white = 2131427436; public const int hockeyapp_text_white = 2131427436;
// aapt resource value: 0x7f0b0082
public const int ic_launcher_background = 2131427458;
// aapt resource value: 0x7f0b007c
public const int launcher_background = 2131427452;
// aapt resource value: 0x7f0b0081 // aapt resource value: 0x7f0b0081
public const int ic_launcher_background = 2131427457; public const int lightgray = 2131427457;
// aapt resource value: 0x7f0b007b
public const int launcher_background = 2131427451;
// aapt resource value: 0x7f0b0080
public const int lightgray = 2131427456;
// aapt resource value: 0x7f0b0028 // aapt resource value: 0x7f0b0028
public const int material_blue_grey_800 = 2131427368; public const int material_blue_grey_800 = 2131427368;
@ -7088,71 +7091,71 @@ namespace Bit.Droid
// aapt resource value: 0x7f0b0033 // aapt resource value: 0x7f0b0033
public const int material_grey_900 = 2131427379; public const int material_grey_900 = 2131427379;
// aapt resource value: 0x7f0b009b
public const int mtrl_bottom_nav_colored_item_tint = 2131427483;
// aapt resource value: 0x7f0b009c // aapt resource value: 0x7f0b009c
public const int mtrl_bottom_nav_item_tint = 2131427484; public const int mtrl_bottom_nav_colored_item_tint = 2131427484;
// aapt resource value: 0x7f0b009d
public const int mtrl_bottom_nav_item_tint = 2131427485;
// aapt resource value: 0x7f0b0054 // aapt resource value: 0x7f0b0054
public const int mtrl_btn_bg_color_disabled = 2131427412; public const int mtrl_btn_bg_color_disabled = 2131427412;
// aapt resource value: 0x7f0b009d
public const int mtrl_btn_bg_color_selector = 2131427485;
// aapt resource value: 0x7f0b009e // aapt resource value: 0x7f0b009e
public const int mtrl_btn_ripple_color = 2131427486; public const int mtrl_btn_bg_color_selector = 2131427486;
// aapt resource value: 0x7f0b009f // aapt resource value: 0x7f0b009f
public const int mtrl_btn_stroke_color_selector = 2131427487; public const int mtrl_btn_ripple_color = 2131427487;
// aapt resource value: 0x7f0b00a0 // aapt resource value: 0x7f0b00a0
public const int mtrl_btn_text_btn_ripple_color = 2131427488; public const int mtrl_btn_stroke_color_selector = 2131427488;
// aapt resource value: 0x7f0b00a1
public const int mtrl_btn_text_btn_ripple_color = 2131427489;
// aapt resource value: 0x7f0b0055 // aapt resource value: 0x7f0b0055
public const int mtrl_btn_text_color_disabled = 2131427413; public const int mtrl_btn_text_color_disabled = 2131427413;
// aapt resource value: 0x7f0b00a1 // aapt resource value: 0x7f0b00a2
public const int mtrl_btn_text_color_selector = 2131427489; public const int mtrl_btn_text_color_selector = 2131427490;
// aapt resource value: 0x7f0b0056 // aapt resource value: 0x7f0b0056
public const int mtrl_btn_transparent_bg_color = 2131427414; public const int mtrl_btn_transparent_bg_color = 2131427414;
// aapt resource value: 0x7f0b00a2
public const int mtrl_chip_background_color = 2131427490;
// aapt resource value: 0x7f0b00a3 // aapt resource value: 0x7f0b00a3
public const int mtrl_chip_close_icon_tint = 2131427491; public const int mtrl_chip_background_color = 2131427491;
// aapt resource value: 0x7f0b00a4 // aapt resource value: 0x7f0b00a4
public const int mtrl_chip_ripple_color = 2131427492; public const int mtrl_chip_close_icon_tint = 2131427492;
// aapt resource value: 0x7f0b00a5 // aapt resource value: 0x7f0b00a5
public const int mtrl_chip_text_color = 2131427493; public const int mtrl_chip_ripple_color = 2131427493;
// aapt resource value: 0x7f0b00a6 // aapt resource value: 0x7f0b00a6
public const int mtrl_fab_ripple_color = 2131427494; public const int mtrl_chip_text_color = 2131427494;
// aapt resource value: 0x7f0b00a7
public const int mtrl_fab_ripple_color = 2131427495;
// aapt resource value: 0x7f0b0057 // aapt resource value: 0x7f0b0057
public const int mtrl_scrim_color = 2131427415; public const int mtrl_scrim_color = 2131427415;
// aapt resource value: 0x7f0b00a7
public const int mtrl_tabs_colored_ripple_color = 2131427495;
// aapt resource value: 0x7f0b00a8 // aapt resource value: 0x7f0b00a8
public const int mtrl_tabs_icon_color_selector = 2131427496; public const int mtrl_tabs_colored_ripple_color = 2131427496;
// aapt resource value: 0x7f0b00a9 // aapt resource value: 0x7f0b00a9
public const int mtrl_tabs_icon_color_selector_colored = 2131427497; public const int mtrl_tabs_icon_color_selector = 2131427497;
// aapt resource value: 0x7f0b00aa // aapt resource value: 0x7f0b00aa
public const int mtrl_tabs_legacy_text_color_selector = 2131427498; public const int mtrl_tabs_icon_color_selector_colored = 2131427498;
// aapt resource value: 0x7f0b00ab // aapt resource value: 0x7f0b00ab
public const int mtrl_tabs_ripple_color = 2131427499; public const int mtrl_tabs_legacy_text_color_selector = 2131427499;
// aapt resource value: 0x7f0b00ac // aapt resource value: 0x7f0b00ac
public const int mtrl_text_btn_text_color_selector = 2131427500; public const int mtrl_tabs_ripple_color = 2131427500;
// aapt resource value: 0x7f0b00ad
public const int mtrl_text_btn_text_color_selector = 2131427501;
// aapt resource value: 0x7f0b0058 // aapt resource value: 0x7f0b0058
public const int mtrl_textinput_default_box_stroke_color = 2131427416; public const int mtrl_textinput_default_box_stroke_color = 2131427416;
@ -7226,11 +7229,11 @@ namespace Bit.Droid
// aapt resource value: 0x7f0b0043 // aapt resource value: 0x7f0b0043
public const int switch_thumb_disabled_material_light = 2131427395; public const int switch_thumb_disabled_material_light = 2131427395;
// aapt resource value: 0x7f0b00ad
public const int switch_thumb_material_dark = 2131427501;
// aapt resource value: 0x7f0b00ae // aapt resource value: 0x7f0b00ae
public const int switch_thumb_material_light = 2131427502; public const int switch_thumb_material_dark = 2131427502;
// aapt resource value: 0x7f0b00af
public const int switch_thumb_material_light = 2131427503;
// aapt resource value: 0x7f0b0044 // aapt resource value: 0x7f0b0044
public const int switch_thumb_normal_material_dark = 2131427396; public const int switch_thumb_normal_material_dark = 2131427396;
@ -7244,8 +7247,8 @@ namespace Bit.Droid
// aapt resource value: 0x7f0b0047 // aapt resource value: 0x7f0b0047
public const int tooltip_background_light = 2131427399; public const int tooltip_background_light = 2131427399;
// aapt resource value: 0x7f0b007c // aapt resource value: 0x7f0b007d
public const int white = 2131427452; public const int white = 2131427453;
static Color() static Color()
{ {

View file

@ -15,6 +15,8 @@
<color name="dark_darkaccent">#222d32</color> <color name="dark_darkaccent">#222d32</color>
<color name="dark_accent">#449BCE</color> <color name="dark_accent">#449BCE</color>
<color name="dark_border">#191919</color> <color name="dark_border">#191919</color>
<color name="black_border">#282828</color>
<color name="launcher_background">#FFFFFF</color> <color name="launcher_background">#FFFFFF</color>
<color name="white">#FFFFFF</color> <color name="white">#FFFFFF</color>

View file

@ -34,8 +34,6 @@
<style name="DarkTheme.Base" parent="Theme.AppCompat"> <style name="DarkTheme.Base" parent="Theme.AppCompat">
<item name="windowNoTitle">true</item> <item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item> <item name="windowActionBar">false</item>
<!--<item name="colorPrimary">@color/dark_primary</item>
<item name="colorPrimaryDark">@color/dark_accent</item>-->
<item name="colorAccent">@color/dark_primary</item> <item name="colorAccent">@color/dark_primary</item>
<item name="colorControlNormal">@color/dark_border</item> <item name="colorControlNormal">@color/dark_border</item>
<item name="windowActionModeOverlay">true</item> <item name="windowActionModeOverlay">true</item>
@ -51,6 +49,7 @@
<style name="BlackTheme.Base" parent="DarkTheme.Base"> <style name="BlackTheme.Base" parent="DarkTheme.Base">
<item name="android:windowBackground">@android:color/black</item> <item name="android:windowBackground">@android:color/black</item>
<item name="colorPrimary">@android:color/black</item> <item name="colorPrimary">@android:color/black</item>
<item name="colorControlNormal">@color/black_border</item>
</style> </style>
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog"> <style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">

View file

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Plugin.Fingerprint.Dialog;
using Xamarin.Forms.Platform.Android;
namespace Bit.Droid.Utilities
{
public class CustomFingerprintDialogFragment : FingerprintDialogFragment
{
public CustomFingerprintDialogFragment()
: base()
{
DefaultColor = ((Xamarin.Forms.Color)Xamarin.Forms.Application.Current.Resources["MutedColor"])
.ToAndroid();
NegativeColor = ((Xamarin.Forms.Color)Xamarin.Forms.Application.Current.Resources["DangerColor"])
.ToAndroid();
PositiveColor = ((Xamarin.Forms.Color)Xamarin.Forms.Application.Current.Resources["SuccessColor"])
.ToAndroid();
}
}
}

View file

@ -28,7 +28,7 @@
</ResourceDictionary> </ResourceDictionary>
</ContentPage.Resources> </ContentPage.Resources>
<ScrollView> <ScrollView Padding="0, 0, 0, 20">
<StackLayout Spacing="20"> <StackLayout Spacing="20">
<StackLayout StyleClass="box"> <StackLayout StyleClass="box">
<controls:MonoLabel <controls:MonoLabel

View file

@ -12,7 +12,7 @@
<pages:OptionsPageViewModel /> <pages:OptionsPageViewModel />
</ContentPage.BindingContext> </ContentPage.BindingContext>
<ScrollView> <ScrollView Padding="0, 0, 0, 20">
<StackLayout Padding="0" Spacing="20"> <StackLayout Padding="0" Spacing="20">
<StackLayout StyleClass="box"> <StackLayout StyleClass="box">
<StackLayout StyleClass="box-row, box-row-input"> <StackLayout StyleClass="box-row, box-row-input">
@ -73,7 +73,7 @@
</StackLayout> </StackLayout>
<Label <Label
Text="{u:I18n DisableAutoTotpCopyDescription}" Text="{u:I18n DisableAutoTotpCopyDescription}"
StyleClass="box-footer-label" /> StyleClass="box-footer-label, box-footer-label-switch" />
</StackLayout> </StackLayout>
<StackLayout StyleClass="box"> <StackLayout StyleClass="box">
<StackLayout StyleClass="box-row, box-row-switch"> <StackLayout StyleClass="box-row, box-row-switch">
@ -88,7 +88,7 @@
</StackLayout> </StackLayout>
<Label <Label
Text="{u:I18n DisableWebsiteIconsDescription}" Text="{u:I18n DisableWebsiteIconsDescription}"
StyleClass="box-footer-label" /> StyleClass="box-footer-label, box-footer-label-switch" />
</StackLayout> </StackLayout>
<StackLayout StyleClass="box" IsVisible="{Binding AndroidOptions}"> <StackLayout StyleClass="box" IsVisible="{Binding AndroidOptions}">
<StackLayout StyleClass="box-row-header"> <StackLayout StyleClass="box-row-header">
@ -107,7 +107,7 @@
</StackLayout> </StackLayout>
<Label <Label
Text="{u:I18n DisableSavePromptDescription}" Text="{u:I18n DisableSavePromptDescription}"
StyleClass="box-footer-label" /> StyleClass="box-footer-label, box-footer-label-switch" />
</StackLayout> </StackLayout>
<StackLayout StyleClass="box" IsVisible="{Binding AndroidOptions}"> <StackLayout StyleClass="box" IsVisible="{Binding AndroidOptions}">
<StackLayout StyleClass="box-row, box-row-input"> <StackLayout StyleClass="box-row, box-row-input">
@ -145,7 +145,7 @@
</StackLayout> </StackLayout>
<Label <Label
Text="{u:I18n AutofillAlwaysDescription}" Text="{u:I18n AutofillAlwaysDescription}"
StyleClass="box-footer-label" /> StyleClass="box-footer-label, box-footer-label-switch" />
</StackLayout> </StackLayout>
<StackLayout StyleClass="box" IsVisible="{Binding AndroidOptions}"> <StackLayout StyleClass="box" IsVisible="{Binding AndroidOptions}">
<StackLayout StyleClass="box-row, box-row-switch"> <StackLayout StyleClass="box-row, box-row-switch">
@ -160,7 +160,7 @@
</StackLayout> </StackLayout>
<Label <Label
Text="{u:I18n AutofillPersistNotificationDescription}" Text="{u:I18n AutofillPersistNotificationDescription}"
StyleClass="box-footer-label" /> StyleClass="box-footer-label, box-footer-label-switch" />
</StackLayout> </StackLayout>
<StackLayout StyleClass="box" IsVisible="{Binding AndroidOptions}"> <StackLayout StyleClass="box" IsVisible="{Binding AndroidOptions}">
<StackLayout StyleClass="box-row, box-row-switch"> <StackLayout StyleClass="box-row, box-row-switch">
@ -175,7 +175,7 @@
</StackLayout> </StackLayout>
<Label <Label
Text="{u:I18n AutofillPasswordFieldDescription}" Text="{u:I18n AutofillPasswordFieldDescription}"
StyleClass="box-footer-label" /> StyleClass="box-footer-label, box-footer-label-switch" />
</StackLayout> </StackLayout>
</StackLayout> </StackLayout>
</ScrollView> </ScrollView>

View file

@ -45,7 +45,7 @@
</ResourceDictionary> </ResourceDictionary>
</ContentPage.Resources> </ContentPage.Resources>
<ScrollView x:Name="_scrollView"> <ScrollView x:Name="_scrollView" Padding="0, 0, 0, 20">
<StackLayout Spacing="20"> <StackLayout Spacing="20">
<StackLayout StyleClass="box"> <StackLayout StyleClass="box">
<StackLayout StyleClass="box-row-header"> <StackLayout StyleClass="box-row-header">

View file

@ -363,4 +363,9 @@
<Setter Property="TextColor" <Setter Property="TextColor"
Value="{StaticResource MutedColor}" /> Value="{StaticResource MutedColor}" />
</Style> </Style>
<Style TargetType="Label"
Class="box-footer-label-switch">
<Setter Property="Margin"
Value="0, -10, 0, 0" />
</Style>
</ResourceDictionary> </ResourceDictionary>

View file

@ -13,10 +13,10 @@
<Color x:Key="PasswordSpecialColor">#ff7c70</Color> <Color x:Key="PasswordSpecialColor">#ff7c70</Color>
<Color x:Key="ButtonColor">#e0e0e0</Color> <Color x:Key="ButtonColor">#e0e0e0</Color>
<Color x:Key="BorderColor">#191919</Color> <Color x:Key="BorderColor">#282828</Color>
<Color x:Key="DisabledIconColor">#c7c7cd</Color> <Color x:Key="DisabledIconColor">#c7c7cd</Color>
<Color x:Key="BoxBorderColor">#191919</Color> <Color x:Key="BoxBorderColor">#282828</Color>
<Color x:Key="BoxHeaderTextColor">#52bdfb</Color> <Color x:Key="BoxHeaderTextColor">#52bdfb</Color>
<Color x:Key="TitleTextColor">#ffffff</Color> <Color x:Key="TitleTextColor">#ffffff</Color>