mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-06-05 21:49:26 +02:00
Fixed safeStorageContext issue in getStrokeColor method
This commit is contained in:
@ -47,7 +47,7 @@ fun Context.getStrokeColor(): Int {
|
|||||||
resources.getColor(R.color.md_grey_400, theme)
|
resources.getColor(R.color.md_grey_400, theme)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
val lighterColor = getProperBackgroundColor().lightenColor()
|
val lighterColor = safeStorageContext.getProperBackgroundColor().lightenColor()
|
||||||
if (lighterColor == Color.WHITE || lighterColor == Color.BLACK) {
|
if (lighterColor == Color.WHITE || lighterColor == Color.BLACK) {
|
||||||
resources.getColor(R.color.divider_grey, theme)
|
resources.getColor(R.color.divider_grey, theme)
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user