You've already forked element-android
mirror of
https://github.com/vector-im/element-android.git
synced 2025-08-06 03:42:41 +03:00
Changing color of the live location icon
This commit is contained in:
@@ -139,4 +139,8 @@
|
|||||||
<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>
|
||||||
|
|
||||||
|
<!-- 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>
|
</resources>
|
||||||
|
@@ -145,6 +145,8 @@
|
|||||||
|
|
||||||
<item name="android:actionButtonStyle">@style/Widget.Vector.ActionButton</item>
|
<item name="android:actionButtonStyle">@style/Widget.Vector.ActionButton</item>
|
||||||
|
|
||||||
|
<!-- Location sharing -->
|
||||||
|
<item name="vctr_live_location">@color/vctr_live_location_dark</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.Vector.Dark" parent="Base.Theme.Vector.Dark" />
|
<style name="Theme.Vector.Dark" parent="Base.Theme.Vector.Dark" />
|
||||||
|
@@ -146,6 +146,8 @@
|
|||||||
|
|
||||||
<item name="android:actionButtonStyle">@style/Widget.Vector.ActionButton</item>
|
<item name="android:actionButtonStyle">@style/Widget.Vector.ActionButton</item>
|
||||||
|
|
||||||
|
<!-- Location sharing -->
|
||||||
|
<item name="vctr_live_location">@color/vctr_live_location_dark</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.Vector.Light" parent="Base.Theme.Vector.Light" />
|
<style name="Theme.Vector.Light" parent="Base.Theme.Vector.Light" />
|
||||||
|
@@ -6,9 +6,6 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
|
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
|
||||||
|
|
||||||
<!-- TODO add strings and correct icons -->
|
|
||||||
<!-- TODO add dividers -->
|
|
||||||
|
|
||||||
<im.vector.app.features.location.view.LocationSharingOptionView
|
<im.vector.app.features.location.view.LocationSharingOptionView
|
||||||
android:id="@+id/locationSharingOptionPinned"
|
android:id="@+id/locationSharingOptionPinned"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
@@ -65,7 +62,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:icon="@drawable/ic_attachment_location_live_white"
|
app:icon="@drawable/ic_attachment_location_live_white"
|
||||||
app:iconBackground="@drawable/circle"
|
app:iconBackground="@drawable/circle"
|
||||||
app:iconBackgroundTint="?colorPrimary"
|
app:iconBackgroundTint="?vctr_live_location"
|
||||||
app:iconDescription="@string/a11y_location_share_option_user_live_icon"
|
app:iconDescription="@string/a11y_location_share_option_user_live_icon"
|
||||||
app:iconPadding="3dp"
|
app:iconPadding="3dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
Reference in New Issue
Block a user