Skip to content

Commit

Permalink
Fixed material component warnings by switching to material3 themes
Browse files Browse the repository at this point in the history
  • Loading branch information
BradPatras committed Jan 6, 2024
1 parent 9a9bb19 commit d644c43
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/src/main/res/layout/fragment_route_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
android:foregroundTint="@color/on_nav_bar_surface"
app:backgroundTint="@color/nav_bar_surface"
app:navigationIcon="@drawable/ic_menu"
app:navigationIconTint="@color/on_nav_bar_surface"
/>

</androidx.coordinatorlayout.widget.CoordinatorLayout>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<string name="export_file">Export File</string>
<string name="file_format">File format</string>
<string name="recorded_routes_will_show_up_here">Recorded routes will show up here</string>
<string name="start_recording_button">Start recording button</string>
<string name="start_recording_button">Start recording</string>
<string name="route_deleted">Route Deleted</string>
<string name="tap_to_undo">Tap to Undo</string>

Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight">
<style name="AppTheme" parent="Theme.Material3.DayNight">
<item name="colorPrimary">@color/md_primary</item>
<item name="colorPrimaryDark">#4D6268</item>
<item name="colorAccent">@color/md_secondary</item>
<item name="windowActionBar">false</item>
<item name="android:windowContentOverlay">@null</item>
</style>

<style name="Theme.MaterialComponents.NoActionBarDialog" parent="@style/Theme.MaterialComponents.DayNight.Dialog.Alert">
<style name="Theme.MaterialComponents.NoActionBarDialog" parent="@style/Theme.Material3.DayNight.Dialog.Alert">
<item name="colorPrimary">@color/md_primary</item>
<item name="colorSecondary">@color/md_secondary</item>
<item name="colorPrimaryDark">@color/md_primary</item>
Expand All @@ -23,8 +23,8 @@
<item name="windowNoTitle">true</item>
</style>

<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.MaterialComponents.Dark.ActionBar"/>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.Material3.Dark.ActionBar"/>

<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.MaterialComponents.Light"/>
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.Material3.Light"/>

</resources>

0 comments on commit d644c43

Please sign in to comment.