Change default ui color in android app #1654
-
Hello, I'm looking for a solution to change the default color for android. When the app is open the "formal_name" provided by the pyproject.toml file is written on a green background. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
This isn't currently configurable in a programmatic way; however, it is something we definitely want to make customizable. In the short term, if you want to modify this, you will need to modify the color values in the If you look at the existing template, you'll also see that the background splash color is already templated and customizable; adding analogous "primary_color", "primary_color_dark" and "accent_color" options to the template, and exposing those options in Briefcase would be a welcome contribution. |
Beta Was this translation helpful? Give feedback.
This isn't currently configurable in a programmatic way; however, it is something we definitely want to make customizable.
In the short term, if you want to modify this, you will need to modify the color values in the
app/src/main/res/values/colors.xml
file that is generated by Briefcase for your Android project. These values will be overwritten every time you regenerate the project; so if you want a specific set of values to be applied consistently, you may need to clone the template (https://github.com/beeware/briefcase-android-gradle-template), make the change in your copy, and modifypyproject.toml
to point at that template.If you look at the existing template, you'll also see that t…