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