Bitwarden-app-android-iphon.../src/App/Pages/Settings/OptionsPage.xaml

188 lines
8.9 KiB
Plaintext
Raw Normal View History

2019-05-29 15:08:47 +02:00
<?xml version="1.0" encoding="utf-8" ?>
<pages:BaseContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Bit.App.Pages.OptionsPage"
xmlns:pages="clr-namespace:Bit.App.Pages"
xmlns:u="clr-namespace:Bit.App.Utilities"
x:DataType="pages:OptionsPageViewModel"
Title="{Binding PageTitle}">
2019-05-29 15:36:57 +02:00
2019-05-29 15:08:47 +02:00
<ContentPage.BindingContext>
<pages:OptionsPageViewModel />
</ContentPage.BindingContext>
2019-06-12 03:31:51 +02:00
<ContentPage.ToolbarItems>
<ToolbarItem Text="{u:I18n Close}" Clicked="Close_Clicked" Order="Primary" Priority="-1" />
</ContentPage.ToolbarItems>
2019-06-04 04:19:51 +02:00
<ScrollView Padding="0, 0, 0, 20">
2019-05-29 20:11:15 +02:00
<StackLayout Padding="0" Spacing="20">
2019-05-30 18:37:35 +02:00
<StackLayout StyleClass="box">
<StackLayout StyleClass="box-row, box-row-input">
<Label
Text="{u:I18n Theme}"
StyleClass="box-label" />
<Picker
x:Name="_themePicker"
ItemsSource="{Binding ThemeOptions, Mode=OneTime}"
SelectedIndex="{Binding ThemeSelectedIndex}"
StyleClass="box-value" />
</StackLayout>
<Label
StyleClass="box-footer-label"
Text="{u:I18n ThemeDescription}"
x:Name="_themeDescriptionLabel" />
</StackLayout>
2019-05-29 20:11:15 +02:00
<StackLayout StyleClass="box">
<StackLayout StyleClass="box-row, box-row-input">
<Label
Text="{u:I18n DefaultUriMatchDetection}"
StyleClass="box-label" />
<Picker
x:Name="_uriMatchPicker"
ItemsSource="{Binding UriMatchOptions, Mode=OneTime}"
SelectedIndex="{Binding UriMatchSelectedIndex}"
StyleClass="box-value" />
</StackLayout>
2019-05-29 15:36:57 +02:00
<Label
2019-05-29 20:11:15 +02:00
Text="{u:I18n DefaultUriMatchDetectionDescription}"
StyleClass="box-footer-label" />
2019-05-29 15:36:57 +02:00
</StackLayout>
2019-05-29 20:11:15 +02:00
<StackLayout StyleClass="box">
<StackLayout StyleClass="box-row, box-row-input">
<Label
Text="{u:I18n ClearClipboard}"
StyleClass="box-label" />
<Picker
x:Name="_clearClipboardPicker"
ItemsSource="{Binding ClearClipboardOptions, Mode=OneTime}"
SelectedIndex="{Binding ClearClipboardSelectedIndex}"
StyleClass="box-value" />
</StackLayout>
<Label
Text="{u:I18n ClearClipboardDescription}"
StyleClass="box-footer-label" />
</StackLayout>
<StackLayout StyleClass="box">
<StackLayout StyleClass="box-row, box-row-switch">
<Label
Text="{u:I18n DisableAutoTotpCopy}"
StyleClass="box-label, box-label-regular"
HorizontalOptions="StartAndExpand" />
<Switch
IsToggled="{Binding DisableAutoTotpCopy}"
StyleClass="box-value"
HorizontalOptions="End" />
</StackLayout>
<Label
Text="{u:I18n DisableAutoTotpCopyDescription}"
2019-06-04 04:19:51 +02:00
StyleClass="box-footer-label, box-footer-label-switch" />
2019-05-29 20:11:15 +02:00
</StackLayout>
<StackLayout StyleClass="box">
<StackLayout StyleClass="box-row, box-row-switch">
<Label
Text="{u:I18n DisableWebsiteIcons}"
StyleClass="box-label, box-label-regular"
HorizontalOptions="StartAndExpand" />
<Switch
IsToggled="{Binding DisableFavicon}"
StyleClass="box-value"
HorizontalOptions="End" />
</StackLayout>
<Label
Text="{u:I18n DisableWebsiteIconsDescription}"
2019-06-04 04:19:51 +02:00
StyleClass="box-footer-label, box-footer-label-switch" />
2019-05-29 20:11:15 +02:00
</StackLayout>
<StackLayout StyleClass="box" IsVisible="{Binding ShowAndroidAutofillSettings}">
2019-06-03 16:57:08 +02:00
<StackLayout StyleClass="box-row-header">
<Label Text="{u:I18n AutofillService}"
StyleClass="box-header, box-header-platform" />
</StackLayout>
<StackLayout StyleClass="box-row, box-row-switch">
2019-06-03 16:45:27 +02:00
<Label
2019-06-03 16:57:08 +02:00
Text="{u:I18n DisableSavePrompt}"
StyleClass="box-label, box-label-regular"
HorizontalOptions="StartAndExpand" />
<Switch
IsToggled="{Binding AutofillDisableSavePrompt}"
StyleClass="box-value"
HorizontalOptions="End" />
2019-05-30 18:37:35 +02:00
</StackLayout>
2019-06-03 16:57:08 +02:00
<Label
Text="{u:I18n DisableSavePromptDescription}"
2019-06-04 04:19:51 +02:00
StyleClass="box-footer-label, box-footer-label-switch" />
2019-06-03 16:57:08 +02:00
</StackLayout>
<StackLayout StyleClass="box" IsVisible="{Binding ShowAndroidAutofillSettings}">
2019-06-03 16:57:08 +02:00
<StackLayout StyleClass="box-row, box-row-input">
2019-05-29 20:11:15 +02:00
<Label
2019-06-03 16:57:08 +02:00
Text="{u:I18n BlacklistedUris}"
StyleClass="box-label" />
<Editor
x:Name="_blacklistedUrisEditor"
Text="{Binding AutofillBlacklistedUris}"
StyleClass="box-value"
AutoSize="TextChanges"
IsSpellCheckEnabled="False"
IsTextPredictionEnabled="False"
Keyboard="Url"
Unfocused="BlacklistedUrisEditor_Unfocused" />
</StackLayout>
<Label
Text="{u:I18n BlacklistedUrisDescription}"
StyleClass="box-footer-label" />
</StackLayout>
<StackLayout StyleClass="box" IsVisible="{Binding ShowAndroidAccessibilitySettings}">
2019-06-03 16:57:08 +02:00
<StackLayout StyleClass="box-row-header">
<Label Text="{u:I18n AutofillAccessibilityService}"
StyleClass="box-header, box-header-platform" />
2019-05-29 20:11:15 +02:00
</StackLayout>
2019-06-03 16:57:08 +02:00
<StackLayout StyleClass="box-row, box-row-switch">
2019-05-30 18:37:35 +02:00
<Label
2019-06-03 16:57:08 +02:00
Text="{u:I18n AutofillAlways}"
StyleClass="box-label, box-label-regular"
HorizontalOptions="StartAndExpand" />
<Switch
IsToggled="{Binding AutofillAlwaysScan}"
StyleClass="box-value"
HorizontalOptions="End" />
2019-05-30 18:37:35 +02:00
</StackLayout>
2019-06-03 16:57:08 +02:00
<Label
Text="{u:I18n AutofillAlwaysDescription}"
2019-06-04 04:19:51 +02:00
StyleClass="box-footer-label, box-footer-label-switch" />
2019-06-03 16:57:08 +02:00
</StackLayout>
<StackLayout StyleClass="box" IsVisible="{Binding ShowAndroidAccessibilitySettings}">
2019-06-03 16:57:08 +02:00
<StackLayout StyleClass="box-row, box-row-switch">
2019-05-30 18:37:35 +02:00
<Label
2019-06-03 16:57:08 +02:00
Text="{u:I18n AutofillPersistNotification}"
StyleClass="box-label, box-label-regular"
HorizontalOptions="StartAndExpand" />
<Switch
IsToggled="{Binding AutofillPersistNotification}"
StyleClass="box-value"
HorizontalOptions="End" />
2019-06-03 16:45:27 +02:00
</StackLayout>
2019-06-03 16:57:08 +02:00
<Label
Text="{u:I18n AutofillPersistNotificationDescription}"
2019-06-04 04:19:51 +02:00
StyleClass="box-footer-label, box-footer-label-switch" />
2019-06-03 16:57:08 +02:00
</StackLayout>
<StackLayout StyleClass="box" IsVisible="{Binding ShowAndroidAccessibilitySettings}">
2019-06-03 16:57:08 +02:00
<StackLayout StyleClass="box-row, box-row-switch">
2019-06-03 16:45:27 +02:00
<Label
2019-06-03 16:57:08 +02:00
Text="{u:I18n AutofillPasswordField}"
StyleClass="box-label, box-label-regular"
HorizontalOptions="StartAndExpand" />
<Switch
IsToggled="{Binding AutofillPasswordField}"
StyleClass="box-value"
HorizontalOptions="End" />
2019-05-30 18:37:35 +02:00
</StackLayout>
2019-06-03 16:57:08 +02:00
<Label
Text="{u:I18n AutofillPasswordFieldDescription}"
2019-06-04 04:19:51 +02:00
StyleClass="box-footer-label, box-footer-label-switch" />
2019-05-29 15:36:57 +02:00
</StackLayout>
</StackLayout>
2019-05-29 20:11:15 +02:00
</ScrollView>
2019-05-29 15:08:47 +02:00
</pages:BaseContentPage>