more visible nav

This commit is contained in:
Finnley Somdahl 2023-12-31 06:18:55 -06:00
parent ae8b952b4c
commit ef30869b62
3 changed files with 4 additions and 11 deletions

View file

@ -79,16 +79,10 @@ class MainActivity : AppCompatActivity() {
val backgroundDrawable = _bottomBar.background as GradientDrawable
val currentColor = backgroundDrawable.color?.defaultColor ?: 0
val semiTransparentColor = (currentColor and 0x00FFFFFF) or 0xE8000000.toInt()
val semiTransparentColor = (currentColor and 0x00FFFFFF) or 0xF0000000.toInt()
backgroundDrawable.setColor(semiTransparentColor)
_bottomBar.background = backgroundDrawable
}
val colorOverflow = this.getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
.getBoolean("colorOverflow", false)
if (!colorOverflow) {
_bottomBar.background = ContextCompat.getDrawable(this, R.drawable.bottom_nav_gray)
}
var doubleBackToExitPressedOnce = false

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="?attr/colorOnPrimaryContainer"/>
<solid android:color="@color/grey_nav"/>
<corners android:radius="40dp"/>
</shape>

View file

@ -15,9 +15,8 @@
android:layout_marginTop="16dp"
android:layout_marginBottom="32dp"
android:background="@drawable/bottom_nav"
android:elevation="4dp"
android:padding="8dp"
android:translationZ="12dp"
android:elevation="8dp"
android:padding="6dp"
android:visibility="gone"
app:abb_animationDuration="300"
app:abb_animationInterpolator="@anim/over_shoot"