mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-19 20:29:02 +00:00
changed dialog negative button color to Maroon_100 (#2063)
This commit is contained in:
parent
695076b5db
commit
68c46757ec
2 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue