1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -05:00
k-9/res/values/attrs.xml
m0viefreak a74d57cb71 MessageView: Theme fix when global and message view theme differ
- Since the split-view change, MessageView is only a fragment, so we
  can't call setTheme() anymore so easily.
  Instead, use a ContextThemeWrapper and use that to inflate the
  layout. This way the message header and attachment view
  are styled correctly.

- The HTC WebView fix in SingleMessageView was returning the wrong
  background color, when message view theme and global theme differ,
  because it always used the global theme to retrieve it.
  Fix: Specifically put the light/dark values in the themes.xml,
  and get them using getContext().getTheme().resolveAttribute().
  getContext() will use the ContextThemeWrapper from above, so
  even if the global and message view themes differ, it aleays
  returns the correct one.
  The getThemeBackgroundColor() method added to the K9ActivityMagic
  interface in 309eeb72ac is now not
  needed anymore, and was removed.
2013-02-04 19:30:40 +01:00

58 lines
3.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="K9Styles">
<attr name="iconFolder" format="reference" />
<attr name="listDivider" format="reference" />
<attr name="iconListItemMenu" format="reference" />
<attr name="iconMenuInfoDetails" format="reference" />
<attr name="iconActionAddAttachment" format="reference" />
<attr name="iconActionAddCcBcc" format="reference" />
<attr name="iconActionArchive" format="reference" />
<attr name="iconActionCompose" format="reference" />
<attr name="iconActionDelete" format="reference" />
<attr name="iconActionMoveOrCopy" format="reference" />
<attr name="iconActionNextMessage" format="reference" />
<attr name="iconActionPreviousMessage" format="reference" />
<attr name="iconActionRefresh" format="reference" />
<attr name="iconActionSearch" format="reference" />
<attr name="iconActionSearchFolder" format="reference" />
<attr name="iconActionSend" format="reference" />
<attr name="iconActionSettings" format="reference" />
<attr name="iconActionSingleMessageOptions" format="reference" />
<attr name="iconActionSort" format="reference" />
<attr name="iconActionSpam" format="reference" />
<attr name="iconActionFlag" format="reference" />
<attr name="iconActionUnflag" format="reference" />
<attr name="iconActionMarkAsRead" format="reference" />
<attr name="iconActionMarkAsUnread" format="reference" />
<attr name="iconActionRemoteSearch" format="reference" />
<attr name="iconMenuAdd" format="reference" />
<attr name="iconMenuAttachment" format="reference" />
<attr name="iconMenuClear" format="reference" />
<attr name="iconMenuCloseClearCancel" format="reference" />
<attr name="iconMenuCompact" format="reference" />
<attr name="iconMenuDelete" format="reference" />
<attr name="iconMenuInbox" format="reference" />
<attr name="iconMenuPreferences" format="reference" />
<attr name="iconMenuRefresh" format="reference" />
<attr name="iconMenuReplyReceipt" format="reference" />
<attr name="iconMenuSaveDraft" format="reference" />
<attr name="iconMenuSearch" format="reference" />
<attr name="iconMenuSelectAll" format="reference" />
<attr name="iconMenuShowFolders" format="reference" />
<attr name="textColorPrimaryRecipientDropdown" format="reference" />
<attr name="textColorSecondaryRecipientDropdown" format="reference" />
<attr name="backgroundColorChooseAccountHeader" format="color" />
<attr name="messageListReadItemBackgroundColor" format="reference|color"/>
<attr name="messageListUnreadItemBackgroundColor" format="reference|color"/>
<attr name="messageListThreadCountForegroundColor" format="reference|color"/>
<attr name="messageListThreadCountBackground" format="reference|color"/>
<attr name="messageListActiveItemBackgroundColor" format="reference|color"/>
<attr name="messageListDividerColor" format="reference|color"/>
<attr name="messageViewHeaderBackgroundColor" format="reference|color"/>
</declare-styleable>
</resources>