Merge pull request #5513 from chagai95/add-presence-indicator-online

add  presence indicator online
This commit is contained in:
Adam Brown 2022-03-15 17:58:02 +00:00 committed by GitHub
commit c257488ca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 1 deletions

1
changelog.d/5513.misc Normal file
View File

@ -0,0 +1 @@
Added online presence indicator attribute online to match offline styling

View File

@ -122,6 +122,10 @@
<color name="vctr_presence_indicator_offline_light">@color/palette_gray_100</color> <color name="vctr_presence_indicator_offline_light">@color/palette_gray_100</color>
<color name="vctr_presence_indicator_offline_dark">@color/palette_gray_450</color> <color name="vctr_presence_indicator_offline_dark">@color/palette_gray_450</color>
<attr name="vctr_presence_indicator_online" format="color" />
<color name="vctr_presence_indicator_online_light">@color/presence_online</color>
<color name="vctr_presence_indicator_online_dark">@color/presence_online</color>
<!-- Location sharing colors --> <!-- Location sharing colors -->
<attr name="vctr_live_location" format="color" /> <attr name="vctr_live_location" format="color" />
<color name="vctr_live_location_light">@color/palette_prune</color> <color name="vctr_live_location_light">@color/palette_prune</color>

View File

@ -54,4 +54,7 @@
<color name="element_room_02">@color/palette_azure</color> <color name="element_room_02">@color/palette_azure</color>
<color name="element_room_03">@color/palette_grape</color> <color name="element_room_03">@color/palette_grape</color>
<!-- For presence -->
<color name="presence_online">@color/palette_element_green</color>
</resources> </resources>

View File

@ -43,6 +43,7 @@
<!-- Presence Indicator colors --> <!-- Presence Indicator colors -->
<item name="vctr_presence_indicator_offline">@color/vctr_presence_indicator_offline_dark</item> <item name="vctr_presence_indicator_offline">@color/vctr_presence_indicator_offline_dark</item>
<item name="vctr_presence_indicator_online">@color/vctr_presence_indicator_online_dark</item>
<!-- Some aliases --> <!-- Some aliases -->
<item name="vctr_header_background">?vctr_system</item> <item name="vctr_header_background">?vctr_system</item>

View File

@ -43,6 +43,7 @@
<!-- Presence Indicator colors --> <!-- Presence Indicator colors -->
<item name="vctr_presence_indicator_offline">@color/vctr_presence_indicator_offline_light</item> <item name="vctr_presence_indicator_offline">@color/vctr_presence_indicator_offline_light</item>
<item name="vctr_presence_indicator_online">@color/vctr_presence_indicator_online_light</item>
<!-- Some aliases --> <!-- Some aliases -->
<item name="vctr_header_background">?vctr_system</item> <item name="vctr_header_background">?vctr_system</item>

View File

@ -16,7 +16,7 @@
<path <path
android:pathData="M0 0V12H11.8857V0" android:pathData="M0 0V12H11.8857V0"
android:fillColor="#0DBD8B" android:fillColor="?vctr_presence_indicator_online"
/> />
</group> </group>