Skip to content

Commit

Permalink
icons
Browse files Browse the repository at this point in the history
check_favorite
  • Loading branch information
forrestguice committed Feb 11, 2024
1 parent dae1fbf commit f8d2fde
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/main/res/drawable/check_favorite_dark.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/check_favorite_dark_off" android:state_checked="false"/>
<item android:drawable="@drawable/check_favorite_dark_on" android:state_checked="true"/>
<item android:drawable="@drawable/check_favorite_dark_off" />
</selector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/check_favorite_dark_off.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="#FFFFFF"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffff" android:pathData="M16.5,3c-1.74,0 -3.41,0.81 -4.5,2.09C10.91,3.81 9.24,3 7.5,3 4.42,3 2,5.42 2,8.5c0,3.78 3.4,6.86 8.55,11.54L12,21.35l1.45,-1.32C18.6,15.36 22,12.28 22,8.5 22,5.42 19.58,3 16.5,3zM12.1,18.55l-0.1,0.1 -0.1,-0.1C7.14,14.24 4,11.39 4,8.5 4,6.5 5.5,5 7.5,5c1.54,0 3.04,0.99 3.57,2.36h1.87C13.46,5.99 14.96,5 16.5,5c2,0 3.5,1.5 3.5,3.5 0,2.89 -3.14,5.74 -7.9,10.05z"/>
</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/check_favorite_dark_on.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="#FFFFFF"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffff" android:pathData="M12,21.35l-1.45,-1.32C5.4,15.36 2,12.28 2,8.5 2,5.42 4.42,3 7.5,3c1.74,0 3.41,0.81 4.5,2.09C13.09,3.81 14.76,3 16.5,3 19.58,3 22,5.42 22,8.5c0,3.78 -3.4,6.86 -8.55,11.54L12,21.35z"/>
</vector>
6 changes: 6 additions & 0 deletions app/src/main/res/drawable/check_favorite_light.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/check_favorite_light_off" android:state_checked="false"/>
<item android:drawable="@drawable/check_favorite_light_on" android:state_checked="true"/>
<item android:drawable="@drawable/check_favorite_light_off" />
</selector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/check_favorite_light_off.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="#ff9e9e9e"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffff" android:pathData="M16.5,3c-1.74,0 -3.41,0.81 -4.5,2.09C10.91,3.81 9.24,3 7.5,3 4.42,3 2,5.42 2,8.5c0,3.78 3.4,6.86 8.55,11.54L12,21.35l1.45,-1.32C18.6,15.36 22,12.28 22,8.5 22,5.42 19.58,3 16.5,3zM12.1,18.55l-0.1,0.1 -0.1,-0.1C7.14,14.24 4,11.39 4,8.5 4,6.5 5.5,5 7.5,5c1.54,0 3.04,0.99 3.57,2.36h1.87C13.46,5.99 14.96,5 16.5,5c2,0 3.5,1.5 3.5,3.5 0,2.89 -3.14,5.74 -7.9,10.05z"/>
</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/check_favorite_light_on.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="#ff9e9e9e"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffff" android:pathData="M12,21.35l-1.45,-1.32C5.4,15.36 2,12.28 2,8.5 2,5.42 4.42,3 7.5,3c1.74,0 3.41,0.81 4.5,2.09C13.09,3.81 14.76,3 16.5,3 19.58,3 22,5.42 22,8.5c0,3.78 -3.4,6.86 -8.55,11.54L12,21.35z"/>
</vector>
2 changes: 2 additions & 0 deletions app/src/main/res/values-night/icons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
<drawable name="ic_action_about_ref">@drawable/ic_action_about</drawable>
<drawable name="ic_action_settings_ref">@drawable/ic_action_settings_dark</drawable>
<drawable name="ic_action_help_ref">@drawable/ic_action_help</drawable>

<drawable name="check_favorite_ref">@drawable/check_favorite_dark</drawable>
</resources>
2 changes: 2 additions & 0 deletions app/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<attr name="icActionSettings" format="reference" />
<attr name="icActionHelp" format="reference" />

<attr name="checkFavorite" format="reference" />

<attr name="text_size_tiny" format="dimension" />
<attr name="text_size_xsmall" format="dimension" />
<attr name="text_size_small" format="dimension" />
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/icons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
<drawable name="ic_action_about_ref">@drawable/ic_action_about_light</drawable>
<drawable name="ic_action_settings_ref">@drawable/ic_action_settings_light</drawable>
<drawable name="ic_action_help_ref">@drawable/ic_action_help_light</drawable>

<drawable name="check_favorite_ref">@drawable/check_favorite_light</drawable>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<item name="icActionAbout">@drawable/ic_action_about_ref</item>
<item name="icActionSettings">@drawable/ic_action_settings_ref</item>
<item name="icActionHelp">@drawable/ic_action_help_ref</item>
<item name="checkFavorite">@drawable/check_favorite_ref</item>
<item name="text_size_tiny">@dimen/text_size_tiny</item>
<item name="text_size_xsmall">@dimen/text_size_xsmall</item>
<item name="text_size_small">@dimen/text_size_small</item>
Expand Down Expand Up @@ -118,6 +119,7 @@
<item name="icActionAbout">@drawable/ic_action_about_light</item>
<item name="icActionSettings">@drawable/ic_action_settings_light</item>
<item name="icActionHelp">@drawable/ic_action_help_light</item>
<item name="checkFavorite">@drawable/check_favorite_light</item>
<item name="bottomSheetDialogTheme">@style/Theme.Design.Light.BottomSheetDialog</item>
<item name="toolbarTheme">@style/ThemeOverlay.AppCompat.ActionBar</item>
<item name="text_size_tiny">@dimen/text_size_tiny</item>
Expand Down Expand Up @@ -214,6 +216,7 @@
<item name="icActionAbout">@drawable/ic_action_about</item>
<item name="icActionSettings">@drawable/ic_action_settings_dark</item>
<item name="icActionHelp">@drawable/ic_action_help</item>
<item name="checkFavorite">@drawable/check_favorite_dark</item>
<item name="bottomSheetDialogTheme">@style/Theme.Design.BottomSheetDialog</item>
<item name="toolbarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>
<item name="text_size_tiny">@dimen/text_size_tiny</item>
Expand Down

0 comments on commit f8d2fde

Please sign in to comment.