style: add popupmenu black theme support

Tack on some more themes to make popupmenu styles follow the new black
theme introduced in 68bdd0.
This commit is contained in:
OxygenCobalt
2021-06-11 13:33:16 -06:00
parent 68bdd0d929
commit 381c0f0944
8 changed files with 37 additions and 25 deletions
@@ -66,7 +66,7 @@ class AccentAdapter(
selectedViewHolder?.setSelected(false)
selectedViewHolder = this
R.color.background.toStateList(context)
R.color.surface_color.toStateList(context)
} else {
android.R.color.transparent.toStateList(context)
}
@@ -20,7 +20,7 @@ abstract class LifecycleDialog : AppCompatDialogFragment() {
// Setting the background in XML will also apply it to the tooltip for some inane reason
// so we have to do it programmatically instead.
builder.background = R.color.background.toDrawable(requireContext())
builder.background = R.color.surface_color.toDrawable(requireContext())
onConfigDialog(builder)