Merge pull request #5913 from element-hq/feature/bma/compound_6.4.3

Sync compound tokens https://github.com/element-hq/compound-design-tokens/releases/tag/v6.4.3
This commit is contained in:
Benoit Marty 2025-12-17 12:57:58 +01:00 committed by GitHub
commit 13cd6e980e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 116 additions and 51 deletions

View file

@ -21,8 +21,6 @@ import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.Backspace
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
@ -40,6 +38,7 @@ import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.compose.ui.unit.times
import io.element.android.compound.theme.ElementTheme
import io.element.android.compound.tokens.generated.CompoundIcons
import io.element.android.libraries.designsystem.preview.ElementPreview
import io.element.android.libraries.designsystem.preview.PreviewsDayNight
import io.element.android.libraries.designsystem.text.toSp
@ -206,7 +205,8 @@ private fun PinKeypadBackButton(
onClick = onClick,
) {
Icon(
imageVector = Icons.AutoMirrored.Filled.Backspace,
modifier = Modifier.size(28.dp),
imageVector = CompoundIcons.BackspaceSolid(),
contentDescription = stringResource(CommonStrings.a11y_delete),
)
}

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc758c149db501d0ac5eb235cca1d63b67230aae40356e7ccca4c9d481a9ce17
size 216981
oid sha256:fa16f659aa3e7d05fa03a51d52faddc0c40c3ab52231687f8c6c8a4ba81ff6f0
size 219813

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db230bfe3d51527959d2a4f7c64a8cc79209dcfb752f077f84c0f5058d94f0bd
size 228829
oid sha256:72fb457dc50bf1a2261502fc1da15c01ab415344e9070354d38dc7b74234d790
size 232095

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4c6cd3ad1978c6f4e07d62b1edd08c5f32b3c498934d25af43932c50ef309fe0
size 230519
oid sha256:24cfe760717881ee71f36fae1fb201e74b2c32a2f9a5aef71ef21dab69ea5366
size 233212

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1d4f46c82f1504a983885a7d177900cd6d6f7729dce6851520cd7e471870ad2d
size 84955
oid sha256:a699170cabca6fb912d034a588b45961485afe6ef6d2c24f0ab79f10ae00c168
size 85629

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e2c1a78a88fad99c1fd9bc29d802ee8c2bdefec89626cd700c73f4909738aeb5
size 91022
oid sha256:dd4b2a40fcf02d6db29cb0bc371d93236b4a0be6d4446bab86358692cddb53f5
size 91692

View file

@ -52,6 +52,12 @@ object CompoundIcons {
@Composable fun Audio(): ImageVector {
return ImageVector.vectorResource(R.drawable.ic_compound_audio)
}
@Composable fun Backspace(): ImageVector {
return ImageVector.vectorResource(R.drawable.ic_compound_backspace)
}
@Composable fun BackspaceSolid(): ImageVector {
return ImageVector.vectorResource(R.drawable.ic_compound_backspace_solid)
}
@Composable fun Block(): ImageVector {
return ImageVector.vectorResource(R.drawable.ic_compound_block)
}
@ -301,6 +307,9 @@ object CompoundIcons {
@Composable fun LeftPanelClose(): ImageVector {
return ImageVector.vectorResource(R.drawable.ic_compound_left_panel_close)
}
@Composable fun LeftPanelOpen(): ImageVector {
return ImageVector.vectorResource(R.drawable.ic_compound_left_panel_open)
}
@Composable fun Link(): ImageVector {
return ImageVector.vectorResource(R.drawable.ic_compound_link)
}
@ -523,6 +532,9 @@ object CompoundIcons {
@Composable fun SpotlightView(): ImageVector {
return ImageVector.vectorResource(R.drawable.ic_compound_spotlight_view)
}
@Composable fun Sticker(): ImageVector {
return ImageVector.vectorResource(R.drawable.ic_compound_sticker)
}
@Composable fun Strikethrough(): ImageVector {
return ImageVector.vectorResource(R.drawable.ic_compound_strikethrough)
}
@ -643,6 +655,8 @@ object CompoundIcons {
AskToJoinSolid(),
Attachment(),
Audio(),
Backspace(),
BackspaceSolid(),
Block(),
Bold(),
Calendar(),
@ -726,6 +740,7 @@ object CompoundIcons {
Labs(),
Leave(),
LeftPanelClose(),
LeftPanelOpen(),
Link(),
Linux(),
ListBulleted(),
@ -800,6 +815,7 @@ object CompoundIcons {
Spinner(),
Spotlight(),
SpotlightView(),
Sticker(),
Strikethrough(),
SwitchCameraSolid(),
TakePhoto(),
@ -849,6 +865,8 @@ object CompoundIcons {
R.drawable.ic_compound_ask_to_join_solid,
R.drawable.ic_compound_attachment,
R.drawable.ic_compound_audio,
R.drawable.ic_compound_backspace,
R.drawable.ic_compound_backspace_solid,
R.drawable.ic_compound_block,
R.drawable.ic_compound_bold,
R.drawable.ic_compound_calendar,
@ -932,6 +950,7 @@ object CompoundIcons {
R.drawable.ic_compound_labs,
R.drawable.ic_compound_leave,
R.drawable.ic_compound_left_panel_close,
R.drawable.ic_compound_left_panel_open,
R.drawable.ic_compound_link,
R.drawable.ic_compound_linux,
R.drawable.ic_compound_list_bulleted,
@ -1006,6 +1025,7 @@ object CompoundIcons {
R.drawable.ic_compound_spinner,
R.drawable.ic_compound_spotlight,
R.drawable.ic_compound_spotlight_view,
R.drawable.ic_compound_sticker,
R.drawable.ic_compound_strikethrough,
R.drawable.ic_compound_switch_camera_solid,
R.drawable.ic_compound_take_photo,

View file

@ -0,0 +1,14 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:autoMirrored="true"
android:viewportWidth="24"
android:viewportHeight="24">
<group>
<clip-path
android:pathData="M0,0h24v24H0z"/>
<path
android:pathData="M21.167,3.75L7.417,3.75c-0.633,0 -1.128,0.32 -1.458,0.807L1,12l4.96,7.434c0.33,0.486 0.824,0.816 1.457,0.816h13.75A1.84,1.84 0,0 0,23 18.417L23,5.583a1.84,1.84 0,0 0,-1.833 -1.833m0,14.667L7.48,18.417L3.2,12l4.272,-6.417h13.695zM10.542,16.583 L13.833,13.293 17.124,16.583 18.417,15.291L15.126,12l3.29,-3.29 -1.292,-1.293 -3.29,3.29 -3.291,-3.29L9.25,8.709 12.54,12l-3.29,3.29z"
android:fillColor="#FF000000"/>
</group>
</vector>

View file

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:autoMirrored="true"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M21.15,4H7.283c-0.638,0 -1.137,0.311 -1.47,0.782l-4.66,6.73a0.87,0.87 0,0 0,0 0.986l4.66,6.72c0.333,0.462 0.832,0.782 1.47,0.782h13.869C22.168,20 23,19.2 23,18.222V5.778C23,4.8 22.168,4 21.15,4m-3.42,11.822a0.947,0.947 0,0 1,-1.304 0l-2.672,-2.569 -2.672,2.57a0.947,0.947 0,0 1,-1.303 0,0.86 0.86,0 0,1 0,-1.254L12.45,12 9.779,9.431a0.86,0.86 0,0 1,0 -1.253,0.947 0.947,0 0,1 1.303,0l2.672,2.569 2.672,-2.57a0.947,0.947 0,0 1,1.304 0c0.36,0.347 0.36,0.907 0,1.254L15.058,12l2.672,2.569a0.877,0.877 0,0 1,0 1.253"
android:fillColor="#FF000000"/>
</vector>

View file

@ -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:pathData="M12.5,9.2v5.6q0,0.35 0.3,0.475t0.55,-0.125l2.45,-2.45q0.3,-0.3 0.3,-0.7t-0.3,-0.7l-2.45,-2.45q-0.25,-0.25 -0.55,-0.125t-0.3,0.475M5,19q-0.824,0 -1.412,-0.587A1.93,1.93 0,0 1,3 17L3,7q0,-0.824 0.587,-1.412A1.93,1.93 0,0 1,5 5h14q0.824,0 1.413,0.588Q21,6.175 21,7v10q0,0.824 -0.587,1.413A1.93,1.93 0,0 1,19 19zM8,17L8,7L5,7v10zM10,17h9L19,7h-9z"
android:fillColor="#FF000000"/>
</vector>

View file

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M17,2a5,5 0,0 1,5 4.999v5.335a5,5 0,0 1,-1.58 3.647l-4.978,4.667A5,5 0,0 1,12.023 22L7,22l-0.258,-0.007A5,5 0,0 1,2 17L2,7a5,5 0,0 1,5 -5zM7,4a3,3 0,0 0,-3 3v10a3,3 0,0 0,2.999 3L12,20v-4a4,4 0,0 1,4 -4h4L20,6.999A3,3 0,0 0,17 4zM16,14a2,2 0,0 0,-2 2v3.251l0.074,-0.062 4.978,-4.666q0.252,-0.238 0.441,-0.523z"
android:fillColor="#FF000000"
android:fillType="evenOdd"/>
</vector>

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:24ebbb52fb801813c07dc602f95917d8d7a386e019526c4e32c22ded17ae5f1c
size 27992
oid sha256:3e041bd0f0506fbf4abfeb18fcbd9f84bdd0004d56ebb679e4c7606a6af5a253
size 28009

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6cac52c4f2ff9e5c35cc527a6e1dfaaa38ba724747f3eeb25b401ea857dc2e17
size 26854
oid sha256:cc2f12e5f13d92c2188c687c67be0dea1fb04420ade868674e2a75e93a664dd0
size 26877

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b5d6f0ad82c8b790bce7044b61f70cade02a90d96a3cf0b70fc42461d78cdada
size 36052
oid sha256:8f57aec639b101e318a50fbed53787ddeecaa36f132d45fccd815d8e44db2a17
size 36120

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d901fb7ed307f0375b66aeb2bfd10b087e7da54b741116410715957e78693ed2
size 36456
oid sha256:3aa45a9733f3b076b28b84675dbc70439c3271b4881eb73ff7ca73e338b2e1cd
size 36529

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9306676d3b7cda6cd5633703d43cd7d676debd133df55e5f9b367cf483cca6d6
size 37377
oid sha256:8d84f2ab82c4fc7e32a039cbdee38de33188afe0381ed02eb9facd8a5c6e3fe5
size 37448

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d72404ba8feabc3136da770f3bb6089f3fb5491b9aa1c5430b3fe222582041ee
size 40727
oid sha256:9d68eaab539ae2c98599808a22c6448f388bebb95e7f2b8130d77247e07ac6fc
size 40774

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc66e46453be2527b13576c0c823de41a577dbe25d9c5c3ceae7129fc38a27ff
size 33750
oid sha256:d44c3ebbdebf8303f324f687ac667037033bd305294afe56d86094acf8d04467
size 33817

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:501929bec8cb96c367c6d4e39b635accd010df8d51d8b5b811c393ba88e055f0
size 38013
oid sha256:971856e46c73fba7f667a3a5e3a11296d8468cd0fab1b011f14d9e63d7416689
size 38058

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:148eac0a83edaf736bcc5bfd2ad6c49d2658460a0a0e233f6aec86db0ed576b4
size 30198
oid sha256:6eaab5049e84445db1e187558263279f55a51cd132b17a28adfaa81e9d6b1049
size 30243

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0ab36754fbbf897c817f5a38e98548492194f91aab482684f907451543ff5bff
size 30357
oid sha256:0eafbb6bb63c629fb74cc26219d51dc7221935d0a0abc7a106bc63d248456427
size 30401

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:730a61f81f4f2e1b9f3bd1767d8e7a4e6dd05453ff58ec895938df8270a3288a
size 34840
oid sha256:d511220a0034d6ac1eacd16500170e380f4158dca76224814f042fed60cc5b4a
size 34878

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5967fca9544fe9fd0db9c8837a1c4e4a819837b87c6ea21f9d79b337a8dc02e9
size 35229
oid sha256:ad01f3bc714511d54bc0110cac4bb069a6c5d2c4328976981bbe473f3dd30146
size 35268

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:801536182916e33a93d8e2da80b4dbe5cdeeacd772f358796bfc6070d0137910
size 36013
oid sha256:dba083c2aecd51cd697e71feb812411ca5f818931a7977a49ff6e2e348ad6b31
size 36050

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7c86cc2691774d836e029bcfdd080c6db002aeb4c544cc9426755dd7670e8133
size 37630
oid sha256:3ad40bf331b6039ee7a9214bf95628898c590ecb655d7e4695f84d49ec3756ea
size 37675

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e80eb2fb94a97a947e2d83b1cd11bdd76c32c2266a382233f10911a00e456374
size 32649
oid sha256:d0cb1f24daf8204ee0e4168b7adbafdfd5ea005ce9e1381e3951c86c2d6803f9
size 32689

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fbe5723853d3d495f54c33bfd63403a8ca76b76a44edec4cd135218462721567
size 35178
oid sha256:1c8f6a181d08773e96a500b979cfe6510b6522c1f1258d03d8e259ea638a1305
size 35222

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ee14cfd4edcdfd4aca7e455a1179549b2c7bf17d5686bc22d7e1fad049d21883
size 27614
oid sha256:1f28a59217041e6078c910ed3da4f21987dedd04c958acc666cba37682a4b5bc
size 27662

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:44fd8f19fd371f3c8127fd85eed867b73b234f32ce94b777b38dd04b29e97682
size 27494
oid sha256:267b09143f52c5fca826d87b969a1f10756e757d134bced4aeef25725bfadbcb
size 27552

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:22f7a2f98e8a7deaacaaeb75233cf1cb006c79c8e108b3c000190ac7ab006083
size 103743
oid sha256:813b2ee132d7de92e384b185dea13b366a6760095e03c52a9f127bc21402c383
size 105960

View file

@ -10,6 +10,8 @@ files = [
"ic_compound_arrow_right.xml",
"ic_compound_arrow_up_right.xml",
"ic_compound_attachment.xml",
"ic_compound_backspace.xml",
"ic_compound_backspace_solid.xml",
"ic_compound_block.xml",
"ic_compound_chart.xml",
"ic_compound_chat.xml",