<!--
  ~ Copyright (c) 2013 – 2016 Ricki Hirner (bitfire web engineering).
  ~ All rights reserved. This program and the accompanying materials
  ~ are made available under the terms of the GNU Public License v3.0
  ~ which accompanies this distribution, and is available at
  ~ http://www.gnu.org/licenses/gpl.html
  -->

<resources>

    <!-- colors -->

    <!-- FIXME: Colours are no longer correctly named. -->

    <color name="light_green500">#ffc107</color>
    <color name="light_green700">#ffa100</color>

    <color name="orange400">#29b6f6</color>
    <color name="orangeA700">#0288d1</color>

    <color name="grey200">#eeeeee</color>
    <color name="grey700">#616161</color>

    <!-- preference-v14 uses this color for categories text -->
    <color name="preference_fallback_accent_color">@color/orangeA700</color>

    <color name="primaryColor">#FFC107</color>
    <color name="primaryLightColor">#FFD54F</color>
    <color name="primaryDarkColor">#FFA000</color>
    <color name="secondaryColor">#29B6F6</color>
    <color name="secondaryLightColor">#81D4FA</color>
    <color name="secondaryDarkColor">#039BE5</color>
    <color name="primaryTextColor">#000000</color>

    <color name="errorColor">#d32f2f</color>


    <!-- app theme -->

    <style name="AppTheme" parent="Theme.MaterialComponents.Light">
        <!-- see https://github.com/material-components/material-components-android/blob/master/docs/theming/Color.md for component color names -->
        <item name="colorPrimary">@color/primaryColor</item>
        <item name="colorPrimaryDark">@color/primaryDarkColor</item>       <!-- additionally required for AppCompatActivity -->
        <item name="colorPrimaryVariant">@color/primaryLightColor</item>
        <item name="colorOnPrimary">@android:color/black</item>

        <item name="colorSecondary">@color/secondaryColor</item>
        <item name="colorSecondaryVariant">@color/secondaryLightColor</item>
        <item name="colorOnSecondary">@android:color/white</item>

        <item name="colorError">@color/errorColor</item>
        <item name="colorOnError">@android:color/white</item>

        <item name="android:colorBackground">@color/grey200</item>
        <item name="colorSurface">@android:color/white</item>
    </style>

    <style name="AppTheme.NoActionBar">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
    </style>


    <!-- dialogs -->

    <style name="AppTheme.Dialog.Alert" parent="Theme.AppCompat.Light.Dialog.Alert">
        <item name="colorAccent">@color/orangeA700</item>
    </style>


    <!-- AddAccountActivity -->

    <style name="login_type_headline">
        <item name="android:textSize">22sp</item>
    </style>
    <style name="account_list_card">
        <item name="android:layout_width">match_parent</item>
    </style>

    <!-- NotificationHandlerActivity -->

    <style name="Theme.Transparent" parent="android:Theme">
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:backgroundDimEnabled">false</item>
    </style>

    <!-- stepper (wizard) -->

    <style name="stepper_nav_bar">
        <item name="android:background">@color/grey200</item>
    </style>

    <style name="stepper_nav_button">
        <item name="android:layout_margin">8dp</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:background">?android:attr/selectableItemBackground</item>
        <item name="android:paddingTop">8dp</item>
        <item name="android:paddingLeft">4dp</item>
        <item name="android:paddingRight">4dp</item>
        <item name="android:paddingBottom">8dp</item>
        <item name="android:textAllCaps">true</item>
        <item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
        <item name="android:textColor">@color/buttontext</item>
    </style>


    <!-- widgets -->

    <style name="tablayout" parent="Base.Widget.Design.TabLayout">
        <item name="android:background">@color/light_green700</item>
    </style>

    <style name="toolbar_theme">
        <item name="android:textColorSecondary">@android:color/white</item>
    </style>
    <style name="toolbar_style" parent="Widget.AppCompat.Toolbar">
        <item name="android:background">@color/light_green700</item>
        <item name="titleTextColor">@android:color/white</item>
    </style>


    <!-- text content -->

    <style name="TextView.Heading" parent="AppTheme">
        <item name="android:textSize">22sp</item>
        <item name="android:textColor">@color/orangeA700</item>
    </style>

</resources>
