mirror of
https://github.com/Quad4-Software/MeshChatX.git
synced 2026-08-18 09:49:09 -04:00
feat(themes): add new themes.xml for API 29+ and remove deprecated isLightTheme from main themes.xml
This commit is contained in:
parent
03b47ba708
commit
be285ed66b
2 changed files with 17 additions and 2 deletions
17
android/app/src/main/res/values-v29/themes.xml
Normal file
17
android/app/src/main/res/values-v29/themes.xml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- API 29+: WebView prefers-color-scheme follows isLightTheme when targetSdk >= 33. -->
|
||||
<style name="Theme.MeshChatX" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
||||
<item name="colorPrimary">@color/purple_500</item>
|
||||
<item name="colorPrimaryVariant">@color/purple_700</item>
|
||||
<item name="colorOnPrimary">@color/white</item>
|
||||
<item name="colorSecondary">@color/teal_200</item>
|
||||
<item name="colorSecondaryVariant">@color/teal_700</item>
|
||||
<item name="colorOnSecondary">@color/black</item>
|
||||
<item name="android:statusBarColor">@android:color/black</item>
|
||||
<item name="android:navigationBarColor">@color/meshchat_canvas</item>
|
||||
<item name="android:windowBackground">@color/meshchat_canvas</item>
|
||||
<item name="android:colorBackground">@color/meshchat_canvas</item>
|
||||
<item name="android:isLightTheme">false</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
@ -11,7 +11,5 @@
|
|||
<item name="android:navigationBarColor">@color/meshchat_canvas</item>
|
||||
<item name="android:windowBackground">@color/meshchat_canvas</item>
|
||||
<item name="android:colorBackground">@color/meshchat_canvas</item>
|
||||
<!-- WebView prefers-color-scheme follows isLightTheme when targetSdk >= 33. -->
|
||||
<item name="android:isLightTheme">false</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue