[Android] Implement support for accent color retrieval

This commit is contained in:
Anish Mishra 2024-11-01 03:36:26 +05:30
parent c6c464cf9a
commit 7b866f302f
6 changed files with 36 additions and 1 deletions

View file

@ -925,6 +925,12 @@ class Godot(private val context: Context) {
}
}
@Keep
private fun getAccentColor(): Int {
val value = TypedValue()
context.theme.resolveAttribute(android.R.attr.colorAccent, value, true)
return value.data
}
/**
* Destroys the Godot Engine and kill the process it's running in.