Skip to content

Commit

Permalink
[MG][BRAND] Replace Telegram logo with a custom one
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Redaelli committed Dec 13, 2023
1 parent 7ded442 commit 90438b6
Show file tree
Hide file tree
Showing 154 changed files with 54 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public boolean onFragmentCreate() {
MessagesController.getGlobalMainSettings().edit().putLong("intro_crashed_time", System.currentTimeMillis()).apply();

titles = new String[]{
LocaleController.getString("Page1Title", R.string.Page1Title),
"Mercurygram",
LocaleController.getString("Page2Title", R.string.Page2Title),
LocaleController.getString("Page3Title", R.string.Page3Title),
LocaleController.getString("Page5Title", R.string.Page5Title),
Expand Down
Binary file removed TMessagesProj/src/main/res/drawable-hdpi/book_logo.png
Binary file not shown.
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/drawable-hdpi/book_logo.png
Binary file not shown.
Binary file modified TMessagesProj/src/main/res/drawable-hdpi/intro_tg_plane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed TMessagesProj/src/main/res/drawable-mdpi/book_logo.png
Binary file not shown.
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/drawable-mdpi/book_logo.png
Binary file not shown.
Binary file modified TMessagesProj/src/main/res/drawable-mdpi/intro_tg_plane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed TMessagesProj/src/main/res/drawable-xhdpi/book_logo.png
Binary file not shown.
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/drawable-xhdpi/book_logo.png
Binary file not shown.
Binary file modified TMessagesProj/src/main/res/drawable-xhdpi/intro_tg_plane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/drawable-xxhdpi/book_logo.png
Binary file not shown.
Binary file modified TMessagesProj/src/main/res/drawable-xxhdpi/intro_tg_plane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
1 change: 1 addition & 0 deletions TMessagesProj/src/main/res/drawable-xxxhdpi/book_logo.png
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap android:src="@drawable/icon_background_sa"/>
</item>
<item>
<bitmap android:src="@drawable/icon_background_clip"/>
</item>
</layer-list>
12 changes: 12 additions & 0 deletions TMessagesProj/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="324"
android:viewportHeight="324">
<path
android:pathData="m110,136.7v71.92h10.78a20.72,20.72 0,0 0,15.57 -6.94,22.41 22.41,0 0,0 5.5,-11.73h8.07a21.36,21.36 0,0 0,21.33 -21.29h0.08a21.36,21.36 0,0 0,21.33 -21.3h0A21.36,21.36 0,0 0,214 126.04L214,115.37L131.33,115.37A21.36,21.36 0,0 0,110 136.7ZM192.67,136.7h-50.67v10.67h40a10.68,10.68 0,0 1,-10.66 10.63h-34.67v10.67h23.92a10.68,10.68 0,0 1,-10.66 10.63h-19.21l0.65,5.92a11.96,11.96 0,0 1,-2.93 9.33,10.42 10.42,0 0,1 -7.77,3.41v-61.26a10.68,10.68 0,0 1,10.67 -10.67h72a10.68,10.68 0,0 1,-10.67 10.67z"
android:strokeWidth="2.667"
android:fillColor="#ffffff"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
</vector>
6 changes: 3 additions & 3 deletions TMessagesProj/src/main/res/drawable/tg_splash_320.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
android:pathData="M 160 60 C 133.489 60 108.036 70.543 89.289 89.289 C 70.543 108.036 60 133.489 60 160 C 60 186.511 70.543 211.964 89.289 230.711 C 108.036 249.457 133.489 260 160 260 C 186.511 260 211.964 249.457 230.711 230.711 C 249.457 211.964 260 186.511 260 160 C 260 133.489 249.457 108.036 230.711 89.289 C 211.964 70.543 186.511 60 160 60 Z"/>
<path
android:name="plane"
android:pathData="M -14.734 278.944 C 14.418 266.243 33.857 257.87 43.583 253.824 C 71.355 242.273 77.125 240.267 80.886 240.199 C 81.714 240.186 83.563 240.391 84.761 241.363 C 85.773 242.184 86.051 243.293 86.185 244.071 C 86.318 244.85 86.484 246.623 86.352 248.008 C 84.847 263.82 78.335 302.193 75.022 319.903 C 73.62 327.397 70.86 329.91 68.188 330.155 C 62.381 330.69 57.971 326.318 52.347 322.631 C 43.545 316.861 38.573 313.27 30.03 307.64 C 20.157 301.134 26.557 297.558 32.184 291.714 C 33.656 290.184 59.243 266.911 59.738 264.8 C 59.8 264.536 59.858 263.552 59.273 263.032 C 58.688 262.512 57.825 262.69 57.202 262.831 C 56.32 263.032 42.26 272.325 15.022 290.711 C 11.031 293.452 7.416 294.787 4.177 294.717 C 0.607 294.64 -6.261 292.698 -11.367 291.038 C -17.63 289.003 -22.607 287.927 -22.174 284.469 C -21.948 282.669 -19.468 280.827 -14.734 278.944 Z"
android:pathData="M -104 345.333 L -104 417.258 L -93.216 417.258 C -90.277 417.273 -87.367 416.662 -84.682 415.466 C -81.997 414.269 -79.597 412.515 -77.642 410.32 C -74.694 407.038 -72.781 402.957 -72.142 398.591 L -64.074 398.591 C -58.427 398.585 -53.007 396.339 -49.011 392.349 C -45.014 388.36 -42.758 382.944 -42.742 377.297 L -42.667 377.297 C -37.019 377.29 -31.599 375.044 -27.603 371.054 C -23.606 367.064 -21.351 361.647 -21.335 356 L -21.333 356 C -15.679 355.993 -10.253 353.742 -6.255 349.744 C -2.258 345.747 -0.006 340.32 0 334.667 L 0 324 L -82.667 324 C -88.32 324.006 -93.747 326.258 -97.745 330.255 C -101.742 334.253 -103.994 339.68 -104 345.333 Z M -21.333 345.333 L -72 345.333 L -72 356 L -32.004 356 C -32.016 358.82 -33.145 361.524 -35.142 363.515 C -37.139 365.506 -39.846 366.627 -42.667 366.63 L -77.333 366.63 L -77.333 377.297 L -53.411 377.297 C -53.424 380.117 -54.554 382.82 -56.551 384.81 C -58.548 386.801 -61.254 387.921 -64.074 387.924 L -83.289 387.924 L -82.634 393.844 C -82.437 395.518 -82.596 397.215 -83.101 398.824 C -83.606 400.432 -84.445 401.916 -85.564 403.177 C -86.547 404.26 -87.747 405.123 -89.085 405.711 C -90.424 406.299 -91.871 406.599 -93.333 406.591 L -93.333 345.333 C -93.33 342.506 -92.205 339.793 -90.206 337.794 C -88.207 335.795 -85.494 334.67 -82.667 334.667 L -10.667 334.667 C -10.669 337.494 -11.795 340.207 -13.794 342.206 C -15.793 344.205 -18.506 345.331 -21.333 345.333 Z"
android:fillColor="#ffffff"
android:fillAlpha="0"
android:strokeWidth="1"/>
Expand Down Expand Up @@ -70,8 +70,8 @@
android:propertyName="pathData"
android:startOffset="200"
android:duration="300"
android:valueFrom="M -14.734 278.944 C 14.418 266.243 33.857 257.87 43.583 253.824 C 71.355 242.273 77.125 240.267 80.886 240.199 C 81.714 240.186 83.563 240.391 84.761 241.363 C 85.773 242.184 86.051 243.293 86.185 244.071 C 86.318 244.85 86.484 246.623 86.352 248.008 C 84.847 263.82 78.335 302.193 75.022 319.903 C 73.62 327.397 70.86 329.91 68.188 330.155 C 62.381 330.69 57.971 326.318 52.347 322.631 C 43.545 316.861 38.573 313.27 30.03 307.64 C 20.157 301.134 26.557 297.558 32.184 291.714 C 33.656 290.184 59.243 266.911 59.738 264.8 C 59.8 264.536 59.858 263.552 59.273 263.032 C 58.688 262.512 57.825 262.69 57.202 262.831 C 56.32 263.032 42.26 272.325 15.022 290.711 C 11.031 293.452 7.416 294.787 4.177 294.717 C 0.607 294.64 -6.261 292.698 -11.367 291.038 C -17.63 289.003 -22.607 287.927 -22.174 284.469 C -21.948 282.669 -19.468 280.827 -14.734 278.944 Z"
android:valueTo="M 105.266 158.944 C 134.418 146.243 153.857 137.87 163.583 133.824 C 191.355 122.273 197.125 120.267 200.886 120.199 C 201.714 120.186 203.563 120.391 204.761 121.363 C 205.773 122.184 206.051 123.293 206.185 124.071 C 206.318 124.85 206.484 126.623 206.352 128.008 C 204.847 143.82 198.335 182.193 195.022 199.903 C 193.62 207.397 190.86 209.91 188.188 210.155 C 182.381 210.69 177.971 206.318 172.347 202.631 C 163.545 196.861 158.573 193.27 150.03 187.64 C 140.157 181.134 146.557 177.558 152.184 171.714 C 153.656 170.184 179.243 146.911 179.738 144.8 C 179.8 144.536 179.858 143.552 179.273 143.032 C 178.688 142.512 177.825 142.69 177.202 142.831 C 176.32 143.032 162.26 152.325 135.022 170.711 C 131.031 173.452 127.416 174.787 124.177 174.717 C 120.607 174.64 113.739 172.698 108.633 171.038 C 102.37 169.003 97.393 167.927 97.826 164.469 C 98.052 162.669 100.532 160.827 105.266 158.944 Z"
android:valueFrom="M -104 345.333 L -104 417.258 L -93.216 417.258 C -90.277 417.273 -87.367 416.662 -84.682 415.466 C -81.997 414.269 -79.597 412.515 -77.642 410.32 C -74.694 407.038 -72.781 402.957 -72.142 398.591 L -64.074 398.591 C -58.427 398.585 -53.007 396.339 -49.011 392.349 C -45.014 388.36 -42.758 382.944 -42.742 377.297 L -42.667 377.297 C -37.019 377.29 -31.599 375.044 -27.603 371.054 C -23.606 367.064 -21.351 361.647 -21.335 356 L -21.333 356 C -15.679 355.993 -10.253 353.742 -6.255 349.744 C -2.258 345.747 -0.006 340.32 0 334.667 L 0 324 L -82.667 324 C -88.32 324.006 -93.747 326.258 -97.745 330.255 C -101.742 334.253 -103.994 339.68 -104 345.333 Z M -21.333 345.333 L -72 345.333 L -72 356 L -32.004 356 C -32.016 358.82 -33.145 361.524 -35.142 363.515 C -37.139 365.506 -39.846 366.627 -42.667 366.63 L -77.333 366.63 L -77.333 377.297 L -53.411 377.297 C -53.424 380.117 -54.554 382.82 -56.551 384.81 C -58.548 386.801 -61.254 387.921 -64.074 387.924 L -83.289 387.924 L -82.634 393.844 C -82.437 395.518 -82.596 397.215 -83.101 398.824 C -83.606 400.432 -84.445 401.916 -85.564 403.177 C -86.547 404.26 -87.747 405.123 -89.085 405.711 C -90.424 406.299 -91.871 406.599 -93.333 406.591 L -93.333 345.333 C -93.33 342.506 -92.205 339.793 -90.206 337.794 C -88.207 335.795 -85.494 334.67 -82.667 334.667 L -10.667 334.667 C -10.669 337.494 -11.795 340.207 -13.794 342.206 C -15.793 344.205 -18.506 345.331 -21.333 345.333 Z"
android:valueTo="M 110 136.704 L 110 208.629 L 120.784 208.629 C 123.723 208.644 126.633 208.033 129.318 206.837 C 132.003 205.64 134.403 203.886 136.358 201.691 C 139.306 198.409 141.219 194.327 141.858 189.962 L 149.926 189.962 C 155.573 189.955 160.993 187.71 164.989 183.72 C 168.986 179.731 171.242 174.315 171.258 168.668 L 171.333 168.668 C 176.981 168.661 182.401 166.415 186.397 162.425 C 190.394 158.435 192.649 153.018 192.665 147.371 L 192.667 147.371 C 198.321 147.364 203.747 145.113 207.745 141.115 C 211.742 137.118 213.994 131.691 214 126.038 L 214 115.371 L 131.333 115.371 C 125.68 115.377 120.253 117.629 116.255 121.626 C 112.258 125.624 110.006 131.05 110 136.704 Z M 192.667 136.704 L 142 136.704 L 142 147.371 L 181.996 147.371 C 181.984 150.191 180.855 152.895 178.858 154.886 C 176.861 156.877 174.154 157.998 171.333 158.001 L 136.667 158.001 L 136.667 168.668 L 160.589 168.668 C 160.576 171.488 159.446 174.19 157.449 176.181 C 155.452 178.172 152.746 179.292 149.926 179.295 L 130.711 179.295 L 131.366 185.215 C 131.563 186.889 131.404 188.586 130.899 190.195 C 130.394 191.803 129.555 193.287 128.436 194.548 C 127.453 195.63 126.253 196.494 124.915 197.082 C 123.576 197.67 122.129 197.97 120.667 197.962 L 120.667 136.704 C 120.67 133.877 121.795 131.164 123.794 129.165 C 125.793 127.166 128.506 126.041 131.333 126.038 L 203.333 126.038 C 203.331 128.865 202.205 131.578 200.206 133.577 C 198.207 135.576 195.494 136.701 192.667 136.704 Z"
android:valueType="pathType"
android:interpolator="@android:interpolator/linear_out_slow_in"/>
<objectAnimator
Expand Down
5 changes: 2 additions & 3 deletions TMessagesProj/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/icon_background" />
<foreground android:drawable="@mipmap/icon_foreground" />
<monochrome android:drawable="@drawable/icon_plane" />
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/icon_background_round" />
<foreground android:drawable="@mipmap/icon_foreground_round" />
<monochrome android:drawable="@drawable/icon_plane" />
</adaptive-icon>
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/icon_2_background" />
<foreground android:drawable="@mipmap/icon_foreground" />
</adaptive-icon>
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/icon_2_background_round" />
<foreground android:drawable="@mipmap/icon_foreground_round" />
</adaptive-icon>
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/icon_3_background" />
<foreground android:drawable="@mipmap/icon_3_foreground" />
</adaptive-icon>
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/icon_3_background_round" />
<foreground android:drawable="@mipmap/icon_3_foreground_round" />
</adaptive-icon>
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/icon_4_background" />
<foreground android:drawable="@mipmap/icon_foreground" />
</adaptive-icon>
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/icon_4_background_round" />
<foreground android:drawable="@mipmap/icon_foreground_round" />
</adaptive-icon>
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/icon_5_background" />
<foreground android:drawable="@mipmap/icon_5_foreground" />
</adaptive-icon>
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/icon_5_background_round" />
<foreground android:drawable="@mipmap/icon_5_foreground_round" />
</adaptive-icon>
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/icon_6_background" />
<foreground android:drawable="@mipmap/icon_6_foreground" />
</adaptive-icon>
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/icon_6_background_round" />
<foreground android:drawable="@mipmap/icon_6_foreground_round" />
</adaptive-icon>
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Binary file modified TMessagesProj/src/main/res/mipmap-hdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified TMessagesProj/src/main/res/mipmap-hdpi/ic_launcher_round.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified TMessagesProj/src/main/res/mipmap-mdpi/ic_launcher.png
Binary file modified TMessagesProj/src/main/res/mipmap-mdpi/ic_launcher_round.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified TMessagesProj/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary file modified TMessagesProj/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified TMessagesProj/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary file modified TMessagesProj/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified TMessagesProj/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary file modified TMessagesProj/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.

0 comments on commit 90438b6

Please sign in to comment.