Merge pull request #5550 from vector-im/feature/adm/presence-theme-patch

Presence indicator theme attribute
This commit is contained in:
Benoit Marty 2022-03-21 15:45:36 +01:00 committed by GitHub
commit 579e6164d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 2 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_dark">@color/palette_gray_450</color>
<attr name="vctr_presence_indicator_online" format="color" />
<color name="vctr_presence_indicator_online_light">@color/palette_element_green</color>
<color name="vctr_presence_indicator_online_dark">@color/palette_element_green</color>
<!-- Location sharing colors -->
<attr name="vctr_live_location" format="color" />
<color name="vctr_live_location_light">@color/palette_prune</color>

View file

@ -53,5 +53,4 @@
<color name="element_room_01">@color/palette_verde</color>
<color name="element_room_02">@color/palette_azure</color>
<color name="element_room_03">@color/palette_grape</color>
</resources>

View file

@ -43,6 +43,7 @@
<!-- Presence Indicator colors -->
<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 -->
<item name="vctr_header_background">?vctr_system</item>

View file

@ -43,6 +43,7 @@
<!-- Presence Indicator colors -->
<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 -->
<item name="vctr_header_background">?vctr_system</item>

View file

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