fix(YouTube/Settings): EditTextDialog's background color does not match when Theme patch is excluded https://github.com/inotia00/ReVanced_Extended/issues/2422

This commit is contained in:
inotia00 2024-10-06 18:34:24 +09:00
parent 7ea37b2cfd
commit 12127d6f25

View File

@ -5,8 +5,7 @@
'android:windowBackground' is the background color of the alert dialog. 'android:windowBackground' is the background color of the alert dialog.
If not overridden, the background color of the parent theme 'android.R.style.ThemeOverlay_Material_Dialog' is used. If not overridden, the background color of the parent theme 'android.R.style.ThemeOverlay_Material_Dialog' is used.
'R.attr.ytBaseBackground' is the background color in YouTube settings. 'R.attr.ytRaisedBackground' is the background color of the YouTube alert dialog.
'R.color.yt_white1' color is used in light theme, and the 'R.color.yt_black3' color is used in dark theme.
'android:windowIsTranslucent' makes the dialog window transparent. 'android:windowIsTranslucent' makes the dialog window transparent.
@ -19,14 +18,14 @@
--> -->
<resources> <resources>
<style name="revanced_edit_text_dialog_style" parent="@android:style/ThemeOverlay.Material.Dialog"> <style name="revanced_edit_text_dialog_style" parent="@android:style/ThemeOverlay.Material.Dialog">
<item name="android:windowBackground">?ytBaseBackground</item> <item name="android:windowBackground">?ytRaisedBackground</item>
<item name="android:windowIsTranslucent">true</item> <item name="android:windowIsTranslucent">true</item>
<item name="android:background">@android:color/transparent</item> <item name="android:background">@android:color/transparent</item>
<item name="windowMinWidthMajor">@dimen/revanced_edit_text_dialog_min_width_major</item> <item name="windowMinWidthMajor">@dimen/revanced_edit_text_dialog_min_width_major</item>
<item name="windowMinWidthMinor">@dimen/revanced_edit_text_dialog_min_width_minor</item> <item name="windowMinWidthMinor">@dimen/revanced_edit_text_dialog_min_width_minor</item>
</style> </style>
<style name="revanced_edit_text_dialog_max_width_style" parent="@android:style/ThemeOverlay.Material.Dialog.Alert"> <style name="revanced_edit_text_dialog_max_width_style" parent="@android:style/ThemeOverlay.Material.Dialog.Alert">
<item name="android:windowBackground">?ytBaseBackground</item> <item name="android:windowBackground">?ytRaisedBackground</item>
<item name="android:windowIsTranslucent">true</item> <item name="android:windowIsTranslucent">true</item>
<item name="android:background">@android:color/transparent</item> <item name="android:background">@android:color/transparent</item>
</style> </style>