2019-10-04 15:32:59 +02:00
|
|
|
|
using Bit.App.Abstractions;
|
|
|
|
|
using Bit.Core.Utilities;
|
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
|
|
|
|
|
namespace Bit.App.Controls
|
|
|
|
|
{
|
|
|
|
|
public class ExtendedSearchBar : SearchBar
|
|
|
|
|
{
|
|
|
|
|
public ExtendedSearchBar()
|
|
|
|
|
{
|
2020-03-28 14:16:28 +01:00
|
|
|
|
if (Device.RuntimePlatform == Device.iOS)
|
2019-10-04 15:32:59 +02:00
|
|
|
|
{
|
|
|
|
|
var deviceActionService = ServiceContainer.Resolve<IDeviceActionService>("deviceActionService", true);
|
2020-03-28 14:16:28 +01:00
|
|
|
|
if (!deviceActionService?.UsingDarkTheme() ?? false)
|
2019-10-04 15:32:59 +02:00
|
|
|
|
{
|
|
|
|
|
TextColor = Color.Black;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|