mirror of
https://github.com/bitwarden/android.git
synced 2025-03-14 02:08:48 +03:00
detect dark mode theme. set modal to full screen
This commit is contained in:
parent
3c7920b84c
commit
9dc01bca1c
2 changed files with 11 additions and 1 deletions
|
@ -4,6 +4,8 @@ using Bit.Core.Utilities;
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.PlatformConfiguration;
|
||||
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
|
||||
|
||||
namespace Bit.App.Pages
|
||||
{
|
||||
|
@ -14,6 +16,14 @@ namespace Bit.App.Pages
|
|||
protected int ShowModalAnimationDelay = 400;
|
||||
protected int ShowPageAnimationDelay = 100;
|
||||
|
||||
public BaseContentPage()
|
||||
{
|
||||
if (Device.RuntimePlatform == Device.iOS)
|
||||
{
|
||||
On<iOS>().SetModalPresentationStyle(UIModalPresentationStyle.FullScreen);
|
||||
}
|
||||
}
|
||||
|
||||
public DateTime? LastPageAction { get; set; }
|
||||
|
||||
protected override void OnAppearing()
|
||||
|
|
|
@ -353,7 +353,7 @@ namespace Bit.iOS.Core.Services
|
|||
|
||||
public bool UsingDarkTheme()
|
||||
{
|
||||
return false;
|
||||
return UIScreen.MainScreen.TraitCollection.UserInterfaceStyle == UIUserInterfaceStyle.Dark;
|
||||
}
|
||||
|
||||
private void ImagePicker_FinishedPickingMedia(object sender, UIImagePickerMediaPickedEventArgs e)
|
||||
|
|
Loading…
Add table
Reference in a new issue