tweaks to accessibility changes

This commit is contained in:
Kyle Spearrin 2020-01-10 15:42:50 -05:00
parent 9f06c9a051
commit eb16025800
2 changed files with 10 additions and 8 deletions

View file

@ -56,7 +56,7 @@
<StackLayout IsVisible="{Binding Enabled, Converter={StaticResource inverseBool}}"
VerticalOptions="CenterAndExpand"
HorizontalOptions="Center"
Spacing="20">
Spacing="10">
<Image Source="accessibility_step1.png"
HorizontalOptions="Center"
WidthRequest="300"
@ -67,7 +67,7 @@
StyleClass="text-sm" />
<Image Source="accessibility_step2.png"
HorizontalOptions="Center"
Margin="0, 20, 0, 0"
Margin="0, 10, 0, 0"
WidthRequest="300"
HeightRequest="67" />
<Label Text="{u:I18n BitwardenAutofillServiceStep2}"
@ -78,7 +78,7 @@
<StackLayout IsVisible="{Binding EnabledWithoutPermission}"
VerticalOptions="CenterAndExpand"
HorizontalOptions="Center"
Spacing="20">
Spacing="10">
<Image Source="accessibility_permission.png"
HorizontalOptions="Center"
WidthRequest="300"
@ -91,7 +91,7 @@
<StackLayout IsVisible="{Binding EnabledAndPermitted}"
VerticalOptions="CenterAndExpand"
HorizontalOptions="Center"
Spacing="20">
Spacing="10">
<Image Source="accessibility_overlay.png"
HorizontalOptions="Center"
WidthRequest="300"
@ -101,6 +101,7 @@
LineBreakMode="WordWrap"
StyleClass="text-sm" />
</StackLayout>
<StackLayout Spacing="10">
<Button Text="{u:I18n BitwardenAutofillServiceOpenAccessibilitySettings}"
Clicked="Settings_Clicked"
HorizontalOptions="Fill"
@ -110,6 +111,7 @@
HorizontalOptions="Fill"
VerticalOptions="End"></Button>
</StackLayout>
</StackLayout>
</ScrollView>
</pages:BaseContentPage>

View file

@ -39,9 +39,9 @@ namespace Bit.App.Pages
});
}
public bool EnabledWithoutPermission => _enabled && !_permitted;
public bool EnabledWithoutPermission => Enabled && !Permitted;
public bool EnabledAndPermitted => _enabled && _permitted;
public bool EnabledAndPermitted => Enabled && Permitted;
public void OpenSettings()
{