changed dialog negative button color to Maroon_100 (#2063)

This commit is contained in:
arjun1194 2024-04-22 15:47:11 +05:30 committed by GitHub
parent 695076b5db
commit 68c46757ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -835,7 +835,7 @@ class TaskFormActivity : BaseActivity() {
}
val alert = HabiticaAlertDialog(this)
alert.setTitle(R.string.are_you_sure)
alert.addButton(R.string.delete_task, true) { _, _ ->
alert.addButton(R.string.delete_task, false, isDestructive = true) { _, _ ->
if (task?.isValid != true) return@addButton
task?.id?.let {
lifecycleScope.launch(Dispatchers.Main) {

View file

@ -207,7 +207,7 @@ open class HabiticaAlertDialog(context: Context) : AlertDialog(context, R.style.
} else {
val button = binding.buttonsWrapper.inflate(R.layout.dialog_habitica_secondary_button) as? Button
if (isDestructive) {
button?.setTextColor(ContextCompat.getColor(context, R.color.text_red))
button?.setTextColor(ContextCompat.getColor(context, R.color.maroon_100))
}
button
} ?: Button(context)