Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a monochrome icon for LeakCanary.
Android 13 now supports themed app icons, including Monochrome Icons. This change adds an additional Vector Drawable icon which will serve as the Monochrome Icon. It also sets the Adaptive-Icon `monochrome` field. This icon contains some elements of the logo slightly transparent for easier app identification.
- Loading branch information
1 parent
f91c479
commit 2d4c62d
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
leakcanary-android-core/src/main/res/drawable/leak_canary_icon_monochrome.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="108dp" | ||
android:height="108dp" | ||
android:viewportWidth="108" | ||
android:viewportHeight="108"> | ||
<path | ||
android:fillAlpha="0.9" | ||
android:pathData="M34.7,52.5l37,-15.2c0,0 0,0 0,0c-0.2,11.3 -7.4,25 -24.3,29.3c-2.1,-3.5 -8.1,-11.2 -12.9,-13.7C34.6,52.7 34.6,52.6 34.7,52.5z" | ||
android:fillColor="#F5BD14" | ||
android:fillType="evenOdd"/> | ||
<path | ||
android:fillAlpha="0.9" | ||
android:pathData="M50.2,34.2l-2.8,7.8l-0.4,-0.5c-1.6,-2.1 -3.5,-3.9 -5.6,-5.4l4.9,-5.5l-0.3,6L50.2,34.2z" | ||
android:fillColor="#F86932"/> | ||
<path | ||
android:pathData="M38.6,35.4c-6.2,0 -11.3,5.1 -11.3,11.3c0,0 0,0 0,0C27.3,53 32.4,58 38.6,58c6.2,0 11.3,-5.1 11.3,-11.3c0,0 0,0 0,0C49.9,40.5 44.9,35.4 38.6,35.4zM42.3,42.3l-1.5,0.5l0.6,1.7c0.1,0.4 -0.1,0.7 -0.4,0.9c-0.1,0 -0.1,0 -0.2,0c-0.3,0 -0.6,-0.2 -0.6,-0.5l-0.6,-1.7l-1,0.3c-0.4,0.1 -0.7,-0.1 -0.9,-0.4c-0.1,-0.4 0.1,-0.7 0.4,-0.9l1,-0.3l-0.5,-1.4c-0.1,-0.4 0.1,-0.7 0.4,-0.9c0.4,-0.1 0.7,0.1 0.9,0.4l0.5,1.4l1.5,-0.5c0.4,-0.1 0.7,0.1 0.9,0.4C42.9,41.8 42.7,42.2 42.3,42.3z" | ||
android:fillColor="#FFCC32"/> | ||
<path | ||
android:pathData="M27.3,46.9c0.1,13.5 9.1,25.8 22.8,29.5c10.4,2.8 21.1,-0.1 28.5,-6.9c-3.3,0.2 -6.6,-0.1 -10,-1C60.5,66.3 54,61 50,54.1L27.3,46.9z" | ||
android:fillColor="#FFCC32" | ||
android:fillType="evenOdd"/> | ||
<path | ||
android:pathData="M80.4,42.3L42.7,55.2c0,0.1 -0.1,0.3 -0.2,0.4c4.6,2.8 10.1,10.9 11.9,14.5c3.6,-0.7 6.8,-1.8 9.7,-3.2c-1,-0.4 -2,-1 -2.9,-1.8L61,64.9c-0.3,-0.2 -0.3,-0.6 -0.1,-0.9c0.2,-0.3 0.6,-0.3 0.9,-0.1l0.2,0.2c1,0.9 2.3,1.6 3.6,1.9c0.4,-0.2 0.8,-0.4 1.1,-0.7c-0.6,-0.3 -1.2,-0.6 -1.8,-1l-0.2,-0.2c-0.3,-0.2 -0.4,-0.6 -0.2,-0.9c0.2,-0.3 0.6,-0.4 0.9,-0.2l0.2,0.2c0.7,0.5 1.5,0.9 2.3,1.2c0.4,-0.3 0.7,-0.5 1,-0.8c-0.2,-0.1 -0.4,-0.2 -0.6,-0.4l-0.2,-0.2c-0.3,-0.2 -0.4,-0.6 -0.2,-0.9c0.2,-0.3 0.6,-0.4 0.9,-0.2l0.2,0.2c0.3,0.2 0.6,0.4 0.9,0.6c6.6,-5.6 9.9,-13.3 10.5,-20.3C80.6,42.4 80.5,42.4 80.4,42.3z" | ||
android:fillColor="#FFCC32" | ||
android:fillType="evenOdd"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters