1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Merge pull request #98712 from syntaxerror247/android_accent_color

[Android] Implement support for accent color retrieval
This commit is contained in:
Thaddeus Crews
2024-11-04 21:52:04 -06:00
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.