Add shield icon to Recovery Password Title

This commit is contained in:
Andrew 2024-03-14 12:56:16 +10:30
parent 98e336faee
commit 01f6d75968
2 changed files with 13 additions and 1 deletions

View File

@ -271,7 +271,7 @@ fun RecoveryPassword(state: LinkDeviceState, onChange: (String) -> Unit = {}, on
Text(stringResource(R.string.activity_link_recovery_password), style = MaterialTheme.typography.h4)
Spacer(Modifier.width(6.dp))
Icon(
painter = painterResource(id = R.drawable.ic_recovery_phrase),
painter = painterResource(id = R.drawable.ic_shield_outline),
contentDescription = null,
)
}

View File

@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="19dp"
android:height="25dp"
android:viewportWidth="19"
android:viewportHeight="25">
<path
android:pathData="M12.477,12.869L10.682,11.837H11.899C12.408,11.837 12.896,11.628 13.256,11.254C13.616,10.881 13.818,10.375 13.818,9.847C13.818,9.319 13.616,8.813 13.256,8.44C12.896,8.066 12.408,7.857 11.899,7.857H7.649C7.012,7.857 6.401,8.12 5.95,8.588C5.499,9.055 5.246,9.689 5.245,10.35C5.245,10.832 5.37,11.305 5.606,11.72C5.842,12.135 6.181,12.477 6.587,12.71L8.383,13.742H7.164C6.91,13.739 6.658,13.788 6.423,13.887C6.188,13.986 5.973,14.132 5.793,14.317C5.612,14.502 5.469,14.722 5.371,14.965C5.273,15.208 5.223,15.469 5.223,15.733C5.223,15.996 5.273,16.257 5.371,16.5C5.469,16.743 5.612,16.963 5.793,17.148C5.973,17.333 6.188,17.479 6.423,17.578C6.658,17.677 6.91,17.726 7.164,17.723H11.414C12.051,17.722 12.663,17.459 13.113,16.992C13.564,16.524 13.818,15.89 13.818,15.229C13.818,14.748 13.694,14.275 13.458,13.86C13.222,13.445 12.884,13.103 12.477,12.869ZM6.874,12.171C6.568,11.995 6.311,11.738 6.13,11.428C5.948,11.117 5.849,10.762 5.84,10.399C5.816,9.34 6.674,8.473 7.695,8.473H11.861C12.573,8.473 13.187,9.039 13.222,9.778C13.231,9.964 13.203,10.15 13.141,10.324C13.078,10.499 12.982,10.658 12.858,10.793C12.735,10.928 12.586,11.035 12.421,11.109C12.256,11.182 12.078,11.22 11.899,11.22H9.5C9.43,11.221 9.362,11.25 9.313,11.302C9.263,11.354 9.236,11.424 9.236,11.497V13.527L6.874,12.171ZM11.368,17.106H7.203C6.49,17.106 5.877,16.541 5.841,15.802C5.833,15.616 5.86,15.43 5.923,15.255C5.985,15.081 6.081,14.921 6.205,14.786C6.328,14.652 6.477,14.544 6.642,14.471C6.807,14.397 6.985,14.359 7.164,14.359H9.563C9.598,14.359 9.633,14.352 9.665,14.338C9.697,14.324 9.727,14.304 9.751,14.278C9.776,14.252 9.796,14.222 9.809,14.189C9.822,14.155 9.829,14.119 9.829,14.083V12.052L12.189,13.408C12.496,13.585 12.752,13.841 12.934,14.152C13.115,14.463 13.215,14.818 13.223,15.182C13.247,16.239 12.39,17.106 11.368,17.106Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M9.505,0.964C9.232,0.964 8.962,1.03 8.705,1.158C8.431,1.294 8.154,1.422 7.877,1.554C7.707,1.632 7.538,1.715 7.373,1.793L7.357,1.801L7.342,1.81L7.246,1.859L7.188,1.888L5.813,2.544C4.297,3.265 2.784,3.987 1.267,4.709C0.555,5.06 0.162,5.736 0.193,6.536C0.197,6.668 0.193,6.816 0.193,6.977C0.193,7.089 0.193,7.204 0.193,7.316V10.759C0.193,10.85 0.193,10.941 0.193,11.031C0.193,11.097 0.193,11.159 0.193,11.225C0.193,11.931 0.185,12.669 0.278,13.448C0.328,13.906 0.413,14.339 0.493,14.76C0.516,14.884 0.54,15.003 0.563,15.127L0.582,15.222L0.609,15.317L0.667,15.506C0.821,16.018 0.978,16.546 1.194,17.086C1.452,17.725 1.768,18.369 2.187,19.107L2.245,19.21L2.299,19.276C3.508,21.219 5.078,22.72 6.968,23.734H6.98L6.991,23.747C7.654,24.089 8.323,24.357 8.982,24.543C9.163,24.592 9.332,24.613 9.498,24.613C9.663,24.613 9.836,24.592 10.006,24.547H10.021L10.036,24.538C10.741,24.337 11.384,24.052 11.923,23.796L11.981,23.767L12.038,23.734C12.073,23.714 12.111,23.689 12.146,23.668C13.251,23.062 14.263,22.27 15.16,21.305C15.707,20.715 16.219,20.039 16.769,19.173L16.792,19.14L16.812,19.107C17.278,18.294 17.635,17.548 17.909,16.822C18.113,16.269 18.271,15.733 18.409,15.23L18.425,15.181L18.436,15.131C18.598,14.393 18.783,13.411 18.802,12.376C18.813,11.984 18.817,11.58 18.821,11.18V10.788L18.825,10.767V10.747C18.813,9.621 18.813,8.474 18.825,7.349C18.825,7.225 18.825,7.118 18.821,7.014C18.821,6.891 18.813,6.775 18.821,6.701C18.887,5.814 18.455,5.051 17.666,4.676C16.25,4.004 14.837,3.327 13.424,2.655L11.649,1.805L11.272,1.628C10.945,1.476 10.618,1.323 10.298,1.162C10.036,1.034 9.775,0.972 9.509,0.972L9.505,0.964ZM9.498,22.959C9.467,22.959 9.424,22.959 9.37,22.942C8.808,22.786 8.231,22.555 7.657,22.258C6.01,21.375 4.636,20.064 3.577,18.36L3.531,18.286L3.5,18.245C3.119,17.573 2.834,16.999 2.611,16.434C2.422,15.964 2.283,15.494 2.133,14.995L2.076,14.805C2.052,14.686 2.029,14.566 2.002,14.426C1.925,14.022 1.852,13.642 1.806,13.242C1.725,12.57 1.729,11.922 1.733,11.225C1.733,11.151 1.733,11.081 1.733,10.994C1.733,10.916 1.733,10.842 1.733,10.763V7.32C1.733,7.217 1.733,7.113 1.733,7.01C1.733,6.837 1.741,6.66 1.733,6.466C1.733,6.383 1.725,6.301 1.891,6.218C3.407,5.497 4.924,4.775 6.441,4.053L7.815,3.397L7.831,3.389L7.846,3.381L7.904,3.352L8,3.303C8.166,3.224 8.327,3.146 8.508,3.063C8.789,2.931 9.066,2.799 9.363,2.655C9.432,2.622 9.478,2.618 9.509,2.618C9.54,2.618 9.586,2.622 9.655,2.655C9.983,2.816 10.31,2.973 10.652,3.133L11.026,3.311L12.8,4.16C14.217,4.837 15.63,5.513 17.046,6.185C17.293,6.301 17.301,6.445 17.293,6.581C17.281,6.738 17.285,6.895 17.293,7.064C17.293,7.151 17.297,7.241 17.297,7.328C17.285,8.47 17.285,9.625 17.297,10.767V11.159C17.289,11.551 17.285,11.947 17.274,12.339C17.254,13.222 17.089,14.096 16.947,14.756C16.816,15.222 16.669,15.721 16.492,16.203C16.253,16.843 15.93,17.511 15.511,18.241C15.014,19.02 14.556,19.622 14.078,20.138C13.297,20.979 12.415,21.672 11.457,22.196L11.403,22.225L11.349,22.258C11.349,22.258 11.322,22.274 11.311,22.283C10.83,22.509 10.252,22.769 9.652,22.938C9.601,22.951 9.548,22.959 9.501,22.959H9.498Z"
android:fillColor="#ffffff"/>
</vector>