diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-04 21:52:04 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-04 21:52:04 -0600 |
commit | 7d950c15677b6c778294238ea29e00b6355cf931 (patch) | |
tree | a1dca2546b883526c815af7c0694f3ce352ffb15 /platform/android/java/lib | |
parent | ef8aafc2dfba33e867f9b0b6e4be71a210daf78e (diff) | |
parent | 7b866f302ffbcdbacbc1d7fa0f280f2c36cfd481 (diff) | |
download | redot-engine-7d950c15677b6c778294238ea29e00b6355cf931.tar.gz |
Merge pull request #98712 from syntaxerror247/android_accent_color
[Android] Implement support for accent color retrieval
Diffstat (limited to 'platform/android/java/lib')
-rw-r--r-- | platform/android/java/lib/src/org/godotengine/godot/Godot.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/android/java/lib/src/org/godotengine/godot/Godot.kt b/platform/android/java/lib/src/org/godotengine/godot/Godot.kt index 898e3e04be..3ad8e6bc9e 100644 --- a/platform/android/java/lib/src/org/godotengine/godot/Godot.kt +++ b/platform/android/java/lib/src/org/godotengine/godot/Godot.kt @@ -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. |