Skip to content

Commit

Permalink
feat: add icons in about screen
Browse files Browse the repository at this point in the history
  • Loading branch information
timschneeb committed Mar 26, 2023
1 parent 94e0dcf commit 4150cd4
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 9 deletions.
11 changes: 11 additions & 0 deletions app/src/main/res/drawable/ic_baseline_github_24dp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- drawable/github.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="?attr/colorControlNormal"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#000000"
android:pathData="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z" />
</vector>
11 changes: 11 additions & 0 deletions app/src/main/res/drawable/ic_baseline_google_play_24dp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- drawable/google_play.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="?attr/colorControlNormal"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#000000"
android:pathData="M3,20.5V3.5C3,2.91 3.34,2.39 3.84,2.15L13.69,12L3.84,21.85C3.34,21.6 3,21.09 3,20.5M16.81,15.12L6.05,21.34L14.54,12.85L16.81,15.12M20.16,10.81C20.5,11.08 20.75,11.5 20.75,12C20.75,12.5 20.53,12.9 20.18,13.18L17.89,14.5L15.39,12L17.89,9.5L20.16,10.81M6.05,2.66L16.81,8.88L14.54,11.15L6.05,2.66Z" />
</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/ic_twotone_history_24dp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="?attr/colorControlNormal"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M13,3c-4.97,0 -9,4.03 -9,9L1,12l3.89,3.89 0.07,0.14L9,12L6,12c0,-3.87 3.13,-7 7,-7s7,3.13 7,7 -3.13,7 -7,7c-1.93,0 -3.68,-0.79 -4.94,-2.06l-1.42,1.42C8.27,19.99 10.51,21 13,21c4.97,0 9,-4.03 9,-9s-4.03,-9 -9,-9zM12,8v5l4.25,2.52 0.77,-1.28 -3.52,-2.09L13.5,8z"/>
</vector>
18 changes: 9 additions & 9 deletions app/src/main/res/xml/app_about_preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
android:title="@string/credits_version"
android:summary="x.x.x"
android:key="@string/key_credits_version"
app:allowDividerAbove="true"
app:iconSpaceReserved="false" />
android:icon="@drawable/ic_twotone_history_24dp"
app:allowDividerAbove="true" />

<Preference
android:title="@string/credits_build_info"
android:summary="Unknown"
android:key="@string/key_credits_build_info"
app:iconSpaceReserved="false" />
android:summary="@string/value_not_set"
android:icon="@drawable/ic_twotone_info_24dp"
android:key="@string/key_credits_build_info" />

<Preference
android:title="@string/credits_project_page"
android:summary="@string/credits_project_page_summary"
app:iconSpaceReserved="false">
android:icon="@drawable/ic_baseline_github_24dp">
<intent
android:action="android.intent.action.VIEW"
android:data="https://github.com/thepbone/RootlessJamesDSP" />
Expand All @@ -32,7 +32,7 @@
android:key="@string/key_credits_google_play"
android:title="@string/credits_project_play_page"
android:summary="@string/credits_project_play_page_summary"
app:iconSpaceReserved="false">
android:icon="@drawable/ic_baseline_google_play_24dp">
<intent
android:action="android.intent.action.VIEW"
android:data="https://play.google.com/store/apps/details?id=me.timschneeberger.rootlessjamesdsp" />
Expand All @@ -42,13 +42,13 @@
android:key="@string/key_credits_check_update"
android:title="@string/credits_project_check_update"
android:summary="@string/credits_project_check_update_summary"
app:iconSpaceReserved="false">
android:icon="@drawable/ic_twotone_download_24">
</Preference>

<Preference
android:title="@string/credits_project_translate"
android:summary="@string/credits_project_translate_summary"
app:iconSpaceReserved="false">
android:icon="@drawable/ic_twotone_translate_24dp">
<intent
android:action="android.intent.action.VIEW"
android:data="https://crowdin.com/project/rootlessjamesdsp" />
Expand Down

0 comments on commit 4150cd4

Please sign in to comment.