1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-19 20:21:45 -05:00

Use theme-specific color for message list divider

This commit is contained in:
cketti 2013-02-01 03:18:04 +01:00
parent 6b143d845a
commit 3439a2326d
3 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,7 @@
android:id="@+id/message_list_divider" android:id="@+id/message_list_divider"
android:layout_width="1px" android:layout_width="1px"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:background="#ffcccccc" android:background="?attr/messageListDividerColor"
android:visibility="gone" android:visibility="gone"
tools:ignore="PxUsage" /> tools:ignore="PxUsage" />

View File

@ -49,6 +49,7 @@
<attr name="messageListThreadCountForegroundColor" format="reference|color"/> <attr name="messageListThreadCountForegroundColor" format="reference|color"/>
<attr name="messageListThreadCountBackground" format="reference|color"/> <attr name="messageListThreadCountBackground" format="reference|color"/>
<attr name="messageListActiveItemBackgroundColor" format="reference|color"/> <attr name="messageListActiveItemBackgroundColor" format="reference|color"/>
<attr name="messageListDividerColor" format="reference|color"/>
</declare-styleable> </declare-styleable>

View File

@ -48,6 +48,7 @@
<item name="messageListThreadCountForegroundColor">?android:attr/colorBackground</item> <item name="messageListThreadCountForegroundColor">?android:attr/colorBackground</item>
<item name="messageListThreadCountBackground">@drawable/thread_count_box_light</item> <item name="messageListThreadCountBackground">@drawable/thread_count_box_light</item>
<item name="messageListActiveItemBackgroundColor">#ff2ea7d1</item> <item name="messageListActiveItemBackgroundColor">#ff2ea7d1</item>
<item name="messageListDividerColor">#ffcccccc</item>
</style> </style>
<style name="Theme.K9.Dark.Base" parent="Theme.Sherlock"> <style name="Theme.K9.Dark.Base" parent="Theme.Sherlock">
@ -98,6 +99,7 @@
<item name="messageListThreadCountForegroundColor">?android:attr/colorBackground</item> <item name="messageListThreadCountForegroundColor">?android:attr/colorBackground</item>
<item name="messageListThreadCountBackground">@drawable/thread_count_box_dark</item> <item name="messageListThreadCountBackground">@drawable/thread_count_box_dark</item>
<item name="messageListActiveItemBackgroundColor">#ff33b5e5</item> <item name="messageListActiveItemBackgroundColor">#ff33b5e5</item>
<item name="messageListDividerColor">#ff333333</item>
</style> </style>
<style name="Theme.K9.Light" parent="Theme.K9.Light.Base"> <style name="Theme.K9.Light" parent="Theme.K9.Light.Base">