<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">

    <style name="Theme.K9.Startup" parent="Theme.K9.Dark">
        <item name="android:windowBackground">@android:color/black</item>
    </style>

    <!-- Empty base themes that can be easily replaced by RRO (Runtime Resource Overlay) themes -->
    <style name="Theme.K9.Light.Base" parent="Theme.MaterialComponents.Light.NoActionBar.Bridge" />
    <style name="Theme.K9.Dark.Base" parent="Theme.MaterialComponents.NoActionBar.Bridge" />

    <style name="Theme.K9.Light.Common" parent="Theme.K9.Light.Base">
        <item name="windowActionModeOverlay">true</item>
        <item name="android:windowLightStatusBar" tools:targetApi="23">true</item>
        <item name="colorPrimary">@color/md_grey_100</item>
        <item name="colorPrimaryDark">@color/md_grey_100</item>
        <item name="bottomBarBackground">@color/md_grey_50</item>

        <item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
        <item name="iconUnifiedInbox">@drawable/ic_inbox_multiple</item>
        <item name="iconFolder">@drawable/ic_folder</item>
        <item name="iconFolderInbox">@drawable/ic_inbox</item>
        <item name="iconFolderOutbox">@drawable/ic_outbox</item>
        <item name="iconFolderArchive">@drawable/ic_archive</item>
        <item name="iconFolderDrafts">@drawable/ic_drafts_folder</item>
        <item name="iconFolderSent">@drawable/ic_send</item>
        <item name="iconFolderSpam">@drawable/ic_alert_octagon</item>
        <item name="iconFolderTrash">@drawable/ic_trash_can</item>
        <item name="iconActionAddAttachment">@drawable/ic_attachment</item>
        <item name="iconActionArchive">@drawable/ic_archive</item>
        <item name="iconActionCompose">@drawable/ic_pencil</item>
        <item name="iconActionDelete">@drawable/ic_trash_can</item>
        <item name="iconActionMove">@drawable/ic_folder</item>
        <item name="iconActionCopy">@drawable/ic_content_copy</item>
        <item name="iconActionNextStatus">@drawable/ic_chevron_right</item>
        <item name="iconActionNextMessage">@drawable/ic_chevron_right</item>
        <item name="iconActionPreviousMessage">@drawable/ic_chevron_left</item>
        <item name="iconActionRefresh">@drawable/ic_refresh</item>
        <item name="iconActionSearch">@drawable/ic_magnify</item>
        <item name="iconActionSearchFolder">@drawable/ic_folder_magnify</item>
        <item name="iconActionSend">@drawable/ic_send</item>
        <item name="iconActionSettings">@drawable/ic_cog</item>
        <item name="iconActionSingleMessageOptions">@drawable/ic_reply_all</item>
        <item name="iconActionSort">@drawable/ic_sort</item>
        <item name="iconActionSpam">@drawable/ic_alert_octagon</item>
        <item name="iconActionFlag">@drawable/ic_star</item>
        <item name="iconActionUnflag">@drawable/ic_star_border</item>
        <item name="iconActionMarkAsRead">@drawable/ic_opened_envelope</item>
        <item name="iconActionMarkAsUnread">@drawable/ic_envelope</item>
        <item name="iconActionRemoteSearch">@drawable/ic_magnify_cloud</item>
        <item name="iconActionAdd">@drawable/ic_plus</item>
        <item name="iconActionImportExport">@drawable/ic_arrow_up_down</item>
        <item name="iconActionUpload">@drawable/ic_file_upload</item>
        <item name="iconActionSelectAll">@drawable/ic_select_all</item>
        <item name="iconActionSave">@drawable/ic_floppy</item>
        <item name="iconActionCancel">@drawable/ic_clear</item>
        <item name="iconActionRequestReadReceipt">@drawable/ic_action_request_read_receipt_light</item>
        <item name="iconActionExpand">@drawable/ic_chevron_down</item>
        <item name="iconActionCollapse">@drawable/ic_chevron_up</item>
        <item name="iconPreferencesDisplay">@drawable/ic_tv</item>
        <item name="iconPreferencesInteraction">@drawable/ic_touch</item>
        <item name="iconPreferencesNotifications">@drawable/ic_notifications</item>
        <item name="iconPreferencesNetwork">@drawable/ic_arrow_up_down</item>
        <item name="iconPreferencesPrivacy">@drawable/ic_shield</item>
        <item name="iconPreferencesDebug">@drawable/ic_bug</item>
        <item name="iconPreferencesFolders">@drawable/ic_folder</item>
        <item name="iconPreferencesSearch">@drawable/ic_magnify</item>
        <item name="iconPreferencesCrypto">@drawable/ic_preferences_crypto</item>
        <item name="iconPreferencesFetchMail">@drawable/ic_preferences_check_mail</item>
        <item name="iconPreferencesReadMail">@drawable/ic_opened_envelope</item>
        <item name="iconPreferencesCompose">@drawable/ic_pencil</item>
        <item name="iconSettingsAbout">@drawable/ic_info_outline</item>
        <item name="iconSettingsGeneral">@drawable/ic_cog</item>
        <item name="iconSettingsAccount">@drawable/ic_account</item>
        <item name="iconSettingsAccountAdd">@drawable/ic_account_plus</item>
        <item name="iconSettingsExport">@drawable/ic_export</item>
        <item name="iconSettingsImport">@drawable/ic_import</item>
        <item name="iconSettingsImportStatus">@drawable/ic_import_status</item>
        <item name="textColorPrimaryRecipientDropdown">@android:color/primary_text_light</item>
        <item name="textColorSecondaryRecipientDropdown">@android:color/secondary_text_light</item>
        <item name="messageListSelectedBackgroundColor">#8038B8E2</item>
        <item name="messageListReadItemBackgroundColor">#c0cdcdcd</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="messageListPreviewTextColor">#ff696969</item>
        <item name="messageListDividerColor">#ffcccccc</item>
        <item name="messageListStateIconTint">#bbbbbb</item>
        <item name="messageListAttachment">@drawable/ic_messagelist_attachment</item>
        <item name="messageListAnswered">@drawable/ic_messagelist_answered</item>
        <item name="messageListForwarded">@drawable/ic_messagelist_forwarded</item>
        <item name="messageListAnsweredForwarded">@drawable/ic_messagelist_answered_forwarded</item>
        <item name="messageStar">@drawable/btn_check_star</item>
        <item name="messageViewBackgroundColor">#ffffffff</item>
        <item name="messageComposeAddContactImage">@drawable/ic_person_plus</item>
        <item name="attachmentCardBackground">#e8e8e8</item>
        <item name="contactPictureFallbackDefaultBackgroundColor">#ffababab</item>
        <item name="contactTokenBackgroundColor">#ccc</item>
        <item name="composerBackgroundColor">@android:color/background_light</item>
        <item name="tintColorBulletPointPositive">#77aa22</item>
        <item name="tintColorBulletPointNegative">#dd2222</item>
        <item name="tintColorBulletPointNeutral">#888</item>

        <item name="iconAboutVersion">@drawable/ic_info</item>
        <item name="iconAboutAuthors">@drawable/ic_people</item>
        <item name="iconAboutSourceCode">@drawable/ic_code</item>
        <item name="iconAboutLicense">@drawable/ic_description</item>
        <item name="iconAboutWebsite">@drawable/ic_link</item>
        <item name="iconUserForum">@drawable/ic_forum</item>
        <item name="iconAboutFediverse">@drawable/ic_mastodon</item>
        <item name="iconAboutTwitter">@drawable/ic_twitter</item>

        <item name="unencryptedAttachmentUnlock">@drawable/ic_visibility</item>
        <item name="openpgp_black">#000</item>
        <item name="openpgp_orange">#FF8800</item>
        <item name="openpgp_red">#CC0000</item>
        <item name="openpgp_green">#669900</item>
        <item name="openpgp_blue">#336699</item>
        <item name="openpgp_grey">#bbb</item>
        <item name="openpgp_dark_grey">#888</item>

        <item name="materialDrawerStyle">@style/Widget.MaterialDrawerStyle.K9.Light</item>
        <item name="materialDrawerHeaderStyle">@style/Widget.MaterialDrawerHeaderStyle.K9.Light</item>
        <item name="behindRecyclerView">#F0F0F0</item>
    </style>

    <style name="Theme.K9.Dark.Common" parent="Theme.K9.Dark.Base">
        <item name="android:navigationBarColor">#000000</item>
        <item name="windowActionModeOverlay">true</item>
        <item name="android:windowLightStatusBar" tools:targetApi="23">false</item>
        <item name="colorPrimary">@color/md_grey_900</item>
        <item name="colorPrimaryDark">@color/md_grey_900</item>
        <item name="bottomBarBackground">@color/md_grey_900</item>

        <item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
        <item name="iconUnifiedInbox">@drawable/ic_inbox_multiple</item>
        <item name="iconFolder">@drawable/ic_folder</item>
        <item name="iconFolderInbox">@drawable/ic_inbox</item>
        <item name="iconFolderOutbox">@drawable/ic_outbox</item>
        <item name="iconFolderArchive">@drawable/ic_archive</item>
        <item name="iconFolderDrafts">@drawable/ic_drafts_folder</item>
        <item name="iconFolderSent">@drawable/ic_send</item>
        <item name="iconFolderSpam">@drawable/ic_alert_octagon</item>
        <item name="iconFolderTrash">@drawable/ic_trash_can</item>
        <item name="iconActionAddAttachment">@drawable/ic_attachment</item>
        <item name="iconActionArchive">@drawable/ic_archive</item>
        <item name="iconActionCompose">@drawable/ic_pencil</item>
        <item name="iconActionDelete">@drawable/ic_trash_can</item>
        <item name="iconActionMove">@drawable/ic_folder</item>
        <item name="iconActionCopy">@drawable/ic_content_copy</item>
        <item name="iconActionNextStatus">@drawable/ic_chevron_right</item>
        <item name="iconActionNextMessage">@drawable/ic_chevron_right</item>
        <item name="iconActionPreviousMessage">@drawable/ic_chevron_left</item>
        <item name="iconActionRefresh">@drawable/ic_refresh</item>
        <item name="iconActionSearch">@drawable/ic_magnify</item>
        <item name="iconActionSearchFolder">@drawable/ic_folder_magnify</item>
        <item name="iconActionSend">@drawable/ic_send</item>
        <item name="iconActionSettings">@drawable/ic_cog</item>
        <item name="iconActionSingleMessageOptions">@drawable/ic_reply_all</item>
        <item name="iconActionSort">@drawable/ic_sort</item>
        <item name="iconActionSpam">@drawable/ic_alert_octagon</item>
        <item name="iconActionFlag">@drawable/ic_star</item>
        <item name="iconActionUnflag">@drawable/ic_star_border</item>
        <item name="iconActionMarkAsRead">@drawable/ic_opened_envelope</item>
        <item name="iconActionMarkAsUnread">@drawable/ic_envelope</item>
        <item name="iconActionRemoteSearch">@drawable/ic_magnify_cloud</item>
        <item name="iconActionAdd">@drawable/ic_plus</item>
        <item name="iconActionImportExport">@drawable/ic_arrow_up_down</item>
        <item name="iconActionUpload">@drawable/ic_file_upload</item>
        <item name="iconActionSelectAll">@drawable/ic_select_all</item>
        <item name="iconActionSave">@drawable/ic_floppy</item>
        <item name="iconActionCancel">@drawable/ic_clear</item>
        <item name="iconActionRequestReadReceipt">@drawable/ic_action_request_read_receipt_dark</item>
        <item name="iconActionExpand">@drawable/ic_chevron_down</item>
        <item name="iconActionCollapse">@drawable/ic_chevron_up</item>
        <item name="iconPreferencesDisplay">@drawable/ic_tv</item>
        <item name="iconPreferencesInteraction">@drawable/ic_touch</item>
        <item name="iconPreferencesNotifications">@drawable/ic_notifications</item>
        <item name="iconPreferencesNetwork">@drawable/ic_arrow_up_down</item>
        <item name="iconPreferencesPrivacy">@drawable/ic_shield</item>
        <item name="iconPreferencesDebug">@drawable/ic_bug</item>
        <item name="iconPreferencesFolders">@drawable/ic_folder</item>
        <item name="iconPreferencesSearch">@drawable/ic_magnify</item>
        <item name="iconPreferencesCrypto">@drawable/ic_preferences_crypto</item>
        <item name="iconPreferencesFetchMail">@drawable/ic_preferences_check_mail</item>
        <item name="iconPreferencesReadMail">@drawable/ic_opened_envelope</item>
        <item name="iconPreferencesCompose">@drawable/ic_pencil</item>
        <item name="iconSettingsAbout">@drawable/ic_info_outline</item>
        <item name="iconSettingsGeneral">@drawable/ic_cog</item>
        <item name="iconSettingsAccount">@drawable/ic_account</item>
        <item name="iconSettingsAccountAdd">@drawable/ic_account_plus</item>
        <item name="iconSettingsExport">@drawable/ic_export</item>
        <item name="iconSettingsImport">@drawable/ic_import</item>
        <item name="iconSettingsImportStatus">@drawable/ic_import_status</item>
        <item name="textColorPrimaryRecipientDropdown">@android:color/primary_text_dark</item>
        <item name="textColorSecondaryRecipientDropdown">@android:color/secondary_text_dark</item>
        <item name="messageListSelectedBackgroundColor">#8038B8E2</item>
        <item name="messageListReadItemBackgroundColor">#00000000</item>
        <item name="messageListUnreadItemBackgroundColor">#c05a5a5a</item>
        <item name="messageListThreadCountForegroundColor">?android:attr/colorBackground</item>
        <item name="messageListThreadCountBackground">@drawable/thread_count_box_dark</item>
        <item name="messageListActiveItemBackgroundColor">#ff33b5e5</item>
        <item name="messageListPreviewTextColor">#ffa0a0a0</item>
        <item name="messageListDividerColor">#ff333333</item>
        <item name="messageListStateIconTint">#777777</item>
        <item name="messageListAttachment">@drawable/ic_messagelist_attachment</item>
        <item name="messageListAnswered">@drawable/ic_messagelist_answered</item>
        <item name="messageListForwarded">@drawable/ic_messagelist_forwarded</item>
        <item name="messageListAnsweredForwarded">@drawable/ic_messagelist_answered_forwarded</item>
        <item name="messageStar">@drawable/btn_check_star</item>
        <item name="messageViewBackgroundColor">#000000</item>
        <item name="messageComposeAddContactImage">@drawable/ic_person_plus</item>
        <item name="attachmentCardBackground">#313131</item>
        <item name="contactTokenBackgroundColor">#313131</item>
        <item name="contactPictureFallbackDefaultBackgroundColor">#ff606060</item>
        <item name="composerBackgroundColor">@android:color/background_dark</item>
        <item name="tintColorBulletPointPositive">#77aa22</item>
        <item name="tintColorBulletPointNegative">#dd2222</item>
        <item name="tintColorBulletPointNeutral">#bbb</item>

        <item name="iconAboutVersion">@drawable/ic_info</item>
        <item name="iconAboutAuthors">@drawable/ic_people</item>
        <item name="iconAboutSourceCode">@drawable/ic_code</item>
        <item name="iconAboutLicense">@drawable/ic_description</item>
        <item name="iconAboutWebsite">@drawable/ic_link</item>
        <item name="iconUserForum">@drawable/ic_forum</item>
        <item name="iconAboutFediverse">@drawable/ic_mastodon</item>
        <item name="iconAboutTwitter">@drawable/ic_twitter</item>

        <item name="unencryptedAttachmentUnlock">@drawable/ic_visibility</item>
        <item name="openpgp_black">#fff</item>
        <item name="openpgp_orange">#ee7700</item>
        <item name="openpgp_red">#CC0000</item>
        <item name="openpgp_green">#77aa00</item>
        <item name="openpgp_blue">#6699cc</item>
        <item name="openpgp_grey">#888</item>
        <item name="openpgp_dark_grey">#bbb</item>

        <item name="materialDrawerStyle">@style/Widget.MaterialDrawerStyle.K9.Dark</item>
        <item name="materialDrawerHeaderStyle">@style/Widget.MaterialDrawerHeaderStyle.K9.Dark</item>

        <item name="behindRecyclerView">#202020</item>
    </style>

    <style name="Theme.K9.Light" parent="Theme.K9.Light.Common" />
    <style name="Theme.K9.Dark" parent="Theme.K9.Dark.Common" />

    <style name="Theme.K9.Dialog.Light" parent="Theme.K9.Light">
        <item name="backgroundColorChooseAccountHeader">#cccccc</item>
    </style>

    <style name="Theme.K9.Dialog.Dark" parent="Theme.K9.Dark">
        <item name="backgroundColorChooseAccountHeader">#404040</item>
    </style>

    <style name="Theme.K9.Dialog.Translucent.Dark" parent="Theme.MaterialComponents.Dialog.Bridge">
        <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="windowNoTitle">true</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item>

        <item name="tintColorBulletPointPositive">#77aa22</item>
        <item name="tintColorBulletPointNegative">#dd2222</item>
        <item name="tintColorBulletPointNeutral">#bbb</item>
    </style>

    <style name="Theme.K9.Dialog.Translucent.Light" parent="Theme.MaterialComponents.Light.Dialog.Bridge">
        <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="windowNoTitle">true</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item>

        <item name="tintColorBulletPointPositive">#77aa22</item>
        <item name="tintColorBulletPointNegative">#dd2222</item>
        <item name="tintColorBulletPointNeutral">#bbb</item>
    </style>

    <style name="Theme.K9.DayNight" parent="Theme.K9.Light" />
    <style name="Theme.K9.Dialog.DayNight" parent="Theme.K9.Dialog.Light" />
    <style name="Theme.K9.Dialog.Translucent.DayNight" parent="Theme.K9.Dialog.Translucent.Light" />

</resources>
