浏览代码

Add AlertDialog styles to Reader themes (#5426)

Hunter Nickel 3 年之前
父节点
当前提交
848d387ec4
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      app/src/main/res/values/themes.xml

+ 6 - 0
app/src/main/res/values/themes.xml

@@ -466,6 +466,7 @@
         <item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents</item>
         <item name="switchStyle">@style/Theme.Widget.BasicSwitch</item>
         <item name="bottomSheetDialogTheme">@style/Theme.BottomSheet</item>
+        <item name="android:alertDialogTheme">@style/Theme.AlertDialog.Light</item>
     </style>
 
     <!--== Light Reader ==-->
@@ -489,6 +490,7 @@
         <item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents</item>
         <item name="switchStyle">@style/Theme.Widget.BasicSwitch</item>
         <item name="bottomSheetDialogTheme">@style/Theme.BottomSheet</item>
+        <item name="android:alertDialogTheme">@style/Theme.AlertDialog.Amoled</item>
     </style>
 
     <!--== Dark Reader ==-->
@@ -501,6 +503,10 @@
 
         <!-- Base background/text colors -->
         <item name="android:colorBackground">@color/backgroundDark</item>
+
+        <!-- Alert Dialog -->
+        <item name="android:alertDialogTheme">@style/Theme.AlertDialog.Dark</item>
+
     </style>
 
     <!--===============-->