Profile screen theme tweaks

Change-Id: I0dfeea8284ae597b03c6e9fd8c1f2f1e4f45332f
This commit is contained in:
SpiritCroc 2021-07-02 18:27:08 +02:00
parent 4b472f041b
commit 1c32fcad35
3 changed files with 7 additions and 1 deletions

View file

@ -21,6 +21,7 @@ import com.airbnb.epoxy.TypedEpoxyController
import im.vector.app.R import im.vector.app.R
import im.vector.app.core.epoxy.profiles.buildProfileAction import im.vector.app.core.epoxy.profiles.buildProfileAction
import im.vector.app.core.epoxy.profiles.buildProfileSection import im.vector.app.core.epoxy.profiles.buildProfileSection
import im.vector.app.core.resources.ColorProvider
import im.vector.app.core.resources.StringProvider import im.vector.app.core.resources.StringProvider
import im.vector.app.core.ui.list.genericFooterItem import im.vector.app.core.ui.list.genericFooterItem
import org.matrix.android.sdk.api.session.Session import org.matrix.android.sdk.api.session.Session
@ -31,6 +32,7 @@ import javax.inject.Inject
class RoomMemberProfileController @Inject constructor( class RoomMemberProfileController @Inject constructor(
private val stringProvider: StringProvider, private val stringProvider: StringProvider,
private val colorProvider: ColorProvider,
private val session: Session private val session: Session
) : TypedEpoxyController<RoomMemberProfileViewState>() { ) : TypedEpoxyController<RoomMemberProfileViewState>() {
@ -146,6 +148,7 @@ class RoomMemberProfileController @Inject constructor(
id("verify_footer") id("verify_footer")
text(host.stringProvider.getString(R.string.room_profile_encrypted_subtitle)) text(host.stringProvider.getString(R.string.room_profile_encrypted_subtitle))
centered(false) centered(false)
backgroundColor(host.colorProvider.getColorFromAttribute(R.attr.vctr_header_background))
} }
} }
} else { } else {
@ -163,6 +166,7 @@ class RoomMemberProfileController @Inject constructor(
id("verify_footer_not_encrypted") id("verify_footer_not_encrypted")
text(host.stringProvider.getString(R.string.room_profile_not_encrypted_subtitle)) text(host.stringProvider.getString(R.string.room_profile_not_encrypted_subtitle))
centered(false) centered(false)
backgroundColor(host.colorProvider.getColorFromAttribute(R.attr.vctr_header_background))
} }
} }
} }

View file

@ -99,6 +99,7 @@
android:id="@+id/matrixProfileRecyclerView" android:id="@+id/matrixProfileRecyclerView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?vctr_header_background"
app:layout_behavior="@string/appbar_scrolling_view_behavior" app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:listitem="@layout/item_profile_action" /> tools:listitem="@layout/item_profile_action" />
@ -106,4 +107,4 @@
android:id="@+id/waiting_view" android:id="@+id/waiting_view"
layout="@layout/merge_overlay_waiting_view" /> layout="@layout/merge_overlay_waiting_view" />
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -82,6 +82,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:overScrollMode="always" android:overScrollMode="always"
android:background="?vctr_header_background"
app:layout_behavior="@string/appbar_scrolling_view_behavior" app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:listitem="@layout/item_profile_action" /> tools:listitem="@layout/item_profile_action" />