Skip to content

Commit

Permalink
Add custom theme derived from Material Light
Browse files Browse the repository at this point in the history
This restores the attempt to use Material Light except that it overrides
the status bar to black as the previous theme did. A custom theme using
a resource value file is needed for that.

This depends on the new `--res-values` option in python-for-android
v2022.09.04-endless11.

Fixes: #174
  • Loading branch information
dbnicholson committed Aug 14, 2023
1 parent 92aec5a commit e6f1b7a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .p4a
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
--allow-minsdk-ndkapi-mismatch
--permission ACCESS_NETWORK_STATE
--permission FOREGROUND_SERVICE
--android-apptheme "@style/KeyTheme"
--service remoteshell:remoteshell.py
--presplash assets/presplash.png
--presplash-color #F15A22
--icon assets/icon.png
--icon-fg assets/icon-fg.png
--icon-bg assets/icon-bg.png
--res-values res/values/styles.xml
--window
--fileprovider-paths src/fileprovider_paths.xml
--add-asset assets/_load.html:_load.html
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cython~=0.29
virtualenv
git+https://github.com/endlessm/python-for-android@v2022.09.04-endless10#egg=python-for-android
git+https://github.com/endlessm/python-for-android@v2022.09.04-endless11#egg=python-for-android
6 changes: 6 additions & 0 deletions res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="KeyTheme" parent="android:Theme.Material.Light.NoActionBar">
<item name="android:statusBarColor">@android:color/black</item>
</style>
</resources>

0 comments on commit e6f1b7a

Please sign in to comment.