style: remove elevation from toolbars
Remove the elevation component from all toolbars and the bottom bar. Material3 states that top and bottom app bars should not cast a drop shadow. Auxio ignored this and used one anyway. This largely stemmed from incorrect use of the AppBarLayout styles, which were mostly just incorrect M2 styles with a new background plastered over. Fix this by creating a new style that inherits the proper M3 styles and then using that on all AppBarLayout instances in the app.
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
<resources>
|
||||
<!-- SHARED RE-USABLE UI STYLES -->
|
||||
|
||||
<style name="Widget.Auxio.AppBarLayout" parent="Widget.Material3.AppBarLayout">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
</style>
|
||||
|
||||
<!-- Base toolbar style -->
|
||||
<style name="Widget.Auxio.Toolbar" parent="">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
|
||||
Reference in New Issue
Block a user