There is a white background when users select text and see copy/paste menu.
And you see handles are not the accentPrimary color too.
This happens on AlertDialogs which it's style is deriven from Theme.Material3.DayNight.Dialog.Alert
The dialog is built by AlertDialog.Builder(context, style)
These are the style attributes I am using for style
variable above:
<item name="android:background"/>
<item name="android:windowTitleStyle"/>
<item name="android:textColorPrimary"/>
<item name="windowFixedWidthMajor"/>
<item name="windowFixedWidthMinor"/>
<item name="buttonBarNeutralButtonStyle"/>
<item name="buttonBarNegativeButtonStyle"/>
<item name="buttonBarPositiveButtonStyle"/>
<item name="android:windowMinWidthMajor"/>
<item name="android:windowMinWidthMinor"/>
<item name="android:buttonBarNeutralButtonStyle"/>
<item name="android:buttonBarNegativeButtonStyle"/>
<item name="android:buttonBarPositiveButtonStyle"/>
When I do not use these styles, the white bg is not there, but the editText's height becomes extremely thin.
What is the attribute in Material3 to change those colors and fix them?