mirror of
https://github.com/bitwarden/mobile
synced 2026-01-01 08:03:37 +00:00
added "more" disclosure image for vault listing cell "more options" action sheet.
This commit is contained in:
@@ -25,14 +25,20 @@ namespace Bit.iOS.Controls
|
||||
{
|
||||
var detailDisclosureButton = UIButton.FromType(UIButtonType.Custom);
|
||||
detailDisclosureButton.SetImage(UIImage.FromBundle(extendedCell.DisclousureImage), UIControlState.Normal);
|
||||
detailDisclosureButton.SetImage(UIImage.FromBundle(extendedCell.DisclousureImage), UIControlState.Selected);
|
||||
|
||||
detailDisclosureButton.Frame = new CGRect(0f, 0f, 30f, 30f);
|
||||
try
|
||||
{
|
||||
detailDisclosureButton.SetImage(UIImage.FromBundle(extendedCell.DisclousureImage + "_selected"), UIControlState.Selected);
|
||||
}
|
||||
catch
|
||||
{
|
||||
detailDisclosureButton.SetImage(UIImage.FromBundle(extendedCell.DisclousureImage), UIControlState.Selected);
|
||||
}
|
||||
|
||||
detailDisclosureButton.Frame = new CGRect(0f, 0f, 30f, 40f);
|
||||
detailDisclosureButton.TouchUpInside += (sender, e) =>
|
||||
{
|
||||
var index = tv.IndexPathForCell(cell);
|
||||
tv.SelectRow(index, true, UITableViewScrollPosition.None);
|
||||
tv.Source.AccessoryButtonTapped(tv, index);
|
||||
extendedCell.OnDisclousureTapped();
|
||||
};
|
||||
cell.AccessoryView = detailDisclosureButton;
|
||||
}
|
||||
|
||||
BIN
src/iOS/Resources/more.png
Normal file
BIN
src/iOS/Resources/more.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 584 B |
BIN
src/iOS/Resources/more@2x.png
Normal file
BIN
src/iOS/Resources/more@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 479 B |
BIN
src/iOS/Resources/more@3x.png
Normal file
BIN
src/iOS/Resources/more@3x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 271 B |
BIN
src/iOS/Resources/more_selected.png
Normal file
BIN
src/iOS/Resources/more_selected.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 271 B |
BIN
src/iOS/Resources/more_selected@2x.png
Normal file
BIN
src/iOS/Resources/more_selected@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 479 B |
BIN
src/iOS/Resources/more_selected@3x.png
Normal file
BIN
src/iOS/Resources/more_selected@3x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 584 B |
@@ -375,6 +375,24 @@
|
||||
<ItemGroup>
|
||||
<BundleResource Include="Resources\cogs%403x.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BundleResource Include="Resources\more.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BundleResource Include="Resources\more%403x.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BundleResource Include="Resources\more%402x.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BundleResource Include="Resources\more_selected.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BundleResource Include="Resources\more_selected%403x.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BundleResource Include="Resources\more_selected%402x.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
|
||||
Reference in New Issue
Block a user