mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-12 04:25:08 -05:00
5fa7e65816
- The attachments view still had the wrong background color in case of different global and message themes. - The attachments view used the activity LayoutInflater, but it needs to use the one of the fragment. - The background drawable for the attachments used transparency, and thus was completely invisible in the black theme. Fix it by adding another one for the black theme.
144 lines
9.8 KiB
XML
144 lines
9.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<style name="Theme.K9.Light.Base" parent="Theme.Sherlock.Light">
|
|
<item name="iconFolder">@drawable/folder_light</item>
|
|
<item name="listDivider">@drawable/divider_light</item>
|
|
<item name="iconListItemMenu">@drawable/dropdown_ic_arrow_normal_holo_light</item>
|
|
<item name="iconMenuInfoDetails">@android:drawable/ic_menu_info_details</item>
|
|
<item name="iconActionAddAttachment">@drawable/ic_action_add_attachment_light</item>
|
|
<item name="iconActionAddCcBcc">@drawable/ic_action_add_cc_bbc_light</item>
|
|
<item name="iconActionArchive">@drawable/ic_action_archive_light</item>
|
|
<item name="iconActionCompose">@drawable/ic_action_compose_light</item>
|
|
<item name="iconActionDelete">@drawable/ic_action_delete_light</item>
|
|
<item name="iconActionMoveOrCopy">@drawable/ic_action_move_or_copy_light</item>
|
|
<item name="iconActionNextMessage">@drawable/ic_action_next_message_light</item>
|
|
<item name="iconActionPreviousMessage">@drawable/ic_action_previous_message_light</item>
|
|
<item name="iconActionRefresh">@drawable/ic_action_refresh_light</item>
|
|
<item name="iconActionSearch">@drawable/ic_action_search_light</item>
|
|
<item name="iconActionSearchFolder">@drawable/action_search_folder_light</item>
|
|
<item name="iconActionSend">@drawable/ic_action_send_light</item>
|
|
<item name="iconActionSettings">@drawable/ic_action_settings_light</item>
|
|
<item name="iconActionSingleMessageOptions">@drawable/ic_action_single_message_options_light</item>
|
|
<item name="iconActionSort">@drawable/ic_action_sort_light</item>
|
|
<item name="iconActionSpam">@drawable/ic_action_spam_light</item>
|
|
<item name="iconActionFlag">@drawable/ic_action_flag_light</item>
|
|
<item name="iconActionUnflag">@drawable/ic_action_unflag_light</item>
|
|
<item name="iconActionMarkAsRead">@drawable/ic_action_mark_as_read_light</item>
|
|
<item name="iconActionMarkAsUnread">@drawable/ic_action_mark_as_unread_light</item>
|
|
<item name="iconActionRemoteSearch">@drawable/ic_action_remote_search_light</item>
|
|
<item name="iconMenuAdd">@drawable/ic_menu_add</item>
|
|
<item name="iconMenuAttachment">@drawable/ic_menu_attachment</item>
|
|
<item name="iconMenuClear">@drawable/ic_menu_clear</item>
|
|
<item name="iconMenuCloseClearCancel">@drawable/ic_menu_close_clear_cancel</item>
|
|
<item name="iconMenuCompact">@drawable/ic_menu_compact</item>
|
|
<item name="iconMenuDelete">@drawable/ic_menu_delete</item>
|
|
<item name="iconMenuInbox">@drawable/ic_menu_inbox</item>
|
|
<item name="iconMenuPreferences">@drawable/ic_menu_preferences</item>
|
|
<item name="iconMenuRefresh">@drawable/ic_menu_refresh</item>
|
|
<item name="iconMenuReplyReceipt">@drawable/ic_menu_reply_receipt</item>
|
|
<item name="iconMenuSaveDraft">@drawable/ic_menu_save_draft</item>
|
|
<item name="iconMenuSearch">@drawable/ic_menu_search</item>
|
|
<item name="iconMenuSelectAll">@drawable/ic_menu_select_all</item>
|
|
<item name="iconMenuShowFolders">@drawable/ic_show_folders</item>
|
|
<item name="textColorPrimaryRecipientDropdown">@android:color/primary_text_light</item>
|
|
<item name="textColorSecondaryRecipientDropdown">@android:color/secondary_text_light</item>
|
|
<item name="messageListReadItemBackgroundColor">#80cdcdcd</item>
|
|
<item name="messageListUnreadItemBackgroundColor">#00ffffff</item>
|
|
<item name="messageListThreadCountForegroundColor">?android:attr/colorBackground</item>
|
|
<item name="messageListThreadCountBackground">@drawable/thread_count_box_light</item>
|
|
<item name="messageListActiveItemBackgroundColor">#ff2ea7d1</item>
|
|
<item name="messageListDividerColor">#ffcccccc</item>
|
|
<item name="messageViewHeaderBackgroundColor">#ffffffff</item>
|
|
<item name="messageViewAttachmentBackground">@drawable/attachment_text_box_light</item>
|
|
</style>
|
|
|
|
<style name="Theme.K9.Dark.Base" parent="Theme.Sherlock">
|
|
<item name="android:windowBackground">@android:color/black</item>
|
|
<item name="iconFolder">@drawable/folder_dark</item>
|
|
<item name="listDivider">@drawable/divider_dark</item>
|
|
<item name="iconListItemMenu">@drawable/dropdown_ic_arrow_normal_holo_dark</item>
|
|
<item name="iconMenuInfoDetails">@android:drawable/ic_menu_info_details</item>
|
|
<item name="iconActionAddAttachment">@drawable/ic_action_add_attachment_dark</item>
|
|
<item name="iconActionAddCcBcc">@drawable/ic_action_add_cc_bcc_dark</item>
|
|
<item name="iconActionArchive">@drawable/ic_action_archive_dark</item>
|
|
<item name="iconActionCompose">@drawable/ic_action_compose_dark</item>
|
|
<item name="iconActionDelete">@drawable/ic_action_delete_dark</item>
|
|
<item name="iconActionMoveOrCopy">@drawable/ic_action_move_or_copy_dark</item>
|
|
<item name="iconActionNextMessage">@drawable/ic_action_next_message_dark</item>
|
|
<item name="iconActionPreviousMessage">@drawable/ic_action_previous_message_dark</item>
|
|
<item name="iconActionRefresh">@drawable/ic_action_refresh_dark</item>
|
|
<item name="iconActionSearch">@drawable/ic_action_search_dark</item>
|
|
<item name="iconActionSearchFolder">@drawable/action_search_folder_dark</item>
|
|
<item name="iconActionSend">@drawable/ic_action_send_dark</item>
|
|
<item name="iconActionSettings">@drawable/ic_action_settings_dark</item>
|
|
<item name="iconActionSingleMessageOptions">@drawable/ic_action_single_message_options_dark</item>
|
|
<item name="iconActionSort">@drawable/ic_action_sort_dark</item>
|
|
<item name="iconActionSpam">@drawable/ic_action_spam_dark</item>
|
|
<item name="iconActionFlag">@drawable/ic_action_flag_dark</item>
|
|
<item name="iconActionUnflag">@drawable/ic_action_unflag_dark</item>
|
|
<item name="iconActionMarkAsRead">@drawable/ic_action_mark_as_read_dark</item>
|
|
<item name="iconActionMarkAsUnread">@drawable/ic_action_mark_as_unread_dark</item>
|
|
<item name="iconActionRemoteSearch">@drawable/ic_action_remote_search_dark</item>
|
|
<item name="iconMenuAdd">@drawable/ic_menu_add</item>
|
|
<item name="iconMenuAttachment">@drawable/ic_menu_attachment</item>
|
|
<item name="iconMenuClear">@drawable/ic_menu_clear</item>
|
|
<item name="iconMenuCloseClearCancel">@drawable/ic_menu_close_clear_cancel</item>
|
|
<item name="iconMenuCompact">@drawable/ic_menu_compact</item>
|
|
<item name="iconMenuDelete">@drawable/ic_menu_delete</item>
|
|
<item name="iconMenuInbox">@drawable/ic_menu_inbox</item>
|
|
<item name="iconMenuPreferences">@drawable/ic_menu_preferences</item>
|
|
<item name="iconMenuRefresh">@drawable/ic_menu_refresh</item>
|
|
<item name="iconMenuReplyReceipt">@drawable/ic_menu_reply_receipt</item>
|
|
<item name="iconMenuSaveDraft">@drawable/ic_menu_save_draft</item>
|
|
<item name="iconMenuSearch">@drawable/ic_menu_search</item>
|
|
<item name="iconMenuSelectAll">@drawable/ic_menu_select_all</item>
|
|
<item name="iconMenuShowFolders">@drawable/ic_show_folders</item>
|
|
<item name="textColorPrimaryRecipientDropdown">@android:color/primary_text_dark</item>
|
|
<item name="textColorSecondaryRecipientDropdown">@android:color/secondary_text_dark</item>
|
|
<item name="messageListReadItemBackgroundColor">#00000000</item>
|
|
<item name="messageListUnreadItemBackgroundColor">#805a5a5a</item>
|
|
<item name="messageListThreadCountForegroundColor">?android:attr/colorBackground</item>
|
|
<item name="messageListThreadCountBackground">@drawable/thread_count_box_dark</item>
|
|
<item name="messageListActiveItemBackgroundColor">#ff33b5e5</item>
|
|
<item name="messageListDividerColor">#ff333333</item>
|
|
<item name="messageViewHeaderBackgroundColor">#000000</item>
|
|
<item name="messageViewAttachmentBackground">@drawable/attachment_text_box_dark</item>
|
|
</style>
|
|
|
|
<style name="Theme.K9.Light" parent="Theme.K9.Light.Base">
|
|
</style>
|
|
|
|
<!-- Work around some oddities -->
|
|
<style name="Theme.K9.Dark" parent="Theme.K9.Dark.Base">
|
|
<item name="android:autoCompleteTextViewStyle">@style/Widget.K9.AutoCompleteTextView</item>
|
|
<item name="textColorPrimaryRecipientDropdown">@android:color/primary_text_light</item>
|
|
<item name="textColorSecondaryRecipientDropdown">@android:color/secondary_text_light</item>
|
|
</style>
|
|
|
|
<style name="Theme.K9.Dialog.Light" parent="Theme.K9.Light">
|
|
<item name="backgroundColorChooseAccountHeader">#cccccc</item>
|
|
</style>
|
|
|
|
<!-- Prior to Honeycomb we always use the light theme for dialogs -->
|
|
<style name="Theme.K9.Dialog.Dark" parent="Theme.K9.Dialog.Light" />
|
|
|
|
<style name="Theme.K9.Dialog.Translucent.Dark" parent="Theme.Sherlock.Dialog">
|
|
<item name="android:windowBackground">@android:color/transparent</item>
|
|
<item name="android:colorBackgroundCacheHint">@null</item>
|
|
<item name="android:windowIsTranslucent">true</item>
|
|
<item name="android:windowNoTitle">true</item>
|
|
<item name="android:windowContentOverlay">@null</item>
|
|
<item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item>
|
|
</style>
|
|
|
|
<style name="Theme.K9.Dialog.Translucent.Light" parent="Theme.Sherlock.Light.Dialog">
|
|
<item name="android:windowBackground">@android:color/transparent</item>
|
|
<item name="android:colorBackgroundCacheHint">@null</item>
|
|
<item name="android:windowIsTranslucent">true</item>
|
|
<item name="android:windowNoTitle">true</item>
|
|
<item name="android:windowContentOverlay">@null</item>
|
|
<item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item>
|
|
</style>
|
|
</resources>
|