Skip to content

Commit

Permalink
Added adaptive icon for API levels 26+
Browse files Browse the repository at this point in the history
  • Loading branch information
jberkel committed Mar 23, 2018
1 parent d30453d commit 13e14ff
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Clean up security settings for IMAP servers (#839)
* Implemented runtime permissions for Android 6.0+
* Added dark/light theme switcher
* Modernized UI (Material/AppCompat)
* Modernized UI (Material/AppCompat), added adaptive icon
* Simplify IMAP search logic to prevent timeouts
* Retry connection timeouts more aggressively
* Call logs: support rejected / voicemail
Expand Down
21 changes: 21 additions & 0 deletions app/src/main/res/drawable-anydpi-v26/ic_sms_backup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/adaptive_icon_background"/>
<foreground>
<!-- resized to fit into 66dp circle ("safe zone") inside 108dp square
https://medium.com/google-design/designing-adaptive-icons-515af294c783
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="9072"
android:viewportHeight="9072">

<path android:fillColor="#E93D2F" android:pathData="M2660.083 5301.188l980.262 558.041-980.262 551.296z" />
<path android:fillColor="#A8251B" android:pathData="M4587.512 5301.188v1109.337h-1927.43z" />
<path android:fillColor="#D8D8D8" android:pathData="M3632.334 4533.206l955.178 767.982-969.83 557.602-957.6-557.602z" />
<path android:fillColor="#439F06" android:pathData="M3883.43 2864.376c0-145.117 60.374-204.347 208.277-204.347H6202.5c147.903 0 208.28 59.23 208.28 204.347v1663.411c0 145.118-60.377 204.348-208.28 204.348h-1753.34l-466.279 373.217c-14.743 22.165-100.2 89.81-99.145-24.328l-0.307-2216.648z" />
<path android:fillColor="#F1F1F1" android:pathData="M5995.678 3160.557v193.547H4298.091v-193.547h1697.587zm0 445.051v193.593H4298.091v-193.593h1697.587zm-585.27 431.825v193.593H4293.69v-193.593h1116.717z" />
</vector>
</foreground>
</adaptive-icon>
2 changes: 2 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<color name="secondary_text">@color/envelope_grey</color>
<color name="tertiary_text">@color/secondary_text</color>

<color name="adaptive_icon_background">#ffffff</color>

<style name="SMSBackupPlusTheme.Light" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primary_dark</item>
Expand Down
Binary file modified graphic-assets/sms-backup.sketch
Binary file not shown.

0 comments on commit 13e14ff

Please sign in to comment.