Skip to content

Commit

Permalink
Update icons in paymentsheet (#4328)
Browse files Browse the repository at this point in the history
* Update icons in paymentsheet

* klint
  • Loading branch information
skyler-stripe authored Oct 27, 2021
1 parent 0ea9b82 commit 7105a01
Show file tree
Hide file tree
Showing 29 changed files with 345 additions and 248 deletions.
Binary file removed payments-core/res/drawable-hdpi/stripe_ic_unionpay.webp
Binary file not shown.
Binary file removed payments-core/res/drawable-mdpi/stripe_ic_unionpay.webp
Binary file not shown.
20 changes: 20 additions & 0 deletions payments-core/res/drawable-night/stripe_ic_cvc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="26dp"
android:height="17dp"
android:viewportWidth="26"
android:viewportHeight="17">
<path
android:pathData="M17.9421,1H1.6552C0.8938,1 0,1.8926 0,2.6842V15.3158C0,16.1074 0.8938,17 1.6552,17H22.3448C23.1062,17 24,16.1074 24,15.3158V8.9747C23.3028,9.6129 22.4418,10.0363 21.5172,10.1958V10.2632C21.5172,10.8189 21.2193,11.1053 20.6897,11.1053H2.4828C1.9531,11.1053 1.6552,10.8189 1.6552,10.2632V9.4211C1.6552,8.8653 1.9531,8.5789 2.4828,8.5789H16.9903C16.5126,8.0402 16.1549,7.4028 15.9418,6.7104C15.7287,6.0179 15.6651,5.2868 15.7555,4.567C15.8459,3.8473 16.0881,3.1559 16.4655,2.5402C16.8429,1.9246 17.3466,1.3992 17.9421,1V1Z"
android:fillColor="#ffffff"
android:fillAlpha="0.2"
android:fillType="evenOdd"/>
<path
android:pathData="M15.7137,4.0476H0V6.4762H15.5025C15.366,5.6619 15.4387,4.8264 15.7137,4.0476Z"
android:fillColor="#ffffff"
android:fillAlpha="0.4"
android:fillType="evenOdd"/>
<path
android:pathData="M20.3125,11.3333C18.8041,11.3333 17.3574,10.7363 16.2908,9.6736C15.2242,8.6109 14.625,7.1696 14.625,5.6667C14.625,4.1638 15.2242,2.7224 16.2908,1.6597C17.3574,0.597 18.8041,0 20.3125,0C21.8209,0 23.2676,0.597 24.3342,1.6597C25.4008,2.7224 26,4.1638 26,5.6667C26,7.1696 25.4008,8.6109 24.3342,9.6736C23.2676,10.7363 21.8209,11.3333 20.3125,11.3333ZM18.0538,3.3191H17.4119L15.8438,4.1124V4.9219L17.0869,4.2743V8.0143H18.0619V3.3191H18.0538ZM19.9225,3.9667C20.3856,3.9667 20.7106,4.2257 20.7106,4.5981C20.7106,5.0029 20.3288,5.2862 19.7763,5.2862H19.5325V5.9743H19.825C20.41,5.9743 20.8081,6.2657 20.8081,6.6867C20.8081,7.0914 20.4181,7.3667 19.8656,7.3667C19.4594,7.3667 19.0531,7.2371 18.6306,6.9862V7.7957C19.0856,7.99 19.5406,8.0952 19.9875,8.0952C21.0519,8.0952 21.7831,7.5529 21.7831,6.7676C21.7831,6.2171 21.4419,5.7719 20.8731,5.5938C21.3606,5.4319 21.6775,5.0029 21.6775,4.5171C21.6775,3.7562 21.0031,3.2381 20.0281,3.2381C19.5886,3.2429 19.1547,3.3366 18.7525,3.5133V4.3067C19.1425,4.0881 19.5406,3.9667 19.9225,3.9667ZM23.4325,5.7314C24.0256,5.7314 24.44,6.0795 24.44,6.5329C24.44,7.0105 24.0256,7.3424 23.4325,7.3424C23.075,7.3424 22.7013,7.2291 22.3194,6.9943V7.8281C22.7175,8.0062 23.1238,8.0952 23.5219,8.0952C23.7331,8.0952 23.9281,8.0629 24.115,8.0143C24.5375,7.3262 24.7813,6.5329 24.7813,5.6829L24.765,5.3429C24.4629,5.1647 24.1166,5.0749 23.7656,5.0838C23.6194,5.0838 23.465,5.0919 23.3025,5.1162V4.0638H24.4725C24.371,3.8047 24.2459,3.5554 24.0988,3.3191H22.4575V5.8691C22.7825,5.7881 23.1075,5.7314 23.4325,5.7314Z"
android:fillColor="#C2C2C2"
android:fillType="evenOdd"/>
</vector>
24 changes: 24 additions & 0 deletions payments-core/res/drawable-night/stripe_ic_cvc_amex.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="26dp"
android:height="17dp"
android:viewportWidth="26"
android:viewportHeight="17">
<group>
<clip-path
android:pathData="M0,0h26v17h-26z"/>
<path
android:pathData="M16.565,13.7619H10.1275C9.5994,13.7619 9.315,13.519 9.315,12.9524C9.315,12.3857 9.5994,12.1429 10.1275,12.1429H16.565C17.0931,12.1429 17.3775,12.3857 17.3775,12.9524C17.3775,13.519 17.0931,13.7619 16.565,13.7619ZM7.69,13.7619H3.2525C2.7244,13.7619 2.44,13.519 2.44,12.9524C2.44,12.3857 2.7244,12.1429 3.2525,12.1429H7.69C8.2181,12.1429 8.5025,12.3857 8.5025,12.9524C8.5025,13.519 8.2181,13.7619 7.69,13.7619Z"
android:fillColor="#ffffff"
android:fillAlpha="0.4"
android:fillType="evenOdd"/>
<path
android:pathData="M20.3125,11.3333C18.8041,11.3333 17.3574,10.7363 16.2908,9.6736C15.2242,8.6109 14.625,7.1696 14.625,5.6667C14.625,4.1638 15.2242,2.7224 16.2908,1.6597C17.3574,0.597 18.8041,0 20.3125,0C21.8209,0 23.2676,0.597 24.3342,1.6597C25.4008,2.7224 26,4.1638 26,5.6667C26,7.1696 25.4008,8.6109 24.3342,9.6736C23.2676,10.7363 21.8209,11.3333 20.3125,11.3333V11.3333ZM18.0538,3.3191H17.4119L15.8438,4.1124V4.9219L17.0869,4.2743V8.0143H18.0619V3.3191H18.0538ZM19.9225,3.9667C20.3856,3.9667 20.7106,4.2257 20.7106,4.5981C20.7106,5.0029 20.3288,5.2862 19.7763,5.2862H19.5325V5.9743H19.825C20.41,5.9743 20.8081,6.2657 20.8081,6.6867C20.8081,7.0914 20.4181,7.3667 19.8656,7.3667C19.4594,7.3667 19.0531,7.2371 18.6306,6.9862V7.7957C19.0856,7.99 19.5406,8.0952 19.9875,8.0952C21.0519,8.0952 21.7831,7.5529 21.7831,6.7676C21.7831,6.2171 21.4419,5.7719 20.8731,5.5938C21.3606,5.4319 21.6775,5.0029 21.6775,4.5171C21.6775,3.7562 21.0031,3.2381 20.0281,3.2381C19.5886,3.2429 19.1547,3.3366 18.7525,3.5133V4.3067C19.1425,4.0881 19.5406,3.9667 19.9225,3.9667V3.9667ZM23.4325,5.7314C24.0256,5.7314 24.44,6.0795 24.44,6.5329C24.44,7.0105 24.0256,7.3424 23.4325,7.3424C23.075,7.3424 22.7013,7.2291 22.3194,6.9943V7.8281C22.7175,8.0062 23.1238,8.0952 23.5219,8.0952C23.7331,8.0952 23.9281,8.0629 24.115,8.0143C24.5375,7.3262 24.7813,6.5329 24.7813,5.6829L24.765,5.3429C24.4629,5.1647 24.1166,5.0749 23.7656,5.0838C23.6194,5.0838 23.465,5.0919 23.3025,5.1162V4.0638H24.4725C24.371,3.8047 24.2459,3.5554 24.0988,3.3191H22.4575V5.8691C22.7825,5.7881 23.1075,5.7314 23.4325,5.7314Z"
android:fillColor="#C2C2C2"
android:fillType="evenOdd"/>
<path
android:pathData="M16.2958,9.6736C17.3624,10.7363 18.8091,11.3333 20.3175,11.3333C21.6715,11.3333 22.9757,10.8523 24,9.9852V15.0042C23.9935,15.5387 23.779,16.0488 23.4037,16.4229C23.0283,16.7969 22.5226,17.0044 21.9972,16.9999H2.0028C1.7419,17.0021 1.4832,16.9521 1.2414,16.8526C0.9996,16.753 0.7794,16.606 0.5934,16.4199C0.4075,16.2338 0.2593,16.0122 0.1575,15.7679C0.0557,15.5235 0.0022,15.2611 0,14.9957V3.0043C0.0022,2.7389 0.0557,2.4765 0.1575,2.2321C0.2593,1.9878 0.4075,1.7662 0.5934,1.5801C0.7794,1.394 0.9996,1.247 1.2414,1.1474C1.4832,1.0479 1.7419,0.9979 2.0028,1.0001H17.091C16.8083,1.1941 16.5419,1.4145 16.2958,1.6597C15.2292,2.7224 14.63,4.1638 14.63,5.6667C14.63,7.1696 15.2292,8.6109 16.2958,9.6736ZM7.6304,5.2106C7.9862,5.2106 8.2759,5.5221 8.2759,5.9095V8.7221C8.2759,9.1095 7.9862,9.4211 7.6304,9.4211H3.1283C2.7724,9.4211 2.4828,9.1095 2.4828,8.7221V5.9095C2.4828,5.5221 2.7724,5.2106 3.1283,5.2106H7.6304Z"
android:fillColor="#ffffff"
android:fillAlpha="0.2"
android:fillType="evenOdd"/>
</group>
</vector>
16 changes: 16 additions & 0 deletions payments-core/res/drawable-night/stripe_ic_unknown.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="26dp"
android:height="17dp"
android:viewportWidth="26"
android:viewportHeight="17">
<path
android:pathData="M21.9972,16.9999H2.0028C1.7419,17.0021 1.4832,16.9521 1.2414,16.8526C0.9996,16.753 0.7794,16.606 0.5934,16.4199C0.4075,16.2338 0.2593,16.0122 0.1575,15.7679C0.0557,15.5235 0.0022,15.2611 0,14.9957L0,3.0043C0.0022,2.7389 0.0557,2.4765 0.1575,2.2321C0.2593,1.9878 0.4075,1.7662 0.5934,1.5801C0.7794,1.394 0.9996,1.247 1.2414,1.1474C1.4832,1.0479 1.7419,0.9979 2.0028,1.0001H21.9972C22.2581,0.9979 22.5168,1.0479 22.7586,1.1474C23.0004,1.247 23.2206,1.394 23.4066,1.5801C23.5925,1.7662 23.7407,1.9878 23.8425,2.2321C23.9443,2.4765 23.9978,2.7389 24,3.0043V15.0042C23.9935,15.5387 23.779,16.0488 23.4037,16.4229C23.0283,16.7969 22.5226,17.0044 21.9972,16.9999ZM8.2759,5.9095C8.2759,5.5221 7.9862,5.2106 7.6304,5.2106H3.1283C2.7724,5.2106 2.4828,5.5221 2.4828,5.9095V8.7221C2.4828,9.1095 2.7724,9.4211 3.1283,9.4211H7.6304C7.9862,9.4211 8.2759,9.1095 8.2759,8.7221V5.9095Z"
android:fillColor="#ffffff"
android:fillAlpha="0.2"
android:fillType="evenOdd"/>
<path
android:pathData="M20.3125,13.7619H17.875C17.3469,13.7619 17.0625,13.519 17.0625,12.9524C17.0625,12.3857 17.3469,12.1429 17.875,12.1429H20.3125C20.8406,12.1429 21.125,12.3857 21.125,12.9524C21.125,13.519 20.8406,13.7619 20.3125,13.7619ZM15.4375,13.7619H13C12.4719,13.7619 12.1875,13.519 12.1875,12.9524C12.1875,12.3857 12.4719,12.1429 13,12.1429H15.4375C15.9656,12.1429 16.25,12.3857 16.25,12.9524C16.25,13.519 15.9656,13.7619 15.4375,13.7619ZM10.5625,13.7619H8.125C7.5969,13.7619 7.3125,13.519 7.3125,12.9524C7.3125,12.3857 7.5969,12.1429 8.125,12.1429H10.5625C11.0906,12.1429 11.375,12.3857 11.375,12.9524C11.375,13.519 11.0906,13.7619 10.5625,13.7619ZM5.6875,13.7619H3.25C2.7219,13.7619 2.4375,13.519 2.4375,12.9524C2.4375,12.3857 2.7219,12.1429 3.25,12.1429H5.6875C6.2156,12.1429 6.5,12.3857 6.5,12.9524C6.5,13.519 6.2156,13.7619 5.6875,13.7619Z"
android:fillColor="#ffffff"
android:fillAlpha="0.4"
android:fillType="evenOdd"/>
</vector>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
44 changes: 31 additions & 13 deletions payments-core/res/drawable/stripe_ic_amex.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="32dp"
android:height="21dp"
android:viewportWidth="32.0"
android:viewportHeight="21.0">
<path
android:pathData="M26.58,21L2.42,21A2.4,2.4 0,0 1,0 18.62L0,4.38A2.4,2.4 0,0 1,2.42 2h24.16A2.4,2.4 0,0 1,29 4.38v14.25A2.4,2.4 0,0 1,26.58 21z"
android:fillColor="#1D91CE" />
<path
android:pathData="M4.063,13.896l-0.472,1.104l-4.231,0l3.339,-7l7.975,0l0.805,1.546l0.752,-1.546l2.833,0l1.428,0l6.491,0l0.919,0.961l0.987,-0.961l4.993,0l-3.545,3.492l3.392,3.508l-4.832,0l-1.081,-1.031l-1.072,1.031l-6.252,0l-1.428,0l-9.568,0l-0.519,-1.104"
android:fillColor="#FFFFFF" />
<path
android:pathData="M4.98,13.97h-0.92,0.92zM15.2,9h-2.1l-1.58,3.35L9.82,9h-2.1v4.85L5.55,9L3.58,9l-2.32,5h1.42l0.47,-1.14h2.7L6.39,14L9,14L9,9.93L10.85,14h1.22l1.84,-4v4h1.29L15.2,9zM23.87,10.62L22.37,9h-6.02v5L22.17,14l1.65,-1.64L25.48,14h1.55l-2.37,-2.53L27.1,9h-1.62l-1.61,1.62zM20.7,13h-3.06L17.64,11.9h3.06L20.7,10.9h-3.06L17.64,10h3.06v-0.85l2.27,2.27 -2.27,2.28L20.7,13zM4.53,9.82l0.88,2.03L3.58,11.85l0.95,-2.03z"
android:fillColor="#1D91CE" />
android:width="26dp"
android:height="17dp"
android:viewportWidth="26"
android:viewportHeight="17">
<path
android:pathData="M22,1H2C0.8954,1 0,1.8954 0,3V15C0,16.1046 0.8954,17 2,17H22C23.1046,17 24,16.1046 24,15V3C24,1.8954 23.1046,1 22,1Z"
android:fillColor="#016FD0"/>
<path
android:pathData="M13.764,14.3939V8.6925L23.9116,8.7016V10.2765L22.7387,11.5299L23.9116,12.7948V14.4031H22.039L21.0438,13.3049L20.0557,14.4072L13.764,14.3939Z"
android:fillColor="#FFFFFE"
android:fillType="evenOdd"/>
<path
android:pathData="M14.4418,13.7688V9.3199H18.2141V10.3448H15.6632V11.0405H18.1533V12.0483H15.6632V12.7316H18.2141V13.7688H14.4418Z"
android:fillColor="#016FD0"
android:fillType="evenOdd"/>
<path
android:pathData="M18.1953,13.7688L20.2826,11.5418L18.1952,9.32H19.8108L21.0863,10.73L22.3654,9.32H23.9116V9.355L21.8687,11.5418L23.9116,13.7057V13.7688H22.3499L21.0518,12.3446L19.767,13.7688H18.1953Z"
android:fillColor="#016FD0"
android:fillType="evenOdd"/>
<path
android:pathData="M14.2374,3.632H16.6834L17.5426,5.5828V3.632H20.5624L21.0832,5.0935L21.6057,3.632H23.9116V9.3334H11.7251L14.2374,3.632Z"
android:fillColor="#FFFFFE"
android:fillType="evenOdd"/>
<path
android:pathData="M14.7005,4.2514L12.7264,8.6965H14.0803L14.4528,7.8064H16.4707L16.8429,8.6965H18.2304L16.2647,4.2514H14.7005ZM14.8701,6.8088L15.4621,5.3937L16.0536,6.8088H14.8701Z"
android:fillColor="#016FD0"
android:fillType="evenOdd"/>
<path
android:pathData="M18.212,8.6957V4.2506L20.1151,4.2572L21.0944,6.9899L22.08,4.2506H23.9116V8.6957L22.733,8.7062V5.6528L21.6204,8.6957H20.5446L19.409,5.6424V8.6957H18.212Z"
android:fillColor="#016FD0"
android:fillType="evenOdd"/>
</vector>
23 changes: 17 additions & 6 deletions payments-core/res/drawable/stripe_ic_cvc.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="32dp"
android:height="21dp"
android:viewportWidth="32.0"
android:viewportHeight="21.0">
android:width="26dp"
android:height="17dp"
android:viewportWidth="26"
android:viewportHeight="17">
<path
android:pathData="M18.13,2a8.45,8.45 0,0 0,-1.57 4L0,6v3h16.74A8.5,8.5 0,0 0,29 14.5L29,19c0,0.94 -1.08,2 -2,2L2,21c-0.92,0 -2,-1.06 -2,-2L0,4c0,-0.94 1.08,-2 2,-2h16.13zM25,14a7,7 0,1 1,0 -14,7 7,0 0,1 0,14zM22.22,4.1h-0.79l-1.93,0.98v1l1.53,-0.8L21.03,9.9h1.2L22.23,4.1zM24.52,4.9c0.57,0 0.97,0.32 0.97,0.78 0,0.5 -0.47,0.85 -1.15,0.85h-0.3v0.85h0.36c0.72,0 1.21,0.36 1.21,0.88 0,0.5 -0.48,0.84 -1.16,0.84 -0.5,0 -1,-0.16 -1.52,-0.47v1c0.56,0.24 1.12,0.37 1.67,0.37 1.31,0 2.21,-0.67 2.21,-1.64 0,-0.68 -0.42,-1.23 -1.12,-1.45 0.6,-0.2 0.99,-0.73 0.99,-1.33 0,-0.94 -0.83,-1.58 -2.03,-1.58a4,4 0,0 0,-1.57 0.34v0.98c0.48,-0.27 0.97,-0.42 1.44,-0.42zM28.84,7.08c0.73,0 1.24,0.43 1.24,0.99 0,0.59 -0.51,1 -1.24,1 -0.44,0 -0.9,-0.14 -1.37,-0.43v1.03c0.49,0.22 0.99,0.33 1.48,0.33 0.26,0 0.5,-0.04 0.73,-0.1 0.52,-0.85 0.82,-1.83 0.82,-2.88l-0.02,-0.42a2.3,2.3 0,0 0,-1.23 -0.32c-0.18,0 -0.37,0.01 -0.57,0.04v-1.3h1.44a5.62,5.62 0,0 0,-0.46 -0.92h-2.02v3.15c0.4,-0.1 0.8,-0.17 1.2,-0.17z"
android:fillColor="#000000" />
android:pathData="M17.9421,1H1.6552C0.8938,1 0,1.8926 0,2.6842V15.3158C0,16.1074 0.8938,17 1.6552,17H22.3448C23.1062,17 24,16.1074 24,15.3158V8.9747C23.3028,9.6129 22.4418,10.0363 21.5172,10.1958V10.2632C21.5172,10.8189 21.2193,11.1053 20.6897,11.1053H2.4828C1.9531,11.1053 1.6552,10.8189 1.6552,10.2632V9.4211C1.6552,8.8653 1.9531,8.5789 2.4828,8.5789H16.9903C16.5126,8.0402 16.1549,7.4028 15.9418,6.7104C15.7287,6.0179 15.6651,5.2868 15.7555,4.567C15.8459,3.8473 16.0881,3.1559 16.4655,2.5402C16.8429,1.9246 17.3466,1.3992 17.9421,1V1Z"
android:fillColor="#000000"
android:fillAlpha="0.14"
android:fillType="evenOdd"/>
<path
android:pathData="M15.7137,4.0476H0V6.4762H15.5025C15.366,5.6619 15.4387,4.8264 15.7137,4.0476Z"
android:fillColor="#000000"
android:fillAlpha="0.34"
android:fillType="evenOdd"/>
<path
android:pathData="M20.3125,11.3333C18.8041,11.3333 17.3574,10.7363 16.2908,9.6736C15.2242,8.6109 14.625,7.1696 14.625,5.6667C14.625,4.1638 15.2242,2.7224 16.2908,1.6597C17.3574,0.597 18.8041,0 20.3125,0C21.8209,0 23.2676,0.597 24.3342,1.6597C25.4008,2.7224 26,4.1638 26,5.6667C26,7.1696 25.4008,8.6109 24.3342,9.6736C23.2676,10.7363 21.8209,11.3333 20.3125,11.3333ZM18.0538,3.3191H17.4119L15.8438,4.1124V4.9219L17.0869,4.2743V8.0143H18.0619V3.3191H18.0538ZM19.9225,3.9667C20.3856,3.9667 20.7106,4.2257 20.7106,4.5981C20.7106,5.0029 20.3288,5.2862 19.7763,5.2862H19.5325V5.9743H19.825C20.41,5.9743 20.8081,6.2657 20.8081,6.6867C20.8081,7.0914 20.4181,7.3667 19.8656,7.3667C19.4594,7.3667 19.0531,7.2371 18.6306,6.9862V7.7957C19.0856,7.99 19.5406,8.0952 19.9875,8.0952C21.0519,8.0952 21.7831,7.5529 21.7831,6.7676C21.7831,6.2171 21.4419,5.7719 20.8731,5.5938C21.3606,5.4319 21.6775,5.0029 21.6775,4.5171C21.6775,3.7562 21.0031,3.2381 20.0281,3.2381C19.5886,3.2429 19.1547,3.3366 18.7525,3.5133V4.3067C19.1425,4.0881 19.5406,3.9667 19.9225,3.9667ZM23.4325,5.7314C24.0256,5.7314 24.44,6.0795 24.44,6.5329C24.44,7.0105 24.0256,7.3424 23.4325,7.3424C23.075,7.3424 22.7013,7.2291 22.3194,6.9943V7.8281C22.7175,8.0062 23.1238,8.0952 23.5219,8.0952C23.7331,8.0952 23.9281,8.0629 24.115,8.0143C24.5375,7.3262 24.7813,6.5329 24.7813,5.6829L24.765,5.3429C24.4629,5.1647 24.1166,5.0749 23.7656,5.0838C23.6194,5.0838 23.465,5.0919 23.3025,5.1162V4.0638H24.4725C24.371,3.8047 24.2459,3.5554 24.0988,3.3191H22.4575V5.8691C22.7825,5.7881 23.1075,5.7314 23.4325,5.7314Z"
android:fillColor="#656565"
android:fillType="evenOdd"/>
</vector>
Loading

0 comments on commit 7105a01

Please sign in to comment.