From b1f34c75fdff26698695613bac04d7e82f9a056f Mon Sep 17 00:00:00 2001 From: Robert Niederreiter Date: Tue, 13 Dec 2016 14:56:26 +0100 Subject: [PATCH] Add presplash background color support for android when using the new toolchain --- buildozer/default.spec | 7 +++++++ buildozer/targets/android_new.py | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/buildozer/default.spec b/buildozer/default.spec index af60c30..12c9274 100644 --- a/buildozer/default.spec +++ b/buildozer/default.spec @@ -71,6 +71,13 @@ orientation = landscape # (bool) Indicate if the application should be fullscreen or not fullscreen = 1 +# (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 7b65bb2..072b285 100644 --- a/buildozer/targets/android_new.py +++ b/buildozer/targets/android_new.py @@ -98,6 +98,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(presplash_color) + # support for services services = self.buildozer.config.getlist('app', 'services', []) for service in services: