Skip to content

Commit

Permalink
Fix dark mode base callout (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Linfye authored Dec 2, 2024
1 parent 44d87ed commit e56fb24
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/src/main/java/be/scri/views/MyKeyboardView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -589,13 +589,18 @@ class MyKeyboardView
} else {
Color.WHITE
}
mBackgroundColor =
if (isUserDarkMode) {
Color.DKGRAY
} else {
Color.WHITE
}
mTextColor =
if (keyBackgroundColor == Color.WHITE) {
Color.BLACK
} else {
Color.WHITE
}

mSpecialKeyColor =
if (isUserDarkMode) {
R.color.special_key_dark
Expand All @@ -615,14 +620,12 @@ class MyKeyboardView
textSize = mTopSmallNumberSize
typeface = Typeface.DEFAULT
}

val shadowPaint =
Paint().apply {
color = Color.GRAY
alpha = SHADOW_ALPHA
style = Paint.Style.FILL
}

mKeyboardBackgroundColor =
if (isUserDarkMode) {
Color.BLACK
Expand Down

0 comments on commit e56fb24

Please sign in to comment.