Fixes bg and divider colors and top margin of recents

This commit is contained in:
ericdecanini 2022-09-05 18:39:12 +02:00
parent ad49b4513c
commit 5e00fe54ae
3 changed files with 10 additions and 4 deletions

View File

@ -45,6 +45,12 @@ class RecentRoomCarouselController @Inject constructor(
resources.displayMetrics
).toInt()
private val topPadding = TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_DIP,
12f,
resources.displayMetrics
).toInt()
private val itemSpacing = TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_DIP,
24f,
@ -63,13 +69,13 @@ class RecentRoomCarouselController @Inject constructor(
id("recents_carousel")
padding(Carousel.Padding(
host.hPadding,
0,
host.topPadding,
host.hPadding,
0,
host.itemSpacing)
)
onBind { _, view, _ ->
val colorSurface = MaterialColors.getColor(view, R.attr.colorSurface)
val colorSurface = MaterialColors.getColor(view, R.attr.vctr_toolbar_background)
view.setBackgroundColor(colorSurface)
}
withModelsFrom(data) { roomSummary ->

View File

@ -50,7 +50,7 @@
android:layout_height="1dp"
android:layout_marginStart="22dp"
android:layout_marginEnd="16dp"
android:background="?vctr_list_separator_system"
android:background="?vctr_list_separator"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

View File

@ -5,7 +5,7 @@
android:id="@+id/recentRoot"
android:layout_width="60dp"
android:layout_height="wrap_content"
android:background="?colorSurface"
android:background="?vctr_toolbar_background"
android:clickable="true"
android:focusable="true"
android:foreground="?attr/selectableItemBackground"