Skip to content

Commit

Permalink
changed dialog negative button color to Maroon_100 (#2063)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjun1194 authored Apr 22, 2024
1 parent 695076b commit 68c4675
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 68c4675

Please sign in to comment.