Skip to content

Commit

Permalink
Add icons in "About" section
Browse files Browse the repository at this point in the history
  • Loading branch information
sommd committed Nov 17, 2018
1 parent 92517c7 commit 9caeec8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
9 changes: 9 additions & 0 deletions app/src/main/res/drawable-anydpi/ic_bug.xml
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M20,8h-2.81c-0.45,-0.78 -1.07,-1.45 -1.82,-1.96L17,4.41 15.59,3l-2.17,2.17C12.96,5.06 12.49,5 12,5c-0.49,0 -0.96,0.06 -1.41,0.17L8.41,3 7,4.41l1.62,1.63C7.88,6.55 7.26,7.22 6.81,8L4,8v2h2.09c-0.05,0.33 -0.09,0.66 -0.09,1v1L4,12v2h2v1c0,0.34 0.04,0.67 0.09,1L4,16v2h2.81c1.04,1.79 2.97,3 5.19,3s4.15,-1.21 5.19,-3L20,18v-2h-2.09c0.05,-0.33 0.09,-0.66 0.09,-1v-1h2v-2h-2v-1c0,-0.34 -0.04,-0.67 -0.09,-1L20,10L20,8zM14,16h-4v-2h4v2zM14,12h-4v-2h4v2z" />
</vector>
9 changes: 9 additions & 0 deletions app/src/main/res/drawable-anydpi/ic_code.xml
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M9.4,16.6L4.8,12l4.6,-4.6L8,6l-6,6 6,6 1.4,-1.4zM14.6,16.6l4.6,-4.6 -4.6,-4.6L16,6l6,6 -6,6 -1.4,-1.4z" />
</vector>
8 changes: 6 additions & 2 deletions app/src/main/res/xml/preferences.xml
Expand Up @@ -146,13 +146,17 @@
</PreferenceCategory>

<PreferenceCategory android:title="@string/pref_about_title">
<Preference android:title="@string/pref_about_project_title">
<Preference
android:icon="@drawable/ic_code"
android:title="@string/pref_about_project_title">
<intent
android:action="android.intent.action.VIEW"
android:data="https://github.com/sommd/auto-mute" />
</Preference>

<Preference android:title="@string/pref_about_issue_title">
<Preference
android:icon="@drawable/ic_bug"
android:title="@string/pref_about_issue_title">
<intent
android:action="android.intent.action.VIEW"
android:data="https://github.com/sommd/auto-mute/issues/new" />
Expand Down

0 comments on commit 9caeec8

Please sign in to comment.