mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-14 09:13:42 +01:00
Add proper media add icon to media-send.
This commit is contained in:
committed by
Greyson Parrelli
parent
752fb39719
commit
25bd414cbf
@@ -31,6 +31,7 @@ import org.signal.core.ui.R
|
||||
* Signal icon library with all available icons.
|
||||
*/
|
||||
enum class SignalIcons(private val icon: SignalIcon) : SignalIcon by icon {
|
||||
AlbumPlus(icon(R.drawable.symbol_album_plus_24)),
|
||||
ArrowStart(icon(R.drawable.symbol_arrow_start_24)),
|
||||
ArrowEnd(icon(R.drawable.symbol_arrow_end_24)),
|
||||
At(icon(R.drawable.symbol_at_24)),
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M11.3 20.1c-1.65 0-2.33-0.01-2.75-0.23-0.4-0.2-0.72-0.52-0.92-0.92-0.22-0.42-0.23-1.1-0.23-2.75v-3.9c0-1.65 0.02-2.34 0.23-2.75 0.21-0.41 0.52-0.72 0.92-0.93C8.98 8.41 9.66 8.4 11.3 8.4h5.9c1.65 0 2.34 0.01 2.75 0.22 0.41 0.21 0.72 0.52 0.93 0.93 0.21 0.41 0.22 1.1 0.22 2.75v3.9c0 1.64-0.01 2.32-0.22 2.75-0.21 0.4-0.52 0.71-0.93 0.92-0.41 0.21-1.1 0.23-2.75 0.23h-5.9Zm0 1.8h5.9c1.71 0 2.74-0.01 3.57-0.43 0.73-0.37 1.34-0.98 1.71-1.7 0.43-0.86 0.42-1.88 0.42-3.57v-3.9c0-1.7 0.01-2.72-0.42-3.57C22.11 8 21.5 7.39 20.77 7.02c-0.59-0.3-1.25-0.38-2.17-0.41-0.2-1.54-0.36-2.5-0.86-3.23-0.47-0.67-1.13-1.21-1.91-1.48-0.91-0.32-1.93-0.16-3.6 0.06l-6.1 0.8C4.46 2.98 3.44 3.11 2.65 3.65c-0.68 0.47-1.19 1.14-1.46 1.9-0.33 0.91-0.17 1.93 0.05 3.61l0.47 3.61c0.22 1.67 0.34 2.69 0.89 3.48 0.47 0.68 1.14 1.2 1.9 1.47 0.35 0.12 0.72 0.17 1.12 0.18 0.04 0.76 0.14 1.35 0.41 1.87 0.36 0.72 0.98 1.34 1.7 1.7 0.86 0.44 1.88 0.43 3.57 0.43ZM11 15.15h2.35v2.35c0 0.5 0.4 0.9 0.9 0.9s0.9-0.4 0.9-0.9v-2.35h2.35c0.5 0 0.9-0.4 0.9-0.9s-0.4-0.9-0.9-0.9h-2.35V11c0-0.5-0.4-0.9-0.9-0.9s-0.9 0.4-0.9 0.9v2.35H11c-0.5 0-0.9 0.4-0.9 0.9s0.4 0.9 0.9 0.9Zm-7.51-2.62L3.02 8.92c-0.22-1.67-0.3-2.3-0.13-2.77 0.15-0.42 0.42-0.77 0.78-1.02 0.41-0.28 1.05-0.37 2.7-0.59l6.1-0.8c1.65-0.22 2.31-0.3 2.76-0.14 0.42 0.15 0.76 0.41 1.03 0.8 0.24 0.35 0.36 0.92 0.53 2.2H11.3c-1.69 0-2.71-0.01-3.57 0.42C7.01 7.39 6.4 8 6.03 8.73 5.61 9.56 5.6 10.59 5.6 12.3v3.8c-0.2 0-0.36-0.03-0.5-0.08-0.42-0.15-0.77-0.43-1.02-0.79-0.27-0.39-0.37-1.05-0.59-2.7Z"/>
|
||||
</vector>
|
||||
+1
-1
@@ -131,7 +131,7 @@ internal fun MediaEditorToolbarSharedButtons(
|
||||
|
||||
if (isAddMediaVisible(state, editorState)) {
|
||||
MediaEditorToolbarButton(
|
||||
imageVector = SignalIcons.Plus.imageVector, // TODO [alex] - wrong art asset
|
||||
imageVector = SignalIcons.AlbumPlus.imageVector,
|
||||
onClick = { onEvent(MediaEditScreenEvents.NavigateToGallery) },
|
||||
modifier = Modifier.testTag(TestTags.MEDIA_EDITOR_TOOLBAR_ADD_MEDIA_BUTTON)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user