Skip to content

Commit

Permalink
Fix (date)picker dark theme (xamarin#14591)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis authored Sep 28, 2021
1 parent 8426694 commit ef55496
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<!--<item name="android:buttonStyle">@style/red_button_style</item>-->
</style>

<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
<style name="AppCompatDialogStyle">
<item name="colorAccent">#FF4081</item>
</style>

Expand Down
1 change: 1 addition & 0 deletions Xamarin.Forms.Platform.Android/AppCompat/PickerRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Android.Util;
using Android.Widget;
using AndroidX.Core.View;
using AlertDialog = AndroidX.AppCompat.App.AlertDialog;

namespace Xamarin.Forms.Platform.Android.AppCompat
{
Expand Down
3 changes: 2 additions & 1 deletion Xamarin.Forms.Platform.Android/Resources/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
<item name="windowActionModeOverlay">true</item>
<item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item>
</style>
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.DayNight.Dialog">
<style name="AppCompatDialogStyle">
<item name="colorAccent">#FF4081</item>
<item name="android:windowIsFloating">true</item>
</style>
</resources>

0 comments on commit ef55496

Please sign in to comment.