mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 13:23:39 +00:00
no listview selection type on non-light theme
This commit is contained in:
@@ -54,6 +54,8 @@
|
|||||||
ApplyToDerivedTypes="True">
|
ApplyToDerivedTypes="True">
|
||||||
<Setter Property="BackgroundColor"
|
<Setter Property="BackgroundColor"
|
||||||
Value="{StaticResource BackgroundColor}" />
|
Value="{StaticResource BackgroundColor}" />
|
||||||
|
<Setter Property="RefreshControlColor"
|
||||||
|
Value="{StaticResource PrimaryColor}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="ActivityIndicator"
|
<Style TargetType="ActivityIndicator"
|
||||||
ApplyToDerivedTypes="True">
|
ApplyToDerivedTypes="True">
|
||||||
|
|||||||
28
src/iOS/Renderers/CustomViewCellRenderer.cs
Normal file
28
src/iOS/Renderers/CustomViewCellRenderer.cs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
using Bit.iOS.Renderers;
|
||||||
|
using UIKit;
|
||||||
|
using Xamarin.Forms;
|
||||||
|
using Xamarin.Forms.Platform.iOS;
|
||||||
|
|
||||||
|
[assembly: ExportRenderer(typeof(ViewCell), typeof(CustomViewCellRenderer))]
|
||||||
|
namespace Bit.iOS.Renderers
|
||||||
|
{
|
||||||
|
public class CustomViewCellRenderer : ViewCellRenderer
|
||||||
|
{
|
||||||
|
private bool _noSelectionStyle = false;
|
||||||
|
|
||||||
|
public CustomViewCellRenderer()
|
||||||
|
{
|
||||||
|
_noSelectionStyle = (Color)Xamarin.Forms.Application.Current.Resources["BackgroundColor"] != Color.White;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, UITableView tv)
|
||||||
|
{
|
||||||
|
var cell = base.GetCell(item, reusableCell, tv);
|
||||||
|
if(_noSelectionStyle)
|
||||||
|
{
|
||||||
|
cell.SelectionStyle = UITableViewCellSelectionStyle.None;
|
||||||
|
}
|
||||||
|
return cell;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -113,11 +113,12 @@
|
|||||||
<Compile Include="AppDelegate.cs" />
|
<Compile Include="AppDelegate.cs" />
|
||||||
<Compile Include="Migration\KeyChainStorageService.cs" />
|
<Compile Include="Migration\KeyChainStorageService.cs" />
|
||||||
<Compile Include="NFCReaderDelegate.cs" />
|
<Compile Include="NFCReaderDelegate.cs" />
|
||||||
|
<Compile Include="Renderers\CustomButtonRenderer.cs" />
|
||||||
<Compile Include="Renderers\CustomTabbedRenderer.cs" />
|
<Compile Include="Renderers\CustomTabbedRenderer.cs" />
|
||||||
<Compile Include="Renderers\CustomPickerRenderer.cs" />
|
<Compile Include="Renderers\CustomPickerRenderer.cs" />
|
||||||
<Compile Include="Renderers\CustomEntryRenderer.cs" />
|
<Compile Include="Renderers\CustomEntryRenderer.cs" />
|
||||||
<Compile Include="Renderers\CustomEditorRenderer.cs" />
|
<Compile Include="Renderers\CustomEditorRenderer.cs" />
|
||||||
<Compile Include="Renderers\CustomButtonRenderer.cs" />
|
<Compile Include="Renderers\CustomViewCellRenderer.cs" />
|
||||||
<Compile Include="Renderers\CustomLabelRenderer.cs" />
|
<Compile Include="Renderers\CustomLabelRenderer.cs" />
|
||||||
<Compile Include="Renderers\CustomContentPageRenderer.cs" />
|
<Compile Include="Renderers\CustomContentPageRenderer.cs" />
|
||||||
<Compile Include="Renderers\HybridWebViewRenderer.cs" />
|
<Compile Include="Renderers\HybridWebViewRenderer.cs" />
|
||||||
|
|||||||
Reference in New Issue
Block a user