PM-3350 Added new style to prevent spell check and text prediction

This commit is contained in:
Federico Maccaroni 2024-01-24 11:22:02 -03:00
parent 4472d7f9a8
commit cd33c7f608
No known key found for this signature in database
GPG key ID: 5D233F8F2B034536
3 changed files with 13 additions and 8 deletions

View file

@ -37,7 +37,7 @@
Text="{Binding BaseUrl}" Text="{Binding BaseUrl}"
Keyboard="Url" Keyboard="Url"
Placeholder="ex. https://bitwarden.company.com" Placeholder="ex. https://bitwarden.company.com"
StyleClass="box-value" StyleClass="box-value, no-keyboard-auto-help"
ReturnType="Go" ReturnType="Go"
ReturnCommand="{Binding SubmitCommand}" ReturnCommand="{Binding SubmitCommand}"
AutomationId="ServerUrlEntry"/> AutomationId="ServerUrlEntry"/>
@ -59,7 +59,7 @@
x:Name="_webVaultEntry" x:Name="_webVaultEntry"
Text="{Binding WebVaultUrl}" Text="{Binding WebVaultUrl}"
Keyboard="Url" Keyboard="Url"
StyleClass="box-value" StyleClass="box-value, no-keyboard-auto-help"
AutomationId="WebVaultUrlEntry"/> AutomationId="WebVaultUrlEntry"/>
</StackLayout> </StackLayout>
<StackLayout StyleClass="box-row"> <StackLayout StyleClass="box-row">
@ -70,7 +70,7 @@
x:Name="_apiEntry" x:Name="_apiEntry"
Text="{Binding ApiUrl}" Text="{Binding ApiUrl}"
Keyboard="Url" Keyboard="Url"
StyleClass="box-value" StyleClass="box-value, no-keyboard-auto-help"
AutomationId="ApiUrlEntry"/> AutomationId="ApiUrlEntry"/>
</StackLayout> </StackLayout>
<StackLayout StyleClass="box-row"> <StackLayout StyleClass="box-row">
@ -81,7 +81,7 @@
x:Name="_identityEntry" x:Name="_identityEntry"
Text="{Binding IdentityUrl}" Text="{Binding IdentityUrl}"
Keyboard="Url" Keyboard="Url"
StyleClass="box-value" StyleClass="box-value, no-keyboard-auto-help"
AutomationId="IdentityUrlEntry"/> AutomationId="IdentityUrlEntry"/>
</StackLayout> </StackLayout>
<StackLayout StyleClass="box-row"> <StackLayout StyleClass="box-row">
@ -92,7 +92,7 @@
x:Name="_iconsEntry" x:Name="_iconsEntry"
Text="{Binding IconsUrl}" Text="{Binding IconsUrl}"
Keyboard="Url" Keyboard="Url"
StyleClass="box-value" StyleClass="box-value, no-keyboard-auto-help"
ReturnType="Go" ReturnType="Go"
ReturnCommand="{Binding SubmitCommand}" ReturnCommand="{Binding SubmitCommand}"
AutomationId="IconsUrlEntry"/> AutomationId="IconsUrlEntry"/>

View file

@ -50,11 +50,10 @@
x:Name="_email" x:Name="_email"
Text="{Binding Email}" Text="{Binding Email}"
Keyboard="Email" Keyboard="Email"
StyleClass="box-value" StyleClass="box-value, no-keyboard-auto-help"
ReturnType="Go" ReturnType="Go"
ReturnCommand="{Binding ContinueCommand}" ReturnCommand="{Binding ContinueCommand}"
AutomationId="EmailAddressEntry" AutomationId="EmailAddressEntry">
>
<VisualStateManager.VisualStateGroups> <VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates"> <VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Disabled"> <VisualState x:Name="Disabled">

View file

@ -557,6 +557,12 @@
</Keyboard> </Keyboard>
</Setter> </Setter>
</Style> </Style>
<Style TargetType="InputView"
Class="no-keyboard-auto-help"
ApplyToDerivedTypes="True">
<Setter Property="IsSpellCheckEnabled" Value="False" />
<Setter Property="IsTextPredictionEnabled" Value="False" />
</Style>
<Style TargetType="controls:CircularProgressbarView"> <Style TargetType="controls:CircularProgressbarView">
<Setter Property="ProgressColor" <Setter Property="ProgressColor"