From 2bb024fcbc2819502d72fdfe97cfd0e3f402a581 Mon Sep 17 00:00:00 2001 From: TheJoKlLa <thejoklla@gmail.com> Date: Mon, 20 Sep 2021 18:55:16 +0200 Subject: [PATCH] Ignore Dark Mode --- Borepin/Borepin.Android/MainActivity.cs | 3 +++ Borepin/Borepin.UWP/App.xaml | 3 +-- Borepin/Borepin.iOS/Info.plist | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Borepin/Borepin.Android/MainActivity.cs b/Borepin/Borepin.Android/MainActivity.cs index 60d2c0f..36ff798 100644 --- a/Borepin/Borepin.Android/MainActivity.cs +++ b/Borepin/Borepin.Android/MainActivity.cs @@ -2,6 +2,7 @@ using Android.App; using Android.Content.PM; using Android.OS; +using AndroidX.AppCompat.App; namespace Borepin.Droid { @@ -10,6 +11,8 @@ namespace Borepin.Droid { protected override void OnCreate(Bundle savedInstanceState) { + AppCompatDelegate.DefaultNightMode = AppCompatDelegate.ModeNightNo; + TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; diff --git a/Borepin/Borepin.UWP/App.xaml b/Borepin/Borepin.UWP/App.xaml index f6da795..4048647 100644 --- a/Borepin/Borepin.UWP/App.xaml +++ b/Borepin/Borepin.UWP/App.xaml @@ -2,6 +2,5 @@ x:Class="Borepin.UWP.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:Borepin.UWP"> - + xmlns:local="using:Borepin.UWP" RequestedTheme="Light"> </Application> diff --git a/Borepin/Borepin.iOS/Info.plist b/Borepin/Borepin.iOS/Info.plist index b464cc1..7ba1bb6 100644 --- a/Borepin/Borepin.iOS/Info.plist +++ b/Borepin/Borepin.iOS/Info.plist @@ -40,5 +40,7 @@ <false/> <key>NFCReaderUsageDescription</key> <string>FabAccess needs to be able to read your card for authentication with the server.</string> + <key>UIUserInterfaceStyle</key> + <string>Light</string> </dict> </plist>