Skip to content

Commit

Permalink
fix(YouTube/Settings): EditTextDialog's background color does not mat…
Browse files Browse the repository at this point in the history
…ch when `Theme` patch is excluded inotia00/ReVanced_Extended#2422
  • Loading branch information
inotia00 committed Oct 6, 2024
1 parent 7ea37b2 commit 12127d6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/resources/youtube/settings/host/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
'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.
'R.attr.ytBaseBackground' is the background color in YouTube settings.
'R.color.yt_white1' color is used in light theme, and the 'R.color.yt_black3' color is used in dark theme.
'R.attr.ytRaisedBackground' is the background color of the YouTube alert dialog.
'android:windowIsTranslucent' makes the dialog window transparent.
Expand All @@ -19,14 +18,14 @@
-->
<resources>
<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:background">@android:color/transparent</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>
</style>
<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:background">@android:color/transparent</item>
</style>
Expand Down

0 comments on commit 12127d6

Please sign in to comment.