File tree 6 files changed +13
-5
lines changed
library/ui-styles/src/main/res/values
java/im/vector/app/features/home
6 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 56
56
<!-- Used for item separators in list, on surface -->
57
57
<attr name =" vctr_list_separator_on_surface" format =" color" />
58
58
59
+ <!-- Background color used for:
60
+ - unread badge background for a room item in the room list
61
+ - start unread indicator for a room item in the room list
62
+ - Background for unread badge background in the bottom navigation -->
63
+ <attr name =" vctr_unread_background" format =" color" />
64
+
59
65
<!-- Other colors, which are not in the palette -->
60
66
<attr name =" vctr_fab_label_bg" format =" color" />
61
67
<color name =" vctr_fab_label_bg_light" >@android:color/white</color >
Original file line number Diff line number Diff line change 46
46
<!-- Presence Indicator colors -->
47
47
<item name =" vctr_presence_indicator_offline" >@color/vctr_presence_indicator_offline_dark</item >
48
48
49
- <!-- Some alias -->
49
+ <!-- Some aliases -->
50
50
<item name =" vctr_header_background" >?vctr_system</item >
51
51
<item name =" vctr_list_separator" >?vctr_content_quinary</item >
52
52
<item name =" vctr_list_separator_system" >?vctr_system</item >
53
53
<item name =" vctr_list_separator_on_surface" >?vctr_system</item >
54
+ <item name =" vctr_unread_background" >?vctr_content_tertiary</item >
54
55
55
56
<!-- Material color -->
56
57
<item name =" colorPrimary" >@color/element_accent_dark</item >
Original file line number Diff line number Diff line change 46
46
<!-- Presence Indicator colors -->
47
47
<item name =" vctr_presence_indicator_offline" >@color/vctr_presence_indicator_offline_light</item >
48
48
49
- <!-- Some alias -->
49
+ <!-- Some aliases -->
50
50
<item name =" vctr_header_background" >?vctr_system</item >
51
51
<item name =" vctr_list_separator" >?vctr_content_quinary</item >
52
52
<item name =" vctr_list_separator_system" >?vctr_system</item >
53
53
<item name =" vctr_list_separator_on_surface" >?vctr_system</item >
54
+ <item name =" vctr_unread_background" >?vctr_content_tertiary</item >
54
55
55
56
<!-- Material color -->
56
57
<item name =" colorPrimary" >@color/element_accent_light</item >
Original file line number Diff line number Diff line change @@ -457,7 +457,7 @@ class HomeDetailFragment @Inject constructor(
457
457
backgroundColor = if (highlight) {
458
458
ThemeUtils .getColor(requireContext(), R .attr.colorError)
459
459
} else {
460
- ThemeUtils .getColor(requireContext(), R .attr.vctr_content_secondary )
460
+ ThemeUtils .getColor(requireContext(), R .attr.vctr_unread_background )
461
461
}
462
462
}
463
463
Original file line number Diff line number Diff line change 4
4
5
5
<corners android : radius =" 40dp" />
6
6
7
- <solid android : color =" ?vctr_content_secondary " />
7
+ <solid android : color =" ?vctr_unread_background " />
8
8
</shape >
Original file line number Diff line number Diff line change 15
15
android : id =" @+id/roomUnreadIndicator"
16
16
android : layout_width =" 4dp"
17
17
android : layout_height =" 0dp"
18
- android : background =" ?vctr_content_secondary "
18
+ android : background =" ?vctr_unread_background "
19
19
android : visibility =" gone"
20
20
app : layout_constraintBottom_toBottomOf =" parent"
21
21
app : layout_constraintStart_toStartOf =" parent"
You can’t perform that action at this time.
0 commit comments