Fixes bg and divider colors and top margin of recents
This commit is contained in:
parent
ad49b4513c
commit
5e00fe54ae
@ -45,6 +45,12 @@ class RecentRoomCarouselController @Inject constructor(
|
|||||||
resources.displayMetrics
|
resources.displayMetrics
|
||||||
).toInt()
|
).toInt()
|
||||||
|
|
||||||
|
private val topPadding = TypedValue.applyDimension(
|
||||||
|
TypedValue.COMPLEX_UNIT_DIP,
|
||||||
|
12f,
|
||||||
|
resources.displayMetrics
|
||||||
|
).toInt()
|
||||||
|
|
||||||
private val itemSpacing = TypedValue.applyDimension(
|
private val itemSpacing = TypedValue.applyDimension(
|
||||||
TypedValue.COMPLEX_UNIT_DIP,
|
TypedValue.COMPLEX_UNIT_DIP,
|
||||||
24f,
|
24f,
|
||||||
@ -63,13 +69,13 @@ class RecentRoomCarouselController @Inject constructor(
|
|||||||
id("recents_carousel")
|
id("recents_carousel")
|
||||||
padding(Carousel.Padding(
|
padding(Carousel.Padding(
|
||||||
host.hPadding,
|
host.hPadding,
|
||||||
0,
|
host.topPadding,
|
||||||
host.hPadding,
|
host.hPadding,
|
||||||
0,
|
0,
|
||||||
host.itemSpacing)
|
host.itemSpacing)
|
||||||
)
|
)
|
||||||
onBind { _, view, _ ->
|
onBind { _, view, _ ->
|
||||||
val colorSurface = MaterialColors.getColor(view, R.attr.colorSurface)
|
val colorSurface = MaterialColors.getColor(view, R.attr.vctr_toolbar_background)
|
||||||
view.setBackgroundColor(colorSurface)
|
view.setBackgroundColor(colorSurface)
|
||||||
}
|
}
|
||||||
withModelsFrom(data) { roomSummary ->
|
withModelsFrom(data) { roomSummary ->
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:layout_marginStart="22dp"
|
android:layout_marginStart="22dp"
|
||||||
android:layout_marginEnd="16dp"
|
android:layout_marginEnd="16dp"
|
||||||
android:background="?vctr_list_separator_system"
|
android:background="?vctr_list_separator"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
android:id="@+id/recentRoot"
|
android:id="@+id/recentRoot"
|
||||||
android:layout_width="60dp"
|
android:layout_width="60dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?colorSurface"
|
android:background="?vctr_toolbar_background"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:foreground="?attr/selectableItemBackground"
|
android:foreground="?attr/selectableItemBackground"
|
||||||
|
Loading…
Reference in New Issue
Block a user