Skip to content

Commit

Permalink
style: update icon
Browse files Browse the repository at this point in the history
Signed-off-by: qwq233 <[email protected]>
  • Loading branch information
qwq233 committed Nov 9, 2024
1 parent e2dfa81 commit aa405a0
Show file tree
Hide file tree
Showing 32 changed files with 55 additions and 35 deletions.
20 changes: 10 additions & 10 deletions TMessagesProj/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@
android:restoreAnyVersion="true"
android:backupAgent=".BackupAgent"
android:hardwareAccelerated="@bool/useHardwareAcceleration"
android:icon="@mipmap/ic_launcher_icon"
android:roundIcon="@mipmap/ic_launcher_icon"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
android:largeHeap="true"
android:label="@string/NullgramName"
android:theme="@style/Theme.TMessages.Start"
Expand Down Expand Up @@ -163,8 +163,8 @@
android:enabled="false"
android:name="org.telegram.messenger.MainIcon"
android:targetActivity="org.telegram.ui.LaunchActivity"
android:icon="@mipmap/ic_launcher_mainicon"
android:roundIcon="@mipmap/ic_launcher_mainicon"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
android:exported="true">

<intent-filter>
Expand Down Expand Up @@ -329,7 +329,7 @@
<data android:host="t.me" android:scheme="http" />
<data android:host="t.me" android:scheme="https" />
</intent-filter>
<intent-filter android:icon="@drawable/icon" android:roundIcon="@drawable/icon" android:priority="1">
<intent-filter android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher" android:priority="1">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
Expand Down Expand Up @@ -377,7 +377,7 @@
android:stateNotNeeded="true"
android:theme="@style/Theme.TMessages.Transparent"
android:exported="true">
<intent-filter android:icon="@drawable/icon" android:roundIcon="@drawable/icon" android:priority="1">
<intent-filter android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher" android:priority="1">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
Expand All @@ -390,7 +390,7 @@
android:hardwareAccelerated="@bool/useHardwareAcceleration"
android:exported="true"
android:windowSoftInputMode="adjustPan">
<intent-filter android:icon="@drawable/icon" android:roundIcon="@drawable/icon">
<intent-filter android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher">
<action android:name="org.telegram.passport.AUTHORIZE"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
Expand All @@ -401,7 +401,7 @@
android:hardwareAccelerated="@bool/useHardwareAcceleration"
android:exported="true"
android:windowSoftInputMode="adjustPan">
<intent-filter android:icon="@drawable/icon" android:roundIcon="@drawable/icon">
<intent-filter android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher">
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
</intent-filter>
</activity>
Expand All @@ -411,7 +411,7 @@
android:hardwareAccelerated="@bool/useHardwareAcceleration"
android:exported="true"
android:windowSoftInputMode="adjustPan">
<intent-filter android:icon="@drawable/icon" android:roundIcon="@drawable/icon">
<intent-filter android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher">
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
</intent-filter>
</activity>
Expand All @@ -420,7 +420,7 @@
<!-- android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"-->
<!-- android:hardwareAccelerated="@bool/useHardwareAcceleration"-->
<!-- android:windowSoftInputMode="adjustPan">-->
<!-- <intent-filter android:icon="@drawable/icon" android:roundIcon="@drawable/icon_round">-->
<!-- <intent-filter android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round">-->
<!-- <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>-->
<!-- </intent-filter>-->
<!-- </activity>-->
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,6 @@ public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, @NonNull R
setOnItemClickListener((view, position) -> {
IconHolderView holderView = (IconHolderView) view;
LauncherIconController.LauncherIcon icon = availableIcons.get(position);
if (icon.premium && !UserConfig.hasPremiumOnAccounts()) {
// fragment.showDialog(new PremiumFeatureBottomSheet(fragment, PremiumPreviewFragment.PREMIUM_FEATURE_APPLICATION_ICONS, true));
return;
}

if (LauncherIconController.isEnabled(icon)) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ public static void setIcon(LauncherIcon icon) {
}

public enum LauncherIcon {
DEFAULT("DefaultIcon", R.drawable.icon, R.drawable.icon, R.string.AppIconDefault),
DEFAULT("DefaultIcon", R.color.ic_launcher_background, R.drawable.ic_launcher_foreground, R.string.AppIconDefault),
OFFICIAL("OFFICIAL", R.drawable.icon_background_sa, R.mipmap.icon_foreground_sa, R.string.Official),
MAINICON("MainIcon", R.drawable.mainicon, R.drawable.mainicon, R.string.AppIconMain),
ICON1("ICON1", R.drawable.icon_1, R.drawable.icon_1, R.string.icon_1),
ICON2("ICON2", R.drawable.icon_2, R.drawable.icon_2, R.string.icon_2),
ICON3("ICON3", R.drawable.icon_3, R.drawable.icon_3, R.string.icon_3),
Expand Down
Binary file not shown.
38 changes: 38 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,38 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="5120"
android:viewportHeight="5120">
<group android:scaleX="0.5818421"
android:scaleY="0.5818421"
android:translateX="1085.0679"
android:translateY="1165.6924">
<path
android:pathData="M877,3383c-10,-12 -19,-54 -26,-118 -5,-55 -24,-217 -41,-360 -17,-143 -33,-287 -37,-321l-6,-60 99,-41c179,-75 331,-121 534,-164l135,-28 23,27c12,15 58,79 102,143 83,123 103,145 120,134 6,-4 10,-67 10,-169l0,-163 38,-6c20,-3 114,-9 208,-13l171,-7 6,363c11,583 10,686 -9,704 -13,13 -46,16 -204,16l-188,0 -20,-17c-11,-10 -100,-144 -198,-298 -290,-458 -371,-575 -399,-575 -22,0 -23,22 -8,105 7,44 18,103 23,130 5,28 23,129 40,225 17,96 40,226 51,289l20,114 -18,18c-12,12 -77,29 -201,53 -101,20 -189,36 -196,36 -7,0 -20,-8 -29,-17z"
android:fillColor="#F5574A"/>
<path
android:pathData="M2665,3300c-123,-30 -206,-113 -255,-255 -22,-64 -100,-450 -100,-495 0,-15 6,-32 13,-38 13,-10 261,-72 289,-72 20,0 18,-9 73,240 30,133 54,219 70,246 23,40 74,74 109,74 18,0 112,-45 119,-57 3,-5 -8,-123 -24,-263 -16,-140 -28,-266 -27,-280l3,-25 82,-7 83,-8 94,30 93,30 17,128c9,70 27,231 41,357 14,127 27,240 29,253 5,33 -14,38 -180,57 -101,11 -157,22 -195,39 -107,47 -252,67 -334,46z"
android:fillColor="#F5574A"/>
<path
android:pathData="M3967,3264c-13,-13 -8,-534 5,-534 6,0 59,13 117,29 58,17 131,35 163,41l56,11 7,82c3,45 5,147 3,227l-3,145 -171,3c-93,1 -173,-1 -177,-4z"
android:fillColor="#F5574A"/>
<path
android:pathData="M3476,3158c-8,-26 -15,-633 -8,-646 6,-9 50,9 168,68 87,44 164,80 171,80 18,0 24,88 21,305l-3,200 -173,3c-133,2 -173,0 -176,-10z"
android:fillColor="#F5574A"/>
<path
android:pathData="M4185,2810c-44,-10 -113,-28 -152,-40l-73,-22 0,-338c0,-185 -3,-364 -6,-397l-7,-60 169,-6c93,-3 172,-3 176,1 3,4 9,204 13,445l8,437 -24,-1c-13,0 -60,-9 -104,-19z"
android:fillColor="#2F3028"/>
<path
android:pathData="M3790,2683c-8,-3 -84,-39 -167,-80l-153,-75 0,-338 0,-337 83,-6c112,-9 257,-9 257,1 0,4 2,45 4,92 4,78 8,451 6,663 0,48 -3,87 -7,86 -5,0 -15,-3 -23,-6z"
android:fillColor="#2F3028"/>
<path
android:pathData="M762,2468c-41,-325 -66,-590 -56,-606 9,-14 42,-20 165,-34 218,-23 280,-23 312,2 60,48 375,467 360,480 -4,4 -48,15 -98,24 -185,35 -408,103 -576,176 -51,22 -93,40 -94,40 -1,0 -7,-37 -13,-82z"
android:fillColor="#2F3028"/>
<path
android:pathData="M3185,2414c-55,-18 -108,-33 -117,-34 -10,0 -18,-4 -18,-9 0,-10 212,-33 222,-23 7,7 23,103 17,101 -2,0 -49,-16 -104,-35z"
android:fillColor="#2F3028"/>
<path
android:pathData="M1790,2021l0,-261 200,0c152,0 202,3 205,13 2,6 6,118 8,248l5,236 -152,7c-83,3 -177,9 -208,12l-58,7 0,-262z"
android:fillColor="#2F3028"/>
</group>
</vector>
Binary file removed TMessagesProj/src/main/res/drawable/icon.png
Binary file not shown.
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="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

This file was deleted.

This file was deleted.

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="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
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.
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.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
<color name="ic_launcher_background">#ECDCDB</color>
</resources>

0 comments on commit aa405a0

Please sign in to comment.