You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
[Android] Implement support for accent color retrieval
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user