diff --git a/buildozer/default.spec b/buildozer/default.spec index ed5a921..b9e535c 100644 --- a/buildozer/default.spec +++ b/buildozer/default.spec @@ -71,6 +71,13 @@ orientation = portrait # (bool) Indicate if the application should be fullscreen or not fullscreen = 0 +# (string) Presplash background color (for new android toolchain) +# Supported formats are: #RRGGBB #AARRGGBB or one of the following names: +# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray, +# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy, +# olive, purple, silver, teal. +#android.presplash_color = #FFFFFF + # (list) Permissions #android.permissions = INTERNET diff --git a/buildozer/targets/android_new.py b/buildozer/targets/android_new.py index 3986924..fbefa2a 100644 --- a/buildozer/targets/android_new.py +++ b/buildozer/targets/android_new.py @@ -101,6 +101,12 @@ class TargetAndroidNew(TargetAndroid): else: cmd.extend(args) + # support for presplash background color + presplash_color = self.buildozer.config.getdefault('app', 'android.presplash_color', None) + if presplash_color: + cmd.append('--presplash-color') + cmd.append("'{}'".format(presplash_color)) + # support for services services = self.buildozer.config.getlist('app', 'services', []) for service in services: