mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-20 00:55:20 +01:00
[Dialog] Consistent dialog corner radius
This commit is contained in:
parent
b8637958ce
commit
62e016bf9b
6 changed files with 19 additions and 15 deletions
|
@ -16,6 +16,7 @@ package code.name.monkey.retromusic.extensions
|
|||
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
import androidx.fragment.app.DialogFragment
|
||||
import androidx.fragment.app.Fragment
|
||||
import code.name.monkey.retromusic.R
|
||||
import com.afollestad.materialdialogs.MaterialDialog
|
||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||
|
@ -35,3 +36,8 @@ fun AlertDialog.colorButtons(): AlertDialog {
|
|||
}
|
||||
return this
|
||||
}
|
||||
|
||||
fun Fragment.materialDialog(): MaterialDialog {
|
||||
return MaterialDialog(requireContext())
|
||||
.cornerRadius(res = R.dimen.m3_alert_dialog_corner_size)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue