fix: Use the correct colour for the status bar
Previously, in `MainActivity` and `AccountActivity` the status bar would be `colorPrimaryDark`. Adjust the layouts and code so that `colorSurface` is used to match the toolbar colour. Fixes #79
This commit is contained in:
parent
0b74b073a4
commit
f2cce6947e
@ -203,7 +203,7 @@ class AccountActivity :
|
||||
private fun loadResources() {
|
||||
toolbarColor = MaterialColors.getColor(this, com.google.android.material.R.attr.colorSurface, Color.BLACK)
|
||||
statusBarColorTransparent = getColor(R.color.transparent_statusbar_background)
|
||||
statusBarColorOpaque = MaterialColors.getColor(this, androidx.appcompat.R.attr.colorPrimaryDark, Color.BLACK)
|
||||
statusBarColorOpaque = toolbarColor
|
||||
avatarSize = resources.getDimension(R.dimen.account_activity_avatar_size)
|
||||
titleVisibleHeight = resources.getDimensionPixelSize(R.dimen.account_activity_scroll_title_visible_height)
|
||||
}
|
||||
|
@ -4,8 +4,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/mainDrawerLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true">
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||
android:id="@+id/mainCoordinatorLayout"
|
||||
|
Loading…
x
Reference in New Issue
Block a user