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

    <!-- Base application theme. -->
    <style name="AppTheme.Def" parent="Theme.MaiTungTMDesign.DayNight">
        <item name="backgroundColor">@color/defaultThemeBackgroundColor</item>
        <item name="backgroundColorAlphaTitle">@color/defaultThemeBackgroundColorAlpha80</item>
        <!-- Customize your theme here. -->
        <item name="android:windowNoTitle">true</item>
        <!-- color forwarding -->
        <item name="colorAccent">@color/colorAccent</item>
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <!-- Primary brand color. -->
        <item name="colorPrimaryVariant">?attr/themeColor</item>
        <item name="colorOnPrimary">@color/firstTextColor</item>
        <!-- Secondary brand color. -->
        <item name="colorSecondary">?attr/themeColor</item>
        <item name="colorSecondaryVariant">?attr/themeColor</item>
        <item name="colorOnSecondary">@color/firstTextColor</item>
        <!-- Status bar color. -->
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="o_mr1">
            shortEdges
        </item>
        <item name="android:statusBarColor">?attr/backgroundColor</item>
        <item name="android:windowTranslucentStatus">false</item>
        <item name="android:windowLightStatusBar">@bool/is_not_night_mode</item>
        <item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">@bool/is_not_night_mode</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowTranslucentNavigation">false</item>
        <item name="colorControlNormal">@color/firstTextColor</item>
        <!--<item name="colorControlNormal">@color/whiteTextColor</item> -->
    </style>

    <style name="AppTheme.Blp" parent="AppTheme.Def">
        <item name="colorPrimary">@color/theme_color_blp</item>
        <item name="colorPrimaryDark">@color/theme_color_blp</item>
        <item name="colorAccent">@color/theme_color_blp</item>
        <item name="themeColor">@color/theme_color_blp</item>
    </style>

    <style name="AppTheme.Gol" parent="AppTheme.Def">
        <item name="colorPrimary">@color/theme_color_gol</item>
        <item name="colorPrimaryDark">@color/theme_color_gol</item>
        <item name="colorAccent">@color/theme_color_gol</item>
        <item name="themeColor">@color/theme_color_gol</item>
    </style>

    <style name="AppTheme.Cag" parent="AppTheme.Def">
        <item name="colorPrimary">@color/theme_color_cag</item>
        <item name="colorPrimaryDark">@color/theme_color_cag</item>
        <item name="colorAccent">@color/theme_color_cag</item>
        <item name="themeColor">@color/theme_color_cag</item>
    </style>

    <style name="AppTheme.Ftb" parent="AppTheme.Def">
        <item name="colorPrimary">@color/theme_color_ftb</item>
        <item name="colorPrimaryDark">@color/theme_color_ftb</item>
        <item name="colorAccent">@color/theme_color_ftb</item>
        <item name="themeColor">@color/theme_color_ftb</item>
    </style>

    <style name="AppTheme.Ghp" parent="AppTheme.Def">
        <item name="colorPrimary">@color/theme_color_ghp</item>
        <item name="colorPrimaryDark">@color/theme_color_ghp</item>
        <item name="colorAccent">@color/theme_color_ghp</item>
        <item name="themeColor">@color/theme_color_ghp</item>
    </style>

    <style name="AppTheme.Mar" parent="AppTheme.Def">
        <item name="colorPrimary">@color/theme_color_mar</item>
        <item name="colorPrimaryDark">@color/theme_color_mar</item>
        <item name="colorAccent">@color/theme_color_mar</item>
        <item name="themeColor">@color/theme_color_mar</item>
    </style>

    <style name="AppTheme.TPO" parent="AppTheme.Def">
        <item name="colorPrimary">@color/theme_color_tpo</item>
        <item name="colorPrimaryDark">@color/theme_color_tpo</item>
        <item name="colorAccent">@color/theme_color_tpo</item>
        <item name="themeColor">@color/theme_color_tpo</item>
    </style>

    <style name="AppTheme.Tlg" parent="AppTheme.Def">
        <item name="colorPrimary">@color/theme_color_tlg</item>
        <item name="colorPrimaryDark">@color/theme_color_tlg</item>
        <item name="colorAccent">@color/theme_color_tlg</item>
        <item name="themeColor">@color/theme_color_tlg</item>
    </style>

    <style name="AppTheme.Ryb" parent="AppTheme.Def">
        <item name="colorPrimary">@color/theme_color_ryb</item>
        <item name="colorPrimaryDark">@color/theme_color_ryb</item>
        <item name="colorAccent">@color/theme_color_ryb</item>
        <item name="themeColor">@color/theme_color_ryb</item>
    </style>

    <style name="AppTheme.Gap" parent="AppTheme.Def">
        <item name="colorPrimary">@color/theme_color_gap</item>
        <item name="colorPrimaryDark">@color/theme_color_gap</item>
        <item name="colorAccent">@color/theme_color_gap</item>
        <item name="themeColor">@color/theme_color_gap</item>
    </style>

    <style name="NoDisplay" parent="Theme.AppCompat.DayNight.NoActionBar">
        <item name="android:windowFrame">@null</item>
        <!-- 设置是否可滑动 -->
        <item name="android:windowIsFloating">true</item>
        <!-- 设置是否透明 -->
        <item name="android:windowIsTranslucent">true</item>
        <!-- 无标题 -->
        <item name="android:windowNoTitle">true</item>
        <!-- 背景 -->
        <item name="android:background">@null</item>
        <!-- 窗口背景 -->
        <item name="android:windowBackground">@android:color/transparent</item>
        <!-- 是否变暗 -->
        <item name="android:backgroundDimEnabled">false</item>
        <!-- 点击空白部分activity不消失 -->
        <item name="android:windowCloseOnTouchOutside">true</item>
        <!-- 无标题 有的手机设置这行代码-->
        <item name="windowNoTitle">true</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowAnimationStyle">@null</item>
        <item name="android:windowDisablePreview">true</item>
        <item name="android:windowNoDisplay">true</item>
    </style>

    <style name="MaterialDialogActivity" parent="Theme.MaterialComponents.DayNight.NoActionBar">
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="android:backgroundDimEnabled">false</item>
        <item name="android:windowFrame">@null</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:background">@android:color/transparent</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:title">@null</item>
        <item name="android:dialogTitle">@null</item>
        <item name="android:windowCloseOnTouchOutside">true</item>
    </style>

    <style name="MaterialDialog" parent="Theme.MaterialComponents.DayNight.Dialog">
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
    </style>

    <style name="Theme.MaiTungTMDesign.DayNight" parent="Theme.MaiTungTMDesign.Light" />

    <style name="Theme.MaiTungTMDesign.DayNight.Blue" parent="Theme.MaiTungTMDesign.Light.Blue" />

    <style name="Theme.MaiTungTMDesign.Light" parent="Theme.MaterialComponents.Light.NoActionBar">
        <!-- Colors -->
        <item name="whiteBackgroundColor">#FFFFFFFF</item>
        <item name="themeColor">#FF4285F4</item>
        <item name="themeIconColor">#FF4285F4</item>
        <item name="usableColor">#FF4CAF50</item>
        <item name="unusableColor">#FFFF5252</item>
        <item name="warnColor">#ffFFC107</item>
        <item name="lineColor">#ffdddddd</item>
        <item name="backgroundColor">#FFFFFFFF</item>
        <item name="backgroundColorAlphaTitle">#CCFFFFFF</item>
        <!-- Primary brand color. -->
        <item name="colorAccent">@color/colorAccent</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorPrimary">?attr/themeColor</item>
        <item name="colorPrimaryVariant">?attr/themeColor</item>
        <item name="colorOnPrimary">@color/firstTextColor</item>
        <!-- Secondary brand color. -->
        <item name="colorSecondary">?attr/themeColor</item>
        <item name="colorSecondaryVariant">?attr/themeColor</item>
        <item name="colorOnSecondary">@color/firstTextColor</item>
        <!-- Status bar color. -->
        <item name="android:statusBarColor">?attr/backgroundColor</item>
        <item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="o_mr1">
            shortEdges
        </item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:windowTranslucentNavigation">true</item>
        <item name="android:windowTranslucentStatus">false</item>
        <item name="android:windowLightStatusBar">true</item>
        <item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">true</item>
        <item name="colorControlNormal">@color/firstTextColor</item>
        <!--<item name="colorControlNormal">@color/whiteTextColor</item> -->
    </style>

    <style name="Theme.MaiTungTMDesign.Light.Blue" parent="Theme.MaiTungTMDesign.Light">
        <!-- Blue Override Colors -->
        <item name="themeColor">#FF1572A1</item>
        <item name="themeIconColor">#FF1572A1</item>
        <!--<item name="usableColor">#FF4CAF50</item>-->
        <item name="usableColor">#FF219F94</item>
        <item name="backgroundColor">#FFF2F2F6</item>
        <item name="backgroundColorAlphaTitle">#CCF2F2F6</item>
        <!-- Status bar color. -->
        <!-- <item name="android:statusBarColor">@color/backgroundColor</item> -->
        <item name="android:statusBarColor">?attr/themeColor</item>
        <!-- <item name="colorControlNormal">@color/firstTextColor</item>  -->
        <item name="android:windowLightStatusBar">false</item>
        <item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">true</item>
        <item name="colorControlNormal">@color/whiteTextColor</item>
    </style>

    <style name="Theme.MaiTungTMDesign.Night" parent="Theme.MaterialComponents.NoActionBar">
        <!-- Theme Colors -->
        <item name="themeColor">#FF82A8E7</item>
        <item name="usableColor">#FF4CAF50</item>
        <item name="unusableColor">#FFFF5252</item>
        <item name="warnColor">#ffFFC107</item>
        <item name="lineColor">#FF4F5355</item>
        <item name="backgroundColor">#FF202124</item>
        <item name="backgroundColorAlphaTitle">#CC202124</item>
        <!-- Primary brand color. -->
        <item name="colorAccent">@color/colorAccent</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorPrimary">?attr/themeColor</item>
        <item name="colorPrimaryVariant">?attr/themeColor</item>
        <item name="colorOnPrimary">@color/firstTextColor</item>
        <!-- Secondary brand color. -->
        <item name="colorSecondary">?attr/themeColor</item>
        <item name="colorSecondaryVariant">?attr/themeColor</item>
        <item name="colorOnSecondary">@color/firstTextColor</item>
        <!-- Status bar color is drawn by view ourselves, not system -->
        <item name="android:statusBarColor">?attr/backgroundColor</item>
        <item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="o_mr1">
            shortEdges
        </item>
        <item name="android:windowBackground">#FF202124</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:windowTranslucentNavigation">true</item>
        <item name="android:windowTranslucentStatus">false</item>
        <item name="android:windowLightStatusBar">false</item>
        <item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">false</item>
        <!-- <item name="colorControlNormal">@color/firstTextColor</item> -->
        <item name="colorControlNormal">@color/whiteTextColor</item>
    </style>

    <style name="Theme.MaiTungTMDesign.Night.Blue" parent="Theme.MaiTungTMDesign.Night">
        <!-- Blue Override Theme Colors -->
        <item name="whiteBackgroundColor">#FF303134</item>
        <item name="themeColor">#FF202124</item>
        <item name="themeIconColor">#FF82A8E7</item>
        <!-- Status bar color. -->
        <item name="android:statusBarColor">?attr/themeColor</item>
        <item name="colorControlNormal">@color/firstTextColor</item>
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:windowLightStatusBar">false</item>
        <item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">false</item>
        <!-- <item name="colorControlNormal">@color/whiteTextColor</item>-->
    </style>

    <style name="Toolbar.LightBlue" parent="Widget.MaterialComponents.Toolbar">
        <item name="android:layout_width">match_parent</item>
        <!-- <item name="colorControlNormal">@color/firstTextColor</item> -->
        <item name="colorControlNormal">@color/whiteTextColor</item>
        <!-- <item name="android:background">@color/backgroundColor</item> -->
        <item name="android:background">?attr/themeColor</item>
        <item name="elevation">0dp</item>
        <item name="android:paddingLeft">16dp</item>
        <item name="android:paddingRight">8dp</item>
        <item name="android:stateListAnimator">@null</item>
        <!-- <item name="titleTextColor">@color/firstTextColor</item> -->
        <item name="titleTextColor">@color/whiteTextColor</item>
    </style>

    <style name="Toolbar.DayNight" parent="Widget.MaterialComponents.Toolbar">
        <item name="android:layout_width">match_parent</item>
        <item name="colorControlNormal">@color/firstTextColor</item>
        <!-- <item name="colorControlNormal">@color/whiteTextColor</item> -->
        <item name="android:background">?attr/backgroundColor</item>
        <!-- <item name="android:background">?attr/themeColor</item> -->
        <item name="elevation">0dp</item>
        <item name="android:paddingLeft">16dp</item>
        <item name="android:paddingRight">8dp</item>
        <item name="android:stateListAnimator">@null</item>
        <item name="titleTextColor">@color/firstTextColor</item>
    </style>

</resources>
