Skip to content

Commit

Permalink
Add adaptive icon
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabiszewski committed May 22, 2018
1 parent d93602b commit 65dab10
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
25 changes: 25 additions & 0 deletions app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!--
~ Copyright (c) 2017 Bartek Fabiszewski
~ http://www.fabiszewski.net
~
~ This file is part of μlogger-android.
~ Licensed under GPL, either version 3, or any later.
~ See <http://www.gnu.org/licenses/>
~ Material Design icon by Google.
~ Released under Apache License 2.0.
-->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="163.93443"
android:viewportHeight="163.93443">
<group android:translateX="31.967213"
android:translateY="31.967213">
<path android:fillColor="#1D71B8" android:pathData="M50,0C31.62,0 16.67,14.95 16.67,33.33c0,17.68 30.3,63.78 31.6,65.73C48.65,99.64 49.3,100 50,100s1.35,-0.36 1.74,-0.94c1.29,-1.95 31.6,-48.05 31.6,-65.73C83.33,14.95 68.38,0 50,0z"/>
<path android:fillColor="#FFFFFF"
android:pathData="M73.17,44.22c0,6.46 0.2,11.71 0.4,15.85H60.25l-0.71,-7.17h-0.3c-1.62,2.93 -5.75,7.97 -12.62,7.97c-2.63,0 -5.55,-0.7 -7.37,-3.13h-0.3l1.21,22.31H26.43V10.7h15.34V37.05c0,6.86 2.02,11.51 7.88,11.51c4.74,0 7.57,-4.04 8.18,-7.17V10.7h15.34V44.22z"
android:strokeColor="#1D71B8" android:strokeWidth="1"/>
</group>
</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/colorWhite"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
1 change: 1 addition & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
<color name="colorYellow">#ffffe600</color>
<color name="colorPink">#fff48787</color>
<color name="colorBlue">#ff80cbc4</color>
<color name="colorWhite">#ffffffff</color>
</resources>

0 comments on commit 65dab10

Please sign in to comment.