1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #100200 from syntaxerror247/android-base-color

Android: Support for `base color` retrieval
This commit is contained in:
Rémi Verschelde
2024-12-18 00:39:45 +01:00
6 changed files with 38 additions and 7 deletions

View File

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