1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-17 07:30:16 -05:00

Initial example of theme-specific icons.

This commit is contained in:
Jesse Vincent 2012-09-04 20:24:19 -04:00 committed by Andrew Chen
parent cbfe353378
commit 9fe0a299d1
6 changed files with 9 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -33,7 +33,7 @@
android:id="@+id/read_toggle"
android:title="@string/read_toggle_action"
android:showAsAction="always"
android:icon="@drawable/ic_action_toggle_read"
android:icon="?attr/toggleFlaggedMessages"
/>
<item
android:id="@+id/archive"

6
res/values/attrs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="K9Styles">
<attr name="toggleFlaggedMessages" format="reference"/>
</declare-styleable>
</resources>

View File

@ -3,10 +3,12 @@
<style name="Theme.K9.Light" parent="Theme.Sherlock.Light">
<item name="android:autoCompleteTextViewStyle">@style/Widget.K9.AutoCompleteTextView</item>
<item name="toggleFlaggedMessages">@drawable/ic_action_toggle_flag</item>
</style>
<style name="Theme.K9.Dark" parent="Theme.Sherlock">
<item name="android:autoCompleteTextViewStyle">@style/Widget.K9.AutoCompleteTextView</item>
<item name="toggleFlaggedMessages">@drawable/ic_action_toggle_flag_dark</item>
</style>
</resources>