You've already forked godot
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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user