Skip to content

Commit

Permalink
fix(android): support dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
joaotomaspinheiro committed Jun 8, 2024
1 parent 5d65edd commit 5fbaa0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 2 additions & 5 deletions android/app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<resources>
<!-- Base application theme. -->
<style name="Base.Theme.EcoMap" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your dark theme here. -->
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
</style>
<style name="Base.Theme.EcoMap.Night" parent="Base.Theme.EcoMap" />
</resources>
6 changes: 4 additions & 2 deletions android/app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<resources>
<!-- Base application theme. -->
<style name="Base.Theme.EcoMap" parent="Theme.Material3.DayNight.NoActionBar">
<style name="Base.Theme.EcoMap" parent="Theme.Material3.Light.NoActionBar">
<item name="colorPrimary">@color/green_700</item>
<item name="shapeAppearanceMediumComponent">@style/ShapeAppearance.App.SmallComponent</item>

<item name="android:windowTranslucentStatus">true</item>

<item name="chipStyle">@style/Widget.EcoMap.Chip</item>
<item name="floatingActionButtonStyle">@style/Widget.EcoMap.FloatingActionButton</item>
<item name="extendedFloatingActionButtonStyle">
Expand Down Expand Up @@ -38,7 +40,7 @@
<item name="colorOnSurface">@color/green_700</item>
<item name="strokeColor">@color/green_700</item>
</style>

<style name="ShapeAppearance.App.SmallComponent" parent="ShapeAppearance.Material3.SmallComponent">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">16dp</item>
Expand Down

0 comments on commit 5fbaa0e

Please sign in to comment.