1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-15 07:43:37 +00:00

use black text for search bar on light theme

This commit is contained in:
Kyle Spearrin
2019-10-04 09:32:59 -04:00
parent 4d8c665917
commit a363712127
5 changed files with 35 additions and 4 deletions

View File

@@ -353,7 +353,15 @@ namespace Bit.iOS.Core.Services
public bool UsingDarkTheme()
{
return UIScreen.MainScreen.TraitCollection.UserInterfaceStyle == UIUserInterfaceStyle.Dark;
try
{
if(SystemMajorVersion() > 12)
{
return UIScreen.MainScreen.TraitCollection.UserInterfaceStyle == UIUserInterfaceStyle.Dark;
}
}
catch { }
return false;
}
private void ImagePicker_FinishedPickingMedia(object sender, UIImagePickerMediaPickedEventArgs e)