Skip to content

Commit

Permalink
Fix icons for notification items
Browse files Browse the repository at this point in the history
  • Loading branch information
spacecowboy committed Nov 17, 2015
1 parent fe617f6 commit 5ecbc29
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 6 deletions.
26 changes: 26 additions & 0 deletions app/src/main/res/drawable/ic_alarm_24dp_black_active.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!--
Copyright (c) 2015 Jonas Kalderstam.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<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="#8a000000"
android:pathData="M22,5.72l-4.6,-3.86 -1.29,1.53 4.6,3.86L22,5.72zM7.88,3.39L6.6,1.86 2,5.71l1.29,1.53 4.59,-3.85zM12.5,8H11v6l4.75,2.85 0.75,-1.23 -4,-2.37V8zM12,4c-4.97,0 -9,4.03 -9,9s4.02,9 9,9c4.97,0 9,-4.03 9,-9s-4.03,-9 -9,-9zm0,16c-3.87,0 -7,-3.13 -7,-7s3.13,-7 7,-7 7,3.13 7,7 -3.13,7 -7,7z"/>
</vector>
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#8affffff"
android:fillColor="#FFFFFFFF"
android:pathData="M7.88,3.39L6.6,1.86 2,5.71l1.29,1.53 4.59,-3.85zM22,5.72l-4.6,-3.86 -1.29,1.53 4.6,3.86L22,5.72zM12,4c-4.97,0 -9,4.03 -9,9s4.02,9 9,9c4.97,0 9,-4.03 9,-9s-4.03,-9 -9,-9zm0,16c-3.87,0 -7,-3.13 -7,-7s3.13,-7 7,-7 7,3.13 7,7 -3.13,7 -7,7zm1,-11h-2v3H8v2h3v3h2v-3h3v-2h-3V9z"/>
</vector>
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#8affffff"
android:fillColor="#FFFFFFFF"
android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/>
</vector>
4 changes: 2 additions & 2 deletions app/src/main/res/layout/notification_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
android:layout_marginLeft="4dp"
android:contentDescription="Remove reminder"
android:scaleType="center"
android:src="@drawable/ic_clear_24dp_black_active"
android:src="?ic_clear_24dp_active"
tools:ignore="HardcodedText" />

<ImageView
Expand All @@ -48,7 +48,7 @@
android:minWidth="8dp"
android:padding="0dp"
android:scaleType="center"
android:src="@drawable/ic_alarm_24dp_white"
android:src="?ic_alarm_24dp_active"
tools:ignore="HardcodedText" />

<TextView
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/attr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

<attr name="ic_clear_24dp_active" format="reference"/>
<attr name="ic_alarm_add_24dp_active" format="reference"/>
<attr name="ic_alarm_24dp_active" format="reference"/>

<!-- Unknown -->
<attr name="my_list_selector" format="reference" />
Expand Down
6 changes: 4 additions & 2 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<item name="iconTint">@color/icon_tint_light</item>
<item name="ic_clear_24dp_active">@drawable/ic_clear_24dp_black_active</item>
<item name="ic_alarm_add_24dp_active">@drawable/ic_alarm_add_24dp_black_active</item>
<item name="ic_alarm_24dp_active">@drawable/ic_alarm_24dp_black_active</item>

<item name="NavDrawerStyle">@style/LightNavbarTheme</item>
<item name="alertDialogTheme">@style/LightDialogStyle</item>
Expand All @@ -54,8 +55,9 @@
<item name="separatorColor">@color/dark_separator_color</item>
<item name="selectedItemColor">@color/dark_selected_item_color</item>
<item name="iconTint">@color/icon_tint_dark</item>
<item name="ic_clear_24dp_active">@drawable/ic_clear_24dp_white_active</item>
<item name="ic_alarm_add_24dp_active">@drawable/ic_alarm_add_24dp_white_active</item>
<item name="ic_clear_24dp_active">@drawable/ic_clear_24dp_white</item>
<item name="ic_alarm_add_24dp_active">@drawable/ic_alarm_add_24dp_white</item>
<item name="ic_alarm_24dp_active">@drawable/ic_alarm_24dp_white</item>

<item name="windowActionModeOverlay">true</item>
<item name="actionModeBackground">@color/primary_dark</item>
Expand Down

0 comments on commit 5ecbc29

Please sign in to comment.