[UI] Fix nightly badge background tint.

This commit is contained in:
Kuba Szczodrzyński 2021-03-25 12:59:42 +01:00
parent 6c4a1b54ba
commit 2d01a8c4d4
2 changed files with 4 additions and 1 deletions

View File

@ -317,6 +317,9 @@ class MainActivity : AppCompatActivity(), CoroutineScope {
}
else -> b.nightlyText.isVisible = false
}
if (b.nightlyText.isVisible) {
b.nightlyText.background.setTintColor(0xa0ff0000.toInt())
}
navLoading = true

View File

@ -40,13 +40,13 @@
android:layout_marginHorizontal="48dp"
android:layout_marginVertical="8dp"
android:background="@drawable/bg_rounded_4dp"
android:backgroundTint="#a0ff0000"
android:fontFamily="sans-serif-light"
android:gravity="center"
android:padding="4dp"
android:textAllCaps="true"
android:textSize="12sp"
android:textStyle="bold"
tools:backgroundTint="#a0ff0000"
tools:text="Nightly\n20200503" />
</FrameLayout>