mirror of
https://github.com/bitwarden/mobile.git
synced 2024-06-25 10:26:02 +02:00
22 lines
573 B
C#
22 lines
573 B
C#
|
using Bit.App.Abstractions;
|
|||
|
using Bit.Core.Utilities;
|
|||
|
using Xamarin.Forms;
|
|||
|
|
|||
|
namespace Bit.App.Controls
|
|||
|
{
|
|||
|
public class ExtendedSearchBar : SearchBar
|
|||
|
{
|
|||
|
public ExtendedSearchBar()
|
|||
|
{
|
|||
|
if(Device.RuntimePlatform == Device.iOS)
|
|||
|
{
|
|||
|
var deviceActionService = ServiceContainer.Resolve<IDeviceActionService>("deviceActionService", true);
|
|||
|
if(!deviceActionService?.UsingDarkTheme() ?? false)
|
|||
|
{
|
|||
|
TextColor = Color.Black;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|