From fbef05ae6d4b5cb1a85cb7e7d9b2d0f4b1ff0bd2 Mon Sep 17 00:00:00 2001 From: Naveen Date: Sun, 17 Mar 2024 15:08:07 +0530 Subject: [PATCH] Use elevated dialpad color in dark theme --- .../kotlin/org/fossify/phone/activities/CallActivity.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/fossify/phone/activities/CallActivity.kt b/app/src/main/kotlin/org/fossify/phone/activities/CallActivity.kt index a51fcad8..e2b788cb 100644 --- a/app/src/main/kotlin/org/fossify/phone/activities/CallActivity.kt +++ b/app/src/main/kotlin/org/fossify/phone/activities/CallActivity.kt @@ -216,7 +216,14 @@ class CallActivity : SimpleActivity() { dialpadHashtagHolder.setOnClickListener { dialpadPressed('#') } } - dialpadWrapper.setBackgroundColor(getProperBackgroundColor()) + dialpadWrapper.setBackgroundColor( + if (isUsingSystemDarkTheme()) { + getProperBackgroundColor().lightenColor(2) + } else { + getProperBackgroundColor() + } + ) + arrayOf(dialpadClose, callSimImage).forEach { it.applyColorFilter(getProperTextColor()) }