<resources>
    <attr name="themeName" format="string" />
    <attr name="colorRead" format="reference" />
    <attr name="colorUnread" format="reference" />
    <attr name="colorUnreadHighlight" format="reference" />
    <attr name="colorSeparator" format="reference" />
    <attr name="colorWarning" format="reference" />
    <attr name="colorDrawerScrim" format="reference" />
    <attr name="colorDrawerText" format="reference" />
    <attr name="colorDrawerBackground" format="reference" />
    <attr name="colorCardBackground" format="reference" />
    <attr name="colorActionForeground" format="reference" />
    <attr name="colorActionForegroundDisabled" format="reference" />
    <attr name="colorActionBackground" format="reference" />
    <attr name="colorFabForeground" format="reference" />
    <attr name="colorFabBackground" format="reference" />
    <attr name="colorToastForeground" format="reference" />
    <attr name="colorToastBackground" format="reference" />
    <attr name="activatableItemBackground" format="reference" />

    <style name="AppThemeLight" parent="Base.Theme.AppCompat.Light.DarkActionBar">
        <item name="themeName">light</item>
        <item name="android:windowDisablePreview">true</item>

        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>

        <item name="colorRead">@color/colorReadLight</item>
        <item name="colorUnread">@color/colorUnreadLight</item>
        <item name="colorUnreadHighlight">@color/colorAccentDark</item>

        <item name="colorSeparator">@color/lightColorSeparator</item>
        <item name="colorWarning">@color/lightColorWarning</item>

        <item name="colorDrawerScrim">@color/lightColorDrawerScrim</item>
        <item name="colorDrawerText">@color/lightColorDrawerText</item>
        <item name="colorDrawerBackground">@color/lightColorDrawerBackground</item>

        <item name="colorCardBackground">@color/lightColorCardBackground</item>

        <item name="colorActionForeground">@color/lightActionForeground</item>
        <item name="colorActionForegroundDisabled">@color/lightActionForegroundDisabled</item>
        <item name="colorActionBackground">@color/lightActionBackground</item>

        <item name="colorFabForeground">@color/white</item>
        <item name="colorFabBackground">@color/colorAccent</item>

        <item name="colorToastForeground">@color/white</item>
        <item name="colorToastBackground">@color/colorPrimaryDark</item>

        <item name="activatableItemBackground">@drawable/activatable_item_background_light</item>

        <item name="android:textColorLink">@color/colorAccentDark</item>
        <item name="android:checkboxStyle">@style/checkboxStyle</item>
        <item name="android:buttonStyle">@style/buttonStyle</item>
        <item name="android:buttonStyleSmall">@style/buttonStyleSmall</item>
        <item name="android:buttonStyleToggle">@style/buttonStyleToggle</item>
        <item name="android:radioButtonStyle">@style/radioButtonStyle</item>

        <item name="android:scrollbarSize">6dp</item>
        <item name="android:scrollbarThumbVertical">@drawable/scroll_thumb</item>
        <item name="android:scrollbarTrackVertical">@drawable/scroll_track</item>
    </style>

    <style name="AppThemeDark" parent="Base.Theme.AppCompat">
        <item name="themeName">dark</item>
        <item name="android:windowDisablePreview">true</item>

        <item name="colorPrimary">@color/darkPrimary</item>
        <item name="colorPrimaryDark">@color/darkPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>

        <item name="colorRead">@color/colorReadDark</item>
        <item name="colorUnread">@color/colorUnreadDark</item>
        <item name="colorUnreadHighlight">@color/colorAccent</item>

        <item name="colorSeparator">@color/darkColorSeparator</item>
        <item name="colorWarning">@color/darkColorWarning</item>

        <item name="colorDrawerScrim">@color/darkColorDrawerScrim</item>
        <item name="colorDrawerText">@color/darkColorDrawerText</item>
        <item name="colorDrawerBackground">@color/darkColorDrawerBackground</item>

        <item name="colorCardBackground">@color/darkColorCardBackground</item>

        <item name="colorActionForeground">@color/darkActionForeground</item>
        <item name="colorActionForegroundDisabled">@color/darkActionForegroundDisabled</item>
        <item name="colorActionBackground">@color/darkActionBackground</item>

        <item name="colorFabForeground">@color/white</item>
        <item name="colorFabBackground">@color/colorAccent</item>

        <item name="colorToastForeground">@color/white</item>
        <item name="colorToastBackground">@color/darkPrimaryLight</item>

        <item name="activatableItemBackground">@drawable/activatable_item_background_dark</item>

        <item name="android:checkboxStyle">@style/checkboxStyle</item>
        <item name="android:buttonStyle">@style/buttonStyle</item>
        <item name="android:buttonStyleSmall">@style/buttonStyleSmall</item>
        <item name="android:buttonStyleToggle">@style/buttonStyleToggle</item>
        <item name="android:radioButtonStyle">@style/radioButtonStyle</item>

        <item name="android:scrollbarSize">6dp</item>
        <item name="android:scrollbarThumbVertical">@drawable/scroll_thumb</item>
        <item name="android:scrollbarTrackVertical">@drawable/scroll_track</item>
    </style>

    <style name="AppThemeBlack" parent="AppThemeDark">
        <item name="themeName">black</item>

        <item name="android:windowBackground">@color/black</item>
        <item name="colorDrawerBackground">@color/black</item>
    </style>

    <style name="AppThemeGreyLight" parent="AppThemeLight">
        <item name="themeName">light</item>
        <item name="colorPrimary">@color/greyPrimary</item>
        <item name="colorPrimaryDark">@color/greyPrimaryDark</item>
        <item name="colorAccent">@color/greyAccent</item>

        <item name="colorUnreadHighlight">@color/greyAccentDark</item>

        <item name="colorFabBackground">@color/greyAccent</item>

        <item name="colorToastForeground">@color/white</item>
        <item name="colorToastBackground">@color/greyAccent</item>
    </style>

    <style name="AppThemeGreyDark" parent="AppThemeBlack">
        <item name="colorPrimary">@color/greyPrimary</item>
        <item name="colorPrimaryDark">@color/greyPrimaryDark</item>
        <item name="colorAccent">@color/greyAccent</item>

        <item name="colorUnreadHighlight">@color/greyAccent</item>
        <item name="colorSeparator">@color/greyPrimary</item>

        <item name="colorActionBackground">@color/greyPrimary</item>

        <item name="colorFabBackground">@color/greyAccentDark</item>

        <item name="colorToastForeground">@color/white</item>
        <item name="colorToastBackground">@color/greyAccentDark</item>
    </style>

    <style name="Theme.AppCompat.Translucent" parent="Theme.AppCompat.NoActionBar">
        <item name="android:background">@color/transparent</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowBackground">@color/transparent</item>
        <item name="android:colorBackgroundCacheHint">@null</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowAnimationStyle">@android:style/Animation</item>
        <item name="android:navigationBarColor">@color/transparent</item>
        <item name="android:statusBarColor">@color/transparent</item>
    </style>

    <style name="checkboxStyle" parent="Base.Widget.AppCompat.CompoundButton.CheckBox">
        <item name="android:textAppearance">@style/TextAppearance.AppCompat.Small</item>
        <item name="android:textColor">?android:attr/textColorSecondary</item>
    </style>

    <style name="buttonStyle" parent="Base.Widget.AppCompat.Button">
        <item name="android:textAppearance">@style/TextAppearance.AppCompat.Medium</item>
    </style>

    <style name="buttonStyleSmall" parent="Base.Widget.AppCompat.Button.Small">
        <item name="android:textAppearance">@style/TextAppearance.AppCompat.Small</item>
    </style>

    <style name="buttonStyleToggle" parent="Base.Widget.AppCompat.Button">
        <item name="android:textAppearance">@style/TextAppearance.AppCompat.Medium</item>
    </style>

    <style name="radioButtonStyle" parent="Base.Widget.AppCompat.CompoundButton.RadioButton">
        <item name="android:textAppearance">@style/TextAppearance.AppCompat.Small</item>
        <item name="android:textColor">?android:attr/textColorSecondary</item>
    </style>
</resources>
