Changing color of the live location icon

This commit is contained in:
Maxime Naturel 2022-03-02 15:00:16 +01:00
parent fb764028c9
commit 8bcc594320
4 changed files with 9 additions and 4 deletions

View File

@ -139,4 +139,8 @@
<color name="vctr_presence_indicator_offline_light">@color/palette_gray_100</color>
<color name="vctr_presence_indicator_offline_dark">@color/palette_gray_450</color>
<!-- Location sharing colors -->
<attr name="vctr_live_location" format="color" />
<color name="vctr_live_location_light">@color/palette_prune</color>
<color name="vctr_live_location_dark">@color/palette_prune</color>
</resources>

View File

@ -145,6 +145,8 @@
<item name="android:actionButtonStyle">@style/Widget.Vector.ActionButton</item>
<!-- Location sharing -->
<item name="vctr_live_location">@color/vctr_live_location_dark</item>
</style>
<style name="Theme.Vector.Dark" parent="Base.Theme.Vector.Dark" />

View File

@ -146,6 +146,8 @@
<item name="android:actionButtonStyle">@style/Widget.Vector.ActionButton</item>
<!-- Location sharing -->
<item name="vctr_live_location">@color/vctr_live_location_dark</item>
</style>
<style name="Theme.Vector.Light" parent="Base.Theme.Vector.Light" />

View File

@ -6,9 +6,6 @@
android:layout_height="wrap_content"
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
<!-- TODO add strings and correct icons -->
<!-- TODO add dividers -->
<im.vector.app.features.location.view.LocationSharingOptionView
android:id="@+id/locationSharingOptionPinned"
android:layout_width="0dp"
@ -65,7 +62,7 @@
android:layout_height="wrap_content"
app:icon="@drawable/ic_attachment_location_live_white"
app:iconBackground="@drawable/circle"
app:iconBackgroundTint="?colorPrimary"
app:iconBackgroundTint="?vctr_live_location"
app:iconDescription="@string/a11y_location_share_option_user_live_icon"
app:iconPadding="3dp"
app:layout_constraintBottom_toBottomOf="parent"