Fix social icons

This commit is contained in:
Rafał Kobyłko 2023-06-04 23:57:30 +02:00
parent 68bc766638
commit 7ea2ee8205
7 changed files with 58 additions and 38 deletions

View File

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="98dp"
android:height="96dp"
android:viewportWidth="98"
android:viewportHeight="96">
<path
android:pathData="M48.9,0C21.8,0 0,22 0,49.2C0,71 14,89.4 33.4,95.9c2.4,0.5 3.3,-1.1 3.3,-2.4c0,-1.1 -0.1,-5.1 -0.1,-9.1c-13.6,2.9 -16.4,-5.9 -16.4,-5.9c-2.2,-5.7 -5.4,-7.2 -5.4,-7.2c-4.4,-3 0.3,-3 0.3,-3c4.9,0.3 7.5,5.1 7.5,5.1c4.4,7.5 11.4,5.4 14.2,4.1c0.4,-3.2 1.7,-5.4 3.1,-6.6c-10.8,-1.1 -22.2,-5.4 -22.2,-24.3c0,-5.4 1.9,-9.8 5,-13.2c-0.5,-1.2 -2.2,-6.3 0.5,-13c0,0 4.1,-1.3 13.4,5.1c4,-1.1 8.1,-1.6 12.2,-1.6c4.1,0 8.3,0.6 12.2,1.6c9.3,-6.4 13.4,-5.1 13.4,-5.1c2.7,6.8 1,11.8 0.5,13c3.2,3.4 5,7.8 5,13.2c0,18.9 -11.4,23.1 -22.3,24.3c1.8,1.5 3.3,4.5 3.3,9.1c0,6.6 -0.1,11.9 -0.1,13.5c0,1.3 0.9,2.9 3.3,2.4C83.6,89.4 97.6,71 97.6,49.2C97.7,22 75.8,0 48.9,0z"
android:fillColor="#FFFFFF"
android:fillType="evenOdd"/>
</vector>

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="248dp"
android:height="204dp"
android:viewportWidth="248"
android:viewportHeight="204">
<path
android:pathData="M221.9,51.3c0.1,2.2 0.1,4.3 0.1,6.5c0,66.7 -50.8,143.7 -143.7,143.7v0c-27.4,0 -54.3,-7.8 -77.4,-22.6c4,0.5 8,0.7 12,0.7c22.7,0 44.8,-7.6 62.7,-21.7c-21.6,-0.4 -40.6,-14.5 -47.2,-35.1c7.6,1.5 15.4,1.2 22.8,-0.9c-23.6,-4.8 -40.5,-25.5 -40.5,-49.5c0,-0.2 0,-0.4 0,-0.6c7,3.9 14.9,6.1 22.9,6.3c-22.2,-14.8 -29,-44.3 -15.6,-67.4c25.6,31.5 63.5,50.7 104.1,52.8c-4.1,-17.5 1.5,-35.9 14.6,-48.2c20.3,-19.1 52.3,-18.1 71.4,2.2c11.3,-2.2 22.1,-6.4 32.1,-12.3c-3.8,11.7 -11.7,21.6 -22.2,27.9c10,-1.2 19.8,-3.9 29,-8C240.4,35.3 231.8,44.1 221.9,51.3z"
android:fillColor="#FFFFFF"/>
</vector>

View File

@ -1,9 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="80dp"
android:height="80dp"
android:viewportWidth="80"
android:viewportHeight="80">
android:width="127.14dp"
android:height="96.36dp"
android:viewportWidth="127.14"
android:viewportHeight="96.36">
<path
android:pathData="M54.588,26.703C59.302,33.676 61.63,41.542 60.76,50.598C60.756,50.636 60.736,50.672 60.705,50.695C57.135,53.332 53.676,54.933 50.266,55.994C50.24,56.002 50.211,56.002 50.185,55.993C50.159,55.984 50.136,55.967 50.12,55.944C49.332,54.841 48.616,53.679 47.989,52.458C47.953,52.386 47.986,52.299 48.06,52.271C49.197,51.84 50.278,51.323 51.318,50.711C51.4,50.663 51.405,50.545 51.329,50.488C51.109,50.324 50.89,50.15 50.681,49.977C50.642,49.945 50.589,49.939 50.544,49.96C43.794,53.097 36.399,53.097 29.568,49.96C29.524,49.94 29.471,49.947 29.433,49.979C29.224,50.152 29.005,50.324 28.787,50.488C28.711,50.545 28.717,50.663 28.799,50.711C29.839,51.312 30.92,51.84 32.056,52.273C32.129,52.301 32.164,52.386 32.128,52.458C31.514,53.68 30.798,54.843 29.996,55.946C29.961,55.991 29.903,56.011 29.849,55.994C26.455,54.933 22.997,53.332 19.427,50.695C19.397,50.672 19.376,50.635 19.373,50.597C18.645,42.763 20.128,34.832 25.539,26.701C25.552,26.68 25.572,26.663 25.594,26.653C28.257,25.423 31.109,24.519 34.09,24.002C34.145,23.994 34.199,24.019 34.227,24.067C34.596,24.723 35.016,25.565 35.301,26.253C38.444,25.77 41.635,25.77 44.843,26.253C45.128,25.58 45.535,24.723 45.902,24.067C45.915,24.043 45.935,24.024 45.959,24.013C45.984,24.001 46.012,23.997 46.038,24.002C49.021,24.52 51.873,25.425 54.534,26.653C54.557,26.663 54.576,26.68 54.588,26.703ZM36.899,41.596C36.932,39.28 35.254,37.364 33.148,37.364C31.059,37.364 29.397,39.264 29.397,41.596C29.397,43.928 31.091,45.827 33.148,45.827C35.237,45.827 36.899,43.928 36.899,41.596ZM50.768,41.596C50.801,39.28 49.123,37.364 47.017,37.364C44.928,37.364 43.266,39.264 43.266,41.596C43.266,43.928 44.96,45.827 47.017,45.827C49.123,45.827 50.768,43.928 50.768,41.596Z"
android:fillColor="#5865F2"/>
android:pathData="M107.7,8.07A105.15,105.15 0,0 0,81.47 0a72.06,72.06 0,0 0,-3.36 6.83A97.68,97.68 0,0 0,49 6.83,72.37 72.37,0 0,0 45.64,0 105.89,105.89 0,0 0,19.39 8.09C2.79,32.65 -1.71,56.6 0.54,80.21h0A105.73,105.73 0,0 0,32.71 96.36,77.7 77.7,0 0,0 39.6,85.25a68.42,68.42 0,0 1,-10.85 -5.18c0.91,-0.66 1.8,-1.34 2.66,-2a75.57,75.57 0,0 0,64.32 0c0.87,0.71 1.76,1.39 2.66,2a68.68,68.68 0,0 1,-10.87 5.19,77 77,0 0,0 6.89,11.1A105.25,105.25 0,0 0,126.6 80.22h0C129.24,52.84 122.09,29.11 107.7,8.07ZM42.45,65.69C36.18,65.69 31,60 31,53s5,-12.74 11.43,-12.74S54,46 53.89,53 48.84,65.69 42.45,65.69ZM84.69,65.69C78.41,65.69 73.25,60 73.25,53s5,-12.74 11.44,-12.74S96.23,46 96.12,53 91.08,65.69 84.69,65.69Z"
android:fillColor="#5865f2"/>
</vector>

View File

@ -1,10 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="80dp"
android:height="80dp"
android:viewportWidth="80"
android:viewportHeight="80">
android:width="98dp"
android:height="96dp"
android:viewportWidth="98"
android:viewportHeight="96">
<path
android:pathData="M40.105,18.4C27.671,18.4 17.6,28.422 17.6,40.796C17.6,50.706 24.042,59.076 32.988,62.044C34.113,62.239 34.535,61.568 34.535,60.98C34.535,60.448 34.507,58.684 34.507,56.809C28.853,57.844 27.39,55.437 26.94,54.177C26.687,53.533 25.589,51.546 24.633,51.014C23.845,50.594 22.72,49.558 24.605,49.53C26.377,49.502 27.643,51.154 28.065,51.826C30.09,55.213 33.326,54.261 34.62,53.673C34.817,52.217 35.407,51.238 36.054,50.678C31.047,50.118 25.815,48.186 25.815,39.62C25.815,37.184 26.687,35.169 28.121,33.601C27.896,33.041 27.108,30.746 28.346,27.666C28.346,27.666 30.231,27.078 34.535,29.962C36.336,29.458 38.249,29.206 40.161,29.206C42.074,29.206 43.987,29.458 45.788,29.962C50.092,27.05 51.977,27.666 51.977,27.666C53.214,30.746 52.427,33.041 52.202,33.601C53.636,35.169 54.508,37.156 54.508,39.62C54.508,48.214 49.248,50.118 44.241,50.678C45.056,51.378 45.76,52.721 45.76,54.821C45.76,57.816 45.731,60.224 45.731,60.98C45.731,61.568 46.153,62.268 47.279,62.044C56.168,59.076 62.61,50.678 62.61,40.796C62.61,28.422 52.539,18.4 40.105,18.4Z"
android:fillColor="#1B1F23"
android:pathData="M48.854,0C21.839,0 0,22 0,49.217c0,21.756 13.993,40.172 33.405,46.69 2.427,0.49 3.316,-1.059 3.316,-2.362 0,-1.141 -0.08,-5.052 -0.08,-9.127 -13.59,2.934 -16.42,-5.867 -16.42,-5.867 -2.184,-5.704 -5.42,-7.17 -5.42,-7.17 -4.448,-3.015 0.324,-3.015 0.324,-3.015 4.934,0.326 7.523,5.052 7.523,5.052 4.367,7.496 11.404,5.378 14.235,4.074 0.404,-3.178 1.699,-5.378 3.074,-6.6 -10.839,-1.141 -22.243,-5.378 -22.243,-24.283 0,-5.378 1.94,-9.778 5.014,-13.2 -0.485,-1.222 -2.184,-6.275 0.486,-13.038 0,0 4.125,-1.304 13.426,5.052a46.97,46.97 0,0 1,12.214 -1.63c4.125,0 8.33,0.571 12.213,1.63 9.302,-6.356 13.427,-5.052 13.427,-5.052 2.67,6.763 0.97,11.816 0.485,13.038 3.155,3.422 5.015,7.822 5.015,13.2 0,18.905 -11.404,23.06 -22.324,24.283 1.78,1.548 3.316,4.481 3.316,9.126 0,6.6 -0.08,11.897 -0.08,13.526 0,1.304 0.89,2.853 3.316,2.364 19.412,-6.52 33.405,-24.935 33.405,-46.691C97.707,22 75.788,0 48.854,0z"
android:fillColor="#24292f"
android:fillType="evenOdd"/>
</vector>

View File

@ -1,9 +1,4 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="80dp"
android:height="80dp"
android:viewportWidth="80"
android:viewportHeight="80">
<path
android:pathData="M58.823,28.503C57.614,29.023 56.342,29.385 55.04,29.581C55.649,29.477 56.545,28.381 56.901,27.937C57.443,27.268 57.856,26.504 58.119,25.685C58.119,25.624 58.18,25.537 58.119,25.493C58.088,25.477 58.054,25.468 58.019,25.468C57.984,25.468 57.95,25.477 57.919,25.493C56.505,26.259 55,26.844 53.44,27.233C53.386,27.249 53.328,27.251 53.272,27.237C53.217,27.223 53.167,27.195 53.127,27.154C53.005,27.01 52.875,26.873 52.736,26.746C52.099,26.176 51.377,25.709 50.596,25.363C49.542,24.93 48.403,24.743 47.265,24.815C46.162,24.885 45.084,25.181 44.1,25.685C43.13,26.216 42.278,26.938 41.595,27.807C40.876,28.701 40.357,29.739 40.073,30.851C39.839,31.908 39.812,33.001 39.995,34.068C39.995,34.251 39.995,34.277 39.838,34.251C33.637,33.338 28.55,31.138 24.393,26.415C24.21,26.207 24.115,26.207 23.967,26.415C22.158,29.163 23.036,33.512 25.297,35.66C25.602,35.947 25.915,36.225 26.245,36.486C25.208,36.412 24.197,36.132 23.271,35.66C23.097,35.547 23.001,35.608 22.993,35.817C22.968,36.106 22.968,36.397 22.993,36.686C23.174,38.073 23.721,39.387 24.576,40.493C25.432,41.599 26.566,42.458 27.863,42.983C28.179,43.118 28.508,43.22 28.846,43.287C27.886,43.476 26.901,43.505 25.932,43.374C25.723,43.331 25.645,43.444 25.723,43.644C27.002,47.122 29.776,48.183 31.811,48.775C32.089,48.818 32.368,48.818 32.681,48.888C32.681,48.888 32.681,48.888 32.629,48.94C32.028,50.036 29.602,50.775 28.489,51.158C26.457,51.887 24.291,52.166 22.14,51.975C21.801,51.923 21.723,51.932 21.636,51.975C21.549,52.019 21.636,52.114 21.732,52.201C22.166,52.488 22.601,52.74 23.053,52.984C24.4,53.718 25.823,54.301 27.298,54.723C34.933,56.828 43.526,55.28 49.257,49.583C53.762,45.113 55.345,38.947 55.345,32.773C55.345,32.538 55.632,32.399 55.797,32.277C56.937,31.389 57.941,30.34 58.78,29.163C58.925,28.988 58.999,28.765 58.988,28.537C58.988,28.407 58.988,28.433 58.823,28.503Z"
android:fillColor="#33CCFF"/>
<vector android:height="123.3871dp" android:viewportHeight="204"
android:viewportWidth="248" android:width="150dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#1D9BF0" android:pathData="M221.95,51.29c0.15,2.17 0.15,4.34 0.15,6.53c0,66.73 -50.8,143.69 -143.69,143.69v-0.04C50.97,201.51 24.1,193.65 1,178.83c3.99,0.48 8,0.72 12.02,0.73c22.74,0.02 44.83,-7.61 62.72,-21.66c-21.61,-0.41 -40.56,-14.5 -47.18,-35.07c7.57,1.46 15.37,1.16 22.8,-0.87C27.8,117.2 10.85,96.5 10.85,72.46c0,-0.22 0,-0.43 0,-0.64c7.02,3.91 14.88,6.08 22.92,6.32C11.58,63.31 4.74,33.79 18.14,10.71c25.64,31.55 63.47,50.73 104.08,52.76c-4.07,-17.54 1.49,-35.92 14.61,-48.25c20.34,-19.12 52.33,-18.14 71.45,2.19c11.31,-2.23 22.15,-6.38 32.07,-12.26c-3.77,11.69 -11.66,21.62 -22.2,27.93c10.01,-1.18 19.79,-3.86 29,-7.95C240.37,35.29 231.83,44.14 221.95,51.29z"/>
</vector>

View File

@ -1,10 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="80dp"
android:height="80dp"
android:viewportWidth="80"
android:viewportHeight="80">
android:width="176dp"
android:height="124dp"
android:viewportWidth="176"
android:viewportHeight="124">
<path
android:pathData="M57.416,24.953C59.382,25.484 60.927,27.033 61.45,28.996C62.4,32.56 62.4,40 62.4,40C62.4,40 62.4,47.44 61.45,51.004C60.92,52.974 59.375,54.524 57.416,55.047C53.862,56 39.6,56 39.6,56C39.6,56 25.345,56 21.784,55.047C19.818,54.516 18.272,52.967 17.75,51.004C16.8,47.44 16.8,40 16.8,40C16.8,40 16.8,32.56 17.75,28.996C18.28,27.025 19.825,25.476 21.784,24.953C25.345,24 39.6,24 39.6,24C39.6,24 53.862,24 57.416,24.953ZM46.89,40L35.044,46.858V33.142L46.89,40Z"
android:fillColor="#FF3000"
android:fillType="evenOdd"/>
android:pathData="M172.3,19.4c-2,-7.6 -8,-13.6 -15.6,-15.7C143,0 88,0 88,0S33,0 19.2,3.7c-7.6,2 -13.5,8 -15.6,15.7C0,33.2 0,62 0,62s0,28.8 3.7,42.6c2,7.6 8,13.6 15.6,15.7C33,124 88,124 88,124s55,0 68.8,-3.7c7.6,-2 13.5,-8 15.6,-15.7C176,90.8 176,62 176,62S176,33.2 172.3,19.4z"
android:fillColor="#FF0000"/>
<path
android:pathData="M70,88.2l0,-52.4l46,26.2z"
android:fillColor="#FFFFFF"/>
</vector>

View File

@ -130,38 +130,42 @@ private fun SettingsScreen(
.padding(top = 24.dp, bottom = 24.dp),
horizontalArrangement = Arrangement.spacedBy(14.dp, Alignment.CenterHorizontally),
) {
Image(
painter = painterResource(id = com.twofasapp.designsystem.R.drawable.ic_discord),
contentDescription = null,
modifier = Modifier
.size(52.dp)
.clip(CircleShape)
.clickable { uriHandler.openSafely(TwLocale.links.discord, activity) }
.padding(12.dp),
)
Image(
painter = painterResource(id = com.twofasapp.designsystem.R.drawable.ic_youtube),
contentDescription = null,
modifier = Modifier
.size(48.dp)
.size(52.dp)
.clip(CircleShape)
.clickable { uriHandler.openSafely(TwLocale.links.youtube, activity) }
.padding(12.dp),
)
Image(
painter = painterResource(id = com.twofasapp.designsystem.R.drawable.ic_twitter),
contentDescription = null,
modifier = Modifier
.size(48.dp)
.size(52.dp)
.clip(CircleShape)
.clickable { uriHandler.openSafely(TwLocale.links.twitter, activity) }
)
Image(
painter = painterResource(id = com.twofasapp.designsystem.R.drawable.ic_discord),
contentDescription = null,
modifier = Modifier
.size(48.dp)
.clip(CircleShape)
.clickable { uriHandler.openSafely(TwLocale.links.discord, activity) }
.padding(12.dp),
)
Icon(
painter = painterResource(id = com.twofasapp.designsystem.R.drawable.ic_github),
contentDescription = null,
tint = TwTheme.color.onSurfacePrimary,
modifier = Modifier
.size(48.dp)
.size(52.dp)
.clip(CircleShape)
.clickable { uriHandler.openSafely(TwLocale.links.github, activity) }
.padding(12.dp),
)
}
}