<?xml version="1.0" encoding="utf-8"?><!--
  ~ Twidere - Twitter client for Android
  ~
  ~  Copyright (C) 2012-2014 Mariotaku Lee <mariotaku.lee@gmail.com>
  ~
  ~  This program is free software: you can redistribute it and/or modify
  ~  it under the terms of the GNU General Public License as published by
  ~  the Free Software Foundation, either version 3 of the License, or
  ~  (at your option) any later version.
  ~
  ~  This program is distributed in the hope that it will be useful,
  ~  but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~  GNU General Public License for more details.
  ~
  ~  You should have received a copy of the GNU General Public License
  ~  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -->

<resources>

    <style name="Theme.Twidere.Dark" parent="Theme.MaterialComponents.Bridge">

        <!-- Widget styles -->
        <item name="android:listSeparatorTextViewStyle">@style/Widget.Dark.TextView.ListSeparator
        </item>

        <!-- Card UI styles -->
        <item name="cardActionButtonStyle">@style/Widget.CardActionButton</item>
        <item name="profileImageStyle">@style/Widget.ProfileImage</item>
        <item name="profileImageStyleLarge">@style/Widget.ProfileImage.Large</item>
        <item name="cardItemBackgroundColor">@color/background_color_card_item_dark</item>

        <!-- Twidere specific styles -->
        <item name="menuIconColor">@color/action_icon_light</item>
        <item name="messageBubbleColor">@color/message_bubble_color_dark</item>
        <item name="quoteIndicatorBackgroundColor">@color/quote_indicator_background_dark</item>
        <item name="mediaLabelBackground">#505050</item>

        <item name="colorToolbar">@color/background_color_action_bar_dark</item>
        <item name="isToolbarColored">false</item>
        <item name="colorControlStateful">?colorControlNormal</item>

        <item name="actionBarTheme">@style/Theme.Twidere.Dark.ActionBar</item>
        <item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
    </style>

    <style name="Theme.Twidere.Dark.Content" parent="Theme.Twidere.Dark"/>

    <style name="Theme.Twidere.Dark.Dialog" parent="Theme.MaterialComponents.Dialog.Bridge">

        <!-- this is a simple fix for https://github.com/TwidereProject/Twidere-Android/issues/579 -->
        <item name="android:windowBackground">@drawable/abc_dialog_material_background_dark</item>

        <!-- Widget styles -->
        <item name="android:listSeparatorTextViewStyle">@style/Widget.Dark.TextView.ListSeparator
        </item>
        <item name="android:panelColorBackground">#3c3c3c</item>

        <!-- Card UI styles -->
        <item name="cardActionButtonStyle">@style/Widget.CardActionButton</item>
        <item name="profileImageStyle">@style/Widget.ProfileImage</item>
        <item name="profileImageStyleLarge">@style/Widget.ProfileImage.Large</item>
        <item name="cardItemBackgroundColor">@color/background_color_card_item_dark</item>

        <!-- Twidere specific styles -->
        <item name="isDialogTheme">true</item>
        <item name="menuIconColor">@color/action_icon_light</item>
        <item name="messageBubbleColor">@color/message_bubble_color_dark</item>
        <item name="quoteIndicatorBackgroundColor">@color/quote_indicator_background_dark</item>

        <item name="colorToolbar">@color/background_color_action_bar_dark</item>
        <item name="isToolbarColored">false</item>
        <item name="colorControlStateful">?colorControlNormal</item>

        <item name="actionBarTheme">@null</item>
        <item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
    </style>

    <style name="Theme.Twidere.Dark.NoActionBar" parent="Theme.Twidere.Dark">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
    </style>

    <style name="Theme.Twidere.Dark.ActionBar" parent="Theme.Twidere.Dark">
        <item name="colorPrimary">?android:colorForeground</item>
        <item name="colorAccent">?android:colorForeground</item>
    </style>

    <style name="Theme.Twidere.Dark.NoDisplay" parent="Theme.Twidere.Dark.Dialog">
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowFrame">@null</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowAnimationStyle">@null</item>
        <item name="android:windowDisablePreview">true</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowTitleStyle">@style/Widget.TextView.WindowTitle.NoDisplay</item>
    </style>

    <style name="Theme.Twidere.Dark.Compose" parent="Theme.Twidere.Dark.Dialog">
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="windowActionModeOverlay">false</item>

        <item name="android:windowNoTitle">true</item>
        <item name="android:windowActionBarOverlay">false</item>
        <item name="android:windowActionModeOverlay">false</item>
    </style>

    <style name="Theme.Twidere.Dark.QuickSearchBar" parent="Theme.Twidere.Dark.Dialog">
        <item name="windowNoTitle">true</item>
        <item name="windowActionModeOverlay">false</item>

        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
        <item name="android:windowMinWidthMinor">100%</item>
        <item name="android:windowActionBarOverlay">false</item>
        <item name="android:windowActionModeOverlay">false</item>
    </style>

    <style name="Theme.Twidere.Dark.Launcher" parent="Theme.Twidere.Dark.NoActionBar"/>

</resources>