Skip to content

Commit

Permalink
set transparent color for active indicator on navigation bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
oliexdev committed Jul 29, 2023
1 parent 9230d94 commit 529f018
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions android_app/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ dependencies {
implementation 'com.google.android.material:material:1.11.0-alpha01'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.recyclerview:recyclerview:1.3.0'
implementation 'androidx.recyclerview:recyclerview:1.3.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.preference:preference:1.2.0'
implementation 'androidx.preference:preference:1.2.1'
implementation 'androidx.navigation:navigation-fragment:2.6.0'
implementation 'androidx.navigation:navigation-ui:2.6.0'
implementation "android.arch.lifecycle:extensions:1.1.1"
Expand All @@ -156,7 +156,7 @@ dependencies {
// Simple CSV
implementation 'com.j256.simplecsv:simplecsv:2.6'
// Blessed Android
implementation 'com.github.weliem:blessed-android:2.4.0'
implementation 'com.github.weliem:blessed-android:2.4.2'
// CustomActivityOnCrash
implementation 'cat.ereza:customactivityoncrash:2.3.0'
// AppIntro
Expand Down
1 change: 1 addition & 0 deletions android_app/app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
android:layout_weight="10"
app:labelVisibilityMode="unlabeled"
android:background="?attr/colorPrimaryDark"
android:theme="@style/AppTheme.NavigationBar"
app:itemIconTint="@drawable/nav_item_colors"
app:itemTextColor="@android:color/transparent"
app:menu="@menu/drawer_bottom_view" />
Expand Down
4 changes: 4 additions & 0 deletions android_app/app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
<item name="colorAccent">@color/md_theme_dark_onPrimary</item>
</style>

<style name="AppTheme.NavigationBar" parent="Widget.MaterialComponents.BottomNavigationView.Colored">
<item name="colorSecondaryContainer">@android:color/transparent</item>
</style>

<style name="AppTheme.Dialog" parent="Theme.MaterialComponents.DayNight.Dialog">
<item name="colorPrimary">@color/md_theme_dark_onBackground</item>
</style>
Expand Down
4 changes: 4 additions & 0 deletions android_app/app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<item name="colorAccent">@color/md_theme_light_primary</item>
</style>

<style name="AppTheme.NavigationBar" parent="Widget.MaterialComponents.BottomNavigationView.Colored">
<item name="colorSecondaryContainer">@android:color/transparent</item>
</style>

<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
Expand Down

0 comments on commit 529f018

Please sign in to comment.