1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-22 11:35:21 +01:00

added about send option and resources (#1301)

This commit is contained in:
Matt Portune 2021-03-05 18:57:57 -05:00 committed by GitHub
parent 2b81bd2c8a
commit 142d056393
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 47 additions and 0 deletions

View File

@ -173,6 +173,7 @@
<AndroidResource Include="Resources\drawable\icon.xml" />
<AndroidResource Include="Resources\drawable\ic_launcher_foreground.xml" />
<AndroidResource Include="Resources\drawable\id.xml" />
<AndroidResource Include="Resources\drawable\info.xml" />
<AndroidResource Include="Resources\drawable\lock.xml" />
<AndroidResource Include="Resources\drawable\login.xml" />
<AndroidResource Include="Resources\drawable\logo.xml" />

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FF000000"
android:pathData="M11,7h2v2h-2zM11,11h2v6h-2zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8z"/>
</vector>

View File

@ -24,10 +24,16 @@
<ResourceDictionary>
<u:InverseBoolConverter x:Key="inverseBool" />
<ToolbarItem x:Name="_aboutIconItem" x:Key="aboutIconItem" Icon="info.png"
Clicked="About_Clicked" Order="Primary" Priority="-1"
AutomationProperties.IsInAccessibleTree="True"
AutomationProperties.Name="{u:I18n AboutSend}" />
<ToolbarItem x:Name="_syncItem" x:Key="syncItem" Text="{u:I18n Sync}"
Clicked="Sync_Clicked" Order="Secondary" />
<ToolbarItem x:Name="_lockItem" x:Key="lockItem" Text="{u:I18n Lock}"
Clicked="Lock_Clicked" Order="Secondary" />
<ToolbarItem x:Name="_aboutTextItem" x:Key="aboutTextItem" Text="{u:I18n AboutSend}"
Clicked="About_Clicked" Order="Secondary" />
<ToolbarItem x:Name="_addItem" x:Key="addItem" Icon="plus.png"
Clicked="AddButton_Clicked" Order="Primary"
AutomationProperties.IsInAccessibleTree="True"

View File

@ -44,12 +44,14 @@ namespace Bit.App.Pages
if (Device.RuntimePlatform == Device.iOS)
{
_absLayout.Children.Remove(_fab);
ToolbarItems.Add(_aboutIconItem);
ToolbarItems.Add(_addItem);
}
else
{
ToolbarItems.Add(_syncItem);
ToolbarItems.Add(_lockItem);
ToolbarItems.Add(_aboutTextItem);
}
}
@ -161,6 +163,11 @@ namespace Bit.App.Pages
await _vaultTimeoutService.LockAsync(true, true);
}
private void About_Clicked(object sender, EventArgs e)
{
_vm.ShowAbout();
}
private async void AddButton_Clicked(object sender, EventArgs e)
{
if (DoOnce())

View File

@ -252,6 +252,11 @@ namespace Bit.App.Pages
}
}
public void ShowAbout()
{
_platformUtilsService.LaunchUri("https://bitwarden.com/products/send/");
}
private async Task LoadDataAsync()
{
NoDataText = AppResources.NoSends;

View File

@ -3478,5 +3478,11 @@ namespace Bit.App.Resources {
return ResourceManager.GetString("SendDisabledWarning", resourceCulture);
}
}
public static string AboutSend {
get {
return ResourceManager.GetString("AboutSend", resourceCulture);
}
}
}
}

View File

@ -1968,4 +1968,8 @@
<value>Due to an enterprise policy, you are only able to delete an existing Send.</value>
<comment>'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated.</comment>
</data>
<data name="AboutSend" xml:space="preserve">
<value>About Send</value>
<comment>'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated.</comment>
</data>
</root>

BIN
src/iOS/Resources/info.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -240,6 +240,15 @@
<ItemGroup>
<BundleResource Include="Resources\ext-use%403x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\info.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\info%402x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\info%403x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\lock.png" />
</ItemGroup>