Updated on 2026-08-14
This commit is contained in:
parent
081128f2cf
commit
63b07cccc3
53 changed files with 614 additions and 464 deletions
|
|
@ -27,16 +27,18 @@ fun BlockItem(model: BlockUM, modifier: Modifier = Modifier) {
|
|||
verticalAlignment = Alignment.CenterVertically,
|
||||
horizontalArrangement = Arrangement.spacedBy(TangemTheme.dimens.spacing12, Alignment.Start),
|
||||
) {
|
||||
Icon(
|
||||
modifier = Modifier.size(TangemTheme.dimens.size24),
|
||||
painter = painterResource(id = model.iconRes),
|
||||
tint = when (model.accentType) {
|
||||
BlockUM.AccentType.NONE -> TangemTheme.colors.icon.secondary
|
||||
BlockUM.AccentType.ACCENT -> TangemTheme.colors.text.accent
|
||||
BlockUM.AccentType.WARNING -> TangemTheme.colors.text.warning
|
||||
},
|
||||
contentDescription = null,
|
||||
)
|
||||
if (model.iconRes != null) {
|
||||
Icon(
|
||||
modifier = Modifier.size(TangemTheme.dimens.size24),
|
||||
painter = painterResource(id = model.iconRes),
|
||||
tint = when (model.accentType) {
|
||||
BlockUM.AccentType.NONE -> TangemTheme.colors.icon.secondary
|
||||
BlockUM.AccentType.ACCENT -> TangemTheme.colors.text.accent
|
||||
BlockUM.AccentType.WARNING -> TangemTheme.colors.text.warning
|
||||
},
|
||||
contentDescription = null,
|
||||
)
|
||||
}
|
||||
|
||||
Text(
|
||||
modifier = Modifier.weight(1f),
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import javax.annotation.concurrent.Immutable
|
|||
|
||||
data class BlockUM(
|
||||
val text: TextReference,
|
||||
@DrawableRes val iconRes: Int,
|
||||
@DrawableRes val iconRes: Int?,
|
||||
val onClick: () -> Unit,
|
||||
val accentType: AccentType = AccentType.NONE,
|
||||
val endContent: EndContent = EndContent.None,
|
||||
|
|
|
|||
9
core/ui/src/main/res/drawable/ic_backup_repeat_24.xml
Normal file
9
core/ui/src/main/res/drawable/ic_backup_repeat_24.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:autoMirrored="true" android:height="24dp" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:pathData="M2.471,8.909C2.673,8.559 3.179,8.559 3.382,8.909L5.743,13.001C5.945,13.352 5.693,13.79 5.288,13.79H3.922C4.143,14.787 4.547,15.739 5.12,16.597C6.029,17.957 7.322,19.018 8.834,19.645C10.345,20.271 12.009,20.434 13.614,20.115C15.219,19.796 16.693,19.008 17.851,17.851C18.163,17.538 18.669,17.538 18.981,17.851C19.294,18.163 19.294,18.669 18.981,18.981C17.601,20.362 15.841,21.303 13.926,21.685C12.011,22.065 10.026,21.869 8.222,21.122C6.417,20.375 4.875,19.109 3.79,17.485C3.04,16.363 2.532,15.105 2.29,13.79H0.563C0.159,13.79 -0.094,13.351 0.108,13.001L2.471,8.909Z"/>
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:fillType="evenOdd" android:pathData="M11.999,7.391C13.442,7.391 14.612,8.561 14.612,10.004V10.702C14.612,10.763 14.606,10.822 14.602,10.882C15.113,11.095 15.515,11.51 15.708,12.032C15.832,12.368 15.832,12.787 15.832,13.626C15.832,14.464 15.832,14.884 15.708,15.219C15.505,15.767 15.073,16.2 14.525,16.402C14.19,16.526 13.77,16.526 12.932,16.526H11.068C10.229,16.526 9.81,16.526 9.474,16.402C8.926,16.2 8.494,15.767 8.292,15.219C8.168,14.884 8.168,14.464 8.168,13.626C8.168,12.787 8.168,12.368 8.292,12.032C8.484,11.511 8.885,11.097 9.394,10.883C9.39,10.823 9.386,10.763 9.386,10.702V10.004C9.386,8.561 10.556,7.391 11.999,7.391ZM11.999,8.994C11.442,8.994 10.989,9.447 10.989,10.004V10.702C10.989,10.71 10.99,10.717 10.99,10.725H13.006C13.006,10.717 13.008,10.71 13.008,10.702V10.004C13.008,9.447 12.556,8.994 11.999,8.994Z"/>
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:pathData="M10.074,2.315C11.989,1.935 13.974,2.131 15.778,2.878C17.582,3.625 19.125,4.891 20.21,6.515C21.061,7.788 21.6,9.238 21.793,10.746H23.434C23.839,10.746 24.092,11.184 23.889,11.535L21.528,15.627C21.326,15.977 20.82,15.977 20.617,15.627L18.255,11.535C18.052,11.184 18.305,10.746 18.71,10.746H20.178C19.995,9.555 19.555,8.413 18.88,7.403C17.971,6.043 16.678,4.982 15.166,4.355C13.654,3.729 11.99,3.566 10.386,3.885C8.781,4.204 7.306,4.992 6.149,6.149C5.837,6.462 5.331,6.461 5.018,6.149C4.706,5.837 4.706,5.331 5.018,5.019C6.399,3.638 8.159,2.696 10.074,2.315Z"/>
|
||||
|
||||
</vector>
|
||||
7
core/ui/src/main/res/drawable/ic_double_star_24.xml
Normal file
7
core/ui/src/main/res/drawable/ic_double_star_24.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:autoMirrored="true" android:height="24dp" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:pathData="M11,3L12.128,7.508C12.665,9.657 14.343,11.335 16.492,11.872L21,13L16.492,14.128C14.343,14.665 12.665,16.343 12.128,18.492L11,23L9.872,18.492C9.335,16.343 7.657,14.665 5.508,14.128L1,13L5.508,11.872C7.657,11.335 9.335,9.657 9.872,7.508L11,3Z"/>
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:pathData="M18,2L18.509,4.036C18.688,4.752 19.248,5.311 19.964,5.491L22,6L19.964,6.509C19.248,6.689 18.688,7.248 18.509,7.964L18,10L17.491,7.964C17.312,7.248 16.752,6.689 16.036,6.509L14,6L16.036,5.491C16.752,5.311 17.312,4.752 17.491,4.036L18,2Z"/>
|
||||
|
||||
</vector>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:autoMirrored="true" android:height="24dp" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:pathData="M8.019,15.148C9.252,15.148 10.337,15.769 10.997,16.713C11.076,16.826 11.117,16.884 11.168,16.91C11.219,16.937 11.283,16.938 11.409,16.938H18.121C18.302,16.937 18.493,16.937 18.653,16.959C18.84,16.985 19.069,17.049 19.26,17.244C19.372,17.359 19.437,17.496 19.475,17.593C19.515,17.698 19.545,17.812 19.566,17.921C19.61,18.139 19.631,18.388 19.633,18.628C19.635,18.867 19.618,19.12 19.575,19.345C19.554,19.457 19.524,19.575 19.48,19.685C19.44,19.79 19.373,19.925 19.26,20.041C19.069,20.236 18.84,20.302 18.653,20.327C18.57,20.339 18.313,20.343 18.087,20.346C17.901,20.348 17.807,20.349 17.743,20.402C17.679,20.455 17.661,20.547 17.625,20.728C17.542,21.146 17.415,21.773 17.387,21.86C17.337,22.015 17.251,22.198 17.074,22.347C16.895,22.496 16.698,22.548 16.535,22.568L14.904,22.563C14.718,22.538 14.488,22.473 14.297,22.278C14.108,22.085 14.047,21.855 14.023,21.671C14.001,21.51 14.001,21.318 14.001,21.132V20.818C14.001,20.597 14.001,20.486 13.933,20.417C13.864,20.348 13.752,20.349 13.531,20.349H11.68C11.534,20.349 11.46,20.348 11.404,20.382C11.349,20.416 11.311,20.487 11.236,20.628C10.621,21.789 9.416,22.586 8.019,22.586C5.989,22.586 4.365,20.908 4.365,18.866C4.365,16.824 5.989,15.148 8.019,15.148ZM8.079,17.692C7.433,17.692 6.91,18.219 6.91,18.867C6.911,19.515 7.434,20.041 8.079,20.041H8.09C8.735,20.041 9.258,19.515 9.259,18.867C9.259,18.219 8.736,17.692 8.09,17.692H8.079ZM18.411,7.852C20.246,7.852 21.197,8.794 21.197,10.612V16.551C21.111,16.385 20.992,16.19 20.826,15.994L20.691,15.846L20.573,15.731C19.978,15.187 19.316,15.031 18.928,14.977C18.766,14.955 18.6,14.945 18.457,14.94L18.123,14.938H12.124C11.103,13.847 9.651,13.148 8.021,13.148C5.64,13.148 3.651,14.617 2.805,16.66V10.612C2.805,8.794 3.756,7.852 5.591,7.852H18.411ZM17.325,4.606C17.936,4.606 18.242,4.607 18.482,4.708C18.796,4.84 19.045,5.089 19.177,5.403C19.272,5.63 19.276,5.915 19.276,6.456H4.72C4.72,5.915 4.725,5.63 4.819,5.403C4.951,5.089 5.2,4.84 5.514,4.708C5.754,4.607 6.06,4.606 6.671,4.606H17.325ZM15.203,1.414C16.009,1.414 16.411,1.415 16.729,1.549C17.141,1.723 17.47,2.052 17.644,2.466C17.729,2.669 17.757,2.908 17.768,3.265H6.136C6.147,2.908 6.175,2.669 6.26,2.466C6.433,2.052 6.762,1.723 7.175,1.549C7.492,1.415 7.895,1.414 8.7,1.414H15.203Z"/>
|
||||
|
||||
</vector>
|
||||
15
core/ui/src/main/res/drawable/ic_seed_phrase_24.xml
Normal file
15
core/ui/src/main/res/drawable/ic_seed_phrase_24.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:autoMirrored="true" android:height="24dp" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:pathData="M16.794,2.585C17.619,2.585 18.292,2.584 18.838,2.629C19.394,2.674 19.896,2.772 20.364,3.011C21.098,3.385 21.694,3.981 22.068,4.715C22.307,5.184 22.405,5.685 22.45,6.241C22.495,6.787 22.494,7.46 22.494,8.285C22.494,8.782 22.091,9.186 21.594,9.186C21.097,9.186 20.693,8.782 20.693,8.285C20.693,7.431 20.693,6.844 20.656,6.389C20.62,5.944 20.553,5.705 20.465,5.532C20.264,5.137 19.942,4.816 19.547,4.614C19.374,4.526 19.135,4.459 18.69,4.423C18.235,4.386 17.649,4.386 16.794,4.386H7.206C6.352,4.386 5.765,4.386 5.31,4.423C4.865,4.459 4.626,4.526 4.453,4.614C4.058,4.816 3.736,5.137 3.535,5.532C3.447,5.705 3.38,5.944 3.344,6.389C3.307,6.844 3.307,7.431 3.307,8.285V15.715C3.307,16.57 3.307,17.157 3.344,17.612C3.38,18.056 3.447,18.295 3.535,18.468C3.736,18.863 4.058,19.184 4.453,19.386C4.626,19.474 4.865,19.541 5.31,19.577C5.765,19.614 6.352,19.614 7.206,19.614H11.884C12.381,19.614 12.784,20.018 12.784,20.515C12.784,21.012 12.381,21.415 11.884,21.415H7.206C6.381,21.415 5.707,21.416 5.162,21.371C4.606,21.326 4.105,21.228 3.636,20.989C2.902,20.615 2.306,20.019 1.932,19.285C1.693,18.816 1.595,18.315 1.55,17.759C1.505,17.213 1.506,16.54 1.506,15.715V8.285C1.506,7.46 1.505,6.787 1.55,6.241C1.595,5.685 1.693,5.184 1.932,4.715C2.306,3.981 2.902,3.385 3.636,3.011C4.105,2.772 4.606,2.674 5.162,2.629C5.707,2.584 6.381,2.585 7.206,2.585H16.794Z"/>
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:pathData="M17.925,11.582C18.796,11.582 19.16,12.242 19.657,12.486C19.822,12.567 19.967,12.643 20.1,12.713C20.399,12.87 20.638,12.996 20.913,13.079C21.086,13.131 21.261,13.184 21.384,13.229C21.49,13.269 21.683,13.345 21.831,13.501C21.962,13.64 22.025,13.792 22.062,13.914C22.092,14.016 22.119,14.152 22.138,14.253C22.663,17.02 21.211,19.382 18.678,20.713C18.369,20.875 18.07,21.073 17.861,21.073C17.652,21.073 17.294,20.881 16.95,20.713C14.379,19.456 12.964,17.02 13.489,14.253C13.508,14.152 13.535,14.016 13.565,13.914C13.602,13.792 13.665,13.639 13.796,13.501C13.944,13.345 14.137,13.269 14.243,13.229C14.365,13.184 14.54,13.131 14.713,13.079C14.988,12.996 15.227,12.87 15.526,12.713C15.659,12.643 15.804,12.567 15.969,12.486C16.465,12.242 17.054,11.582 17.925,11.582Z"/>
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:pathData="M10.096,15.247C10.593,15.247 10.995,15.651 10.995,16.147C10.995,16.644 10.593,17.048 10.096,17.048H5.898C5.401,17.048 4.998,16.645 4.998,16.147C4.998,15.65 5.401,15.247 5.898,15.247H10.096Z"/>
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:pathData="M10.096,11.101C10.593,11.101 10.995,11.504 10.995,12.001C10.995,12.498 10.593,12.901 10.096,12.901H5.898C5.401,12.901 4.998,12.498 4.998,12.001C4.998,11.504 5.401,11.101 5.898,11.101H10.096Z"/>
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:pathData="M10.096,6.953C10.593,6.953 10.995,7.357 10.995,7.854C10.995,8.35 10.593,8.754 10.096,8.754H5.898C5.401,8.754 4.998,8.351 4.998,7.854C4.998,7.356 5.401,6.953 5.898,6.953H10.096Z"/>
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:pathData="M18.104,6.953C18.6,6.953 19.003,7.357 19.003,7.854C19.003,8.35 18.6,8.754 18.104,8.754H13.906C13.409,8.754 13.006,8.351 13.006,7.854C13.006,7.356 13.409,6.953 13.906,6.953H18.104Z"/>
|
||||
|
||||
</vector>
|
||||
9
core/ui/src/main/res/drawable/ic_smartphone_24.xml
Normal file
9
core/ui/src/main/res/drawable/ic_smartphone_24.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:autoMirrored="true" android:height="24dp" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:pathData="M9.75,6.5C12.814,6.5 14.346,6.5 15.298,7.525C16.25,8.551 16.25,10.2 16.25,13.5V22H3.25V13.5C3.25,10.2 3.25,8.551 4.202,7.525C5.154,6.5 6.686,6.5 9.75,6.5ZM7.25,16.88V18.862C7.25,19.26 7.25,19.46 7.331,19.612C7.402,19.746 7.515,19.855 7.654,19.923C7.813,20 8.02,20 8.435,20H8.916V16.88H7.25ZM10.583,16.88L10.584,17.102V20H11.064C11.479,20 11.687,20 11.846,19.923C11.985,19.855 12.098,19.746 12.169,19.612C12.25,19.46 12.25,19.26 12.25,18.862V16.88H10.583ZM8.435,14C8.02,14 7.813,14 7.654,14.077C7.515,14.145 7.402,14.254 7.331,14.388C7.25,14.54 7.25,14.739 7.25,15.138V15.56H12.25V15.138C12.25,14.739 12.25,14.54 12.169,14.388C12.098,14.254 11.985,14.145 11.846,14.077C11.687,14 11.48,14 11.065,14H8.435Z"/>
|
||||
|
||||
<path android:fillColor="#00000000" android:pathData="M8.5,9H11" android:strokeColor="#EBEBEB" android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="1.5"/>
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:pathData="M17.75,11.5H17.25V9.5C17.25,7.291 15.459,5.5 13.25,5.5H5.25V5C5.25,3.343 6.593,2 8.25,2H17.75C19.407,2 20.75,3.343 20.75,5V8.5C20.75,10.157 19.407,11.5 17.75,11.5Z"/>
|
||||
|
||||
</vector>
|
||||
5
core/ui/src/main/res/drawable/ic_tangem_card_24.xml
Normal file
5
core/ui/src/main/res/drawable/ic_tangem_card_24.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:autoMirrored="true" android:height="24dp" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">
|
||||
|
||||
<path android:fillColor="#1E1E1E" android:pathData="M18,5C19.657,5 21,6.343 21,8V16C21,17.657 19.657,19 18,19H6C4.343,19 3,17.657 3,16V8C3,6.343 4.343,5 6,5H18ZM9.2,11.86V14.173C9.2,14.637 9.201,14.869 9.291,15.047C9.371,15.203 9.496,15.33 9.652,15.409C9.83,15.5 10.063,15.5 10.527,15.5H11.066V11.86H9.2ZM12.934,11.86V15.5H13.473C13.937,15.5 14.17,15.5 14.348,15.409C14.503,15.33 14.629,15.203 14.709,15.047C14.799,14.869 14.8,14.637 14.8,14.173V11.86H12.934ZM10.527,8.5C10.063,8.5 9.83,8.5 9.652,8.591C9.496,8.671 9.37,8.797 9.291,8.953C9.201,9.131 9.2,9.363 9.2,9.827V10.32H14.8V9.827C14.8,9.363 14.799,9.131 14.709,8.953C14.629,8.797 14.503,8.67 14.348,8.591C14.17,8.5 13.937,8.5 13.473,8.5H10.527Z"/>
|
||||
|
||||
</vector>
|
||||
Loading…
Add table
Add a link
Reference in a new issue