feat: Use modern style settings dialogs (#5109)
Co-authored-by: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
This commit is contained in:
parent
9e30c34e74
commit
a426e2af50
99 changed files with 2343 additions and 1324 deletions
|
|
@ -1,27 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
'android.R.style.ThemeOverlay_Material_Dialog' is a theme added in Android 6.0+.
|
||||
|
||||
'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.ytRaisedBackground' is the background color of the YouTube alert dialog.
|
||||
|
||||
'android:windowIsTranslucent' makes the dialog window transparent.
|
||||
|
||||
'android:background' needs to be transparent for the 'contextual action bar' to be displayed properly.
|
||||
|
||||
Referenced documentation and framework source code:
|
||||
https://android.googlesource.com/platform/frameworks/base/+/android-6.0.1_r81/core/res/res/values/themes_material.xml#1142
|
||||
https://developer.android.com/reference/android/R.style#ThemeOverlay_Material_Dialog
|
||||
https://developer.android.com/about/versions/marshmallow/android-6.0-changes#behavior-text-selection
|
||||
-->
|
||||
<resources>
|
||||
<style name="revanced_edit_text_dialog_style" parent="@android:style/ThemeOverlay.Material.Dialog">
|
||||
<item name="android:windowBackground">?ytRaisedBackground</item>
|
||||
<item name="android:windowIsTranslucent">true</item>
|
||||
<item name="android:background">@android:color/transparent</item>
|
||||
</style>
|
||||
<style name="revanced_searchbar_cursor">
|
||||
<item name="android:textCursorDrawable">@drawable/revanced_settings_cursor</item>
|
||||
<item name="android:textSize">16sp</item>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue