summaryrefslogtreecommitdiffstats
path: root/platform/android/java/lib
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-04 21:52:04 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-04 21:52:04 -0600
commit7d950c15677b6c778294238ea29e00b6355cf931 (patch)
treea1dca2546b883526c815af7c0694f3ce352ffb15 /platform/android/java/lib
parentef8aafc2dfba33e867f9b0b6e4be71a210daf78e (diff)
parent7b866f302ffbcdbacbc1d7fa0f280f2c36cfd481 (diff)
downloadredot-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.kt6
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.