diff --git a/vector/src/main/java/im/vector/app/features/roommemberprofile/RoomMemberProfileController.kt b/vector/src/main/java/im/vector/app/features/roommemberprofile/RoomMemberProfileController.kt index 9ea9f69383..86449cac8a 100644 --- a/vector/src/main/java/im/vector/app/features/roommemberprofile/RoomMemberProfileController.kt +++ b/vector/src/main/java/im/vector/app/features/roommemberprofile/RoomMemberProfileController.kt @@ -21,6 +21,7 @@ import com.airbnb.epoxy.TypedEpoxyController import im.vector.app.R import im.vector.app.core.epoxy.profiles.buildProfileAction 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.ui.list.genericFooterItem import org.matrix.android.sdk.api.session.Session @@ -31,6 +32,7 @@ import javax.inject.Inject class RoomMemberProfileController @Inject constructor( private val stringProvider: StringProvider, + private val colorProvider: ColorProvider, private val session: Session ) : TypedEpoxyController() { @@ -146,6 +148,7 @@ class RoomMemberProfileController @Inject constructor( id("verify_footer") text(host.stringProvider.getString(R.string.room_profile_encrypted_subtitle)) centered(false) + backgroundColor(host.colorProvider.getColorFromAttribute(R.attr.vctr_header_background)) } } } else { @@ -163,6 +166,7 @@ class RoomMemberProfileController @Inject constructor( id("verify_footer_not_encrypted") text(host.stringProvider.getString(R.string.room_profile_not_encrypted_subtitle)) centered(false) + backgroundColor(host.colorProvider.getColorFromAttribute(R.attr.vctr_header_background)) } } } diff --git a/vector/src/main/res/layout/fragment_matrix_profile.xml b/vector/src/main/res/layout/fragment_matrix_profile.xml index 4fb1328abc..9c165bfc2a 100644 --- a/vector/src/main/res/layout/fragment_matrix_profile.xml +++ b/vector/src/main/res/layout/fragment_matrix_profile.xml @@ -99,6 +99,7 @@ android:id="@+id/matrixProfileRecyclerView" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="?vctr_header_background" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:listitem="@layout/item_profile_action" /> @@ -106,4 +107,4 @@ android:id="@+id/waiting_view" layout="@layout/merge_overlay_waiting_view" /> - \ No newline at end of file + diff --git a/vector/src/main/res/layout/fragment_room_setting_generic.xml b/vector/src/main/res/layout/fragment_room_setting_generic.xml index 7d63c140f3..8d286245e5 100644 --- a/vector/src/main/res/layout/fragment_room_setting_generic.xml +++ b/vector/src/main/res/layout/fragment_room_setting_generic.xml @@ -82,6 +82,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:overScrollMode="always" + android:background="?vctr_header_background" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:listitem="@layout/item_profile_action" />