Update navigation colors

This commit is contained in:
Benoit Marty 2021-06-10 17:43:43 +02:00 committed by Benoit Marty
parent 5363526f77
commit 8162d1100d
6 changed files with 21 additions and 5 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="?colorPrimary" android:state_checked="true" /> <item android:color="?colorPrimary" android:state_checked="true" />
<item android:color="?vctr_content_secondary" /> <item android:color="?vctr_content_tertiary" />
</selector> </selector>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="?vctr_toolbar_background"/>
</shape>

View file

@ -164,10 +164,6 @@
android:id="@+id/bottomNavigationView" android:id="@+id/bottomNavigationView"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?vctr_system"
app:itemIconSize="20dp"
app:itemIconTint="@color/bottom_navigation_icon_tint_selector"
app:labelVisibilityMode="unlabeled"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="VectorBottomNavigation" parent="Widget.MaterialComponents.BottomNavigationView">
<item name="android:background">@drawable/bg_bottom_navigation</item>
<item name="itemBackground">@drawable/bg_bottom_navigation</item>
<item name="itemIconSize">20dp</item>
<item name="itemIconTint">@color/bottom_navigation_icon_tint_selector</item>
<item name="labelVisibilityMode">unlabeled</item>
</style>
</resources>

View file

@ -68,6 +68,7 @@
<item name="materialButtonStyle">@style/VectorButtonStyle</item> <item name="materialButtonStyle">@style/VectorButtonStyle</item>
<item name="toolbarStyle">@style/VectorToolbar</item> <item name="toolbarStyle">@style/VectorToolbar</item>
<item name="materialAlertDialogTheme">@style/VectorAlertDialogStyleDark</item> <item name="materialAlertDialogTheme">@style/VectorAlertDialogStyleDark</item>
<item name="bottomNavigationStyle">@style/VectorBottomNavigation</item>
<!-- Default style for text input --> <!-- Default style for text input -->
<item name="textInputStyle">@style/VectorTextInputLayout</item> <item name="textInputStyle">@style/VectorTextInputLayout</item>

View file

@ -68,6 +68,7 @@
<item name="materialButtonStyle">@style/VectorButtonStyle</item> <item name="materialButtonStyle">@style/VectorButtonStyle</item>
<item name="toolbarStyle">@style/VectorToolbar</item> <item name="toolbarStyle">@style/VectorToolbar</item>
<item name="materialAlertDialogTheme">@style/VectorAlertDialogStyleLight</item> <item name="materialAlertDialogTheme">@style/VectorAlertDialogStyleLight</item>
<item name="bottomNavigationStyle">@style/VectorBottomNavigation</item>
<!-- Default style for text input --> <!-- Default style for text input -->
<item name="textInputStyle">@style/VectorTextInputLayout</item> <item name="textInputStyle">@style/VectorTextInputLayout</item>