Improve unread line color on light theme
Change-Id: I3b4c54354555433fd9b3e6a53ff8440c8c05f359
This commit is contained in:
parent
126dfd7ded
commit
cb3658859e
@ -46,6 +46,8 @@
|
||||
<attr name="conference_animation_from" format="color" />
|
||||
<attr name="conference_animation_to" format="color" />
|
||||
|
||||
<attr name="unread_line_unimportant" format="color" />
|
||||
|
||||
</declare-styleable>
|
||||
|
||||
</resources>
|
||||
|
@ -154,6 +154,7 @@
|
||||
<item name="room_color_hash_02">@color/element_room_02</item>
|
||||
<item name="room_color_hash_03">@color/element_room_03</item>
|
||||
<item name="vctr_presence_indicator_online">?colorAccent</item>
|
||||
<item name="unread_line_unimportant">?vctr_content_tertiary</item>
|
||||
|
||||
<item name="android:statusBarColor">@color/android_status_bar_background_dark</item>
|
||||
<item name="android:navigationBarColor">@color/android_navigation_bar_background_dark</item>
|
||||
|
@ -154,6 +154,7 @@
|
||||
<item name="room_color_hash_02">@color/element_room_02</item>
|
||||
<item name="room_color_hash_03">@color/element_room_03</item>
|
||||
<item name="vctr_presence_indicator_online">?colorAccent</item>
|
||||
<item name="unread_line_unimportant">?vctr_content_secondary</item>
|
||||
|
||||
<!-- Use dark color, to have enough contrast with icons color. windowLightStatusBar is only available in API 23+ -->
|
||||
<item name="android:statusBarColor">@color/android_status_bar_background_dark</item>
|
||||
|
@ -83,7 +83,7 @@ abstract class RoomSummaryItem : VectorEpoxyModel<RoomSummaryItem.Holder>() {
|
||||
when {
|
||||
showHighlighted -> ThemeUtils.getColor(holder.unreadIndentIndicator.context, R.attr.colorError)
|
||||
unreadNotificationCount > 0 || markedUnread -> ThemeUtils.getColor(holder.unreadIndentIndicator.context, R.attr.colorAccent)
|
||||
hasUnreadMessage -> ThemeUtils.getColor(holder.unreadIndentIndicator.context, R.attr.vctr_content_tertiary) // same color as unread counter bg would be hard to spot
|
||||
hasUnreadMessage -> ThemeUtils.getColor(holder.unreadIndentIndicator.context, R.attr.unread_line_unimportant)
|
||||
else -> 0
|
||||
}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user