<resources>

    <style name="TextSizeSmallest">
        <item name="status_text_small">10sp</item>
        <item name="status_text_medium">12sp</item>
        <item name="status_text_large">14sp</item>
    </style>

    <style name="TextSizeSmall">
        <item name="status_text_small">12sp</item>
        <item name="status_text_medium">14sp</item>
        <item name="status_text_large">16sp</item>
    </style>

    <style name="TextSizeMedium">
        <item name="status_text_small">14sp</item>
        <item name="status_text_medium">16sp</item>
        <item name="status_text_large">18sp</item>
    </style>

    <style name="TextSizeLarge">
        <item name="status_text_small">16sp</item>
        <item name="status_text_medium">18sp</item>
        <item name="status_text_large">20sp</item>
    </style>

    <style name="TextSizeLargest">
        <item name="status_text_small">18sp</item>
        <item name="status_text_medium">20sp</item>
        <item name="status_text_large">22sp</item>
    </style>

    <style name="ViewMediaActivity.AppBarLayout" parent="ThemeOverlay.AppCompat">
        <item name="android:colorControlNormal">@color/white</item>
    </style>

    <style name="SplashTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
        <item name="android:windowBackground">@drawable/background_splash</item>
        <item name="colorPrimaryDark">@color/color_primary_dark_dark</item>
        <item name="android:windowNoTitle">true</item>
    </style>

    <!--Light Application Theme Styles-->
    <style name="TuskyTheme" parent="TuskyBaseTheme" />

    <style name="TuskyDialogActivityTheme" parent="@style/TuskyTheme" />

    <style name="TuskyDialogFragmentStyle" parent="@style/ThemeOverlay.MaterialComponents.Dialog">
        <item name="dialogCornerRadius">8dp</item>
        <item name="android:backgroundTint">?attr/window_background</item>
    </style>


    <style name="TuskyBaseTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
        <item name="colorPrimary">@color/tusky_blue</item>
        <item name="colorOnPrimary">@color/white</item>

        <item name="colorSecondary">@color/tusky_blue</item>
        <item name="colorOnSecondary">@color/white</item>

        <item name="colorSurface">@color/color_background_light</item>

        <item name="colorPrimaryDark">@color/color_primary_dark_light</item>

        <item name="android:colorBackground">@color/color_background_light</item>
        <item name="recents_background_color">@color/color_primary_light</item>
        <item name="android:windowBackground">@color/window_background_light</item>
        <item name="android:textColorPrimary">@color/text_color_primary_light</item>
        <item name="android:textColorSecondary">@color/text_color_secondary_light</item>
        <item name="android:textColorTertiary">@color/text_color_tertiary_light</item>

        <item name="android:actionMenuTextColor">@color/text_color_primary_light</item>

        <item name="alertDialogTheme">@style/TuskyDialog.Light</item>
        <item name="snackbarButtonStyle">@style/TuskyButton.TextButton</item>

        <item name="window_background">@color/window_background_light</item>
        <item name="custom_tab_toolbar">@color/custom_tab_toolbar_light</item>
        <item name="toolbar_background_color">@color/toolbar_background_light</item>
        <item name="toolbar_icon_tint">@color/toolbar_icon_light</item>
        <item name="image_button_style">@style/TuskyImageButton.Light</item>
        <item name="status_reblog_small_drawable">@drawable/ic_reblog_light_18dp</item>
        <item name="status_reblog_inactive_drawable">@drawable/reblog_inactive_light</item>
        <item name="status_reblog_disabled_drawable">@drawable/reblog_private_light</item>
        <item name="status_reblog_direct_drawable">@drawable/reblog_direct_light</item>
        <item name="status_favourite_active_drawable">@drawable/favourite_active_light</item>
        <item name="status_favourite_inactive_drawable">@drawable/favourite_inactive_light</item>
        <item name="content_warning_button">@drawable/toggle_small_light</item>
        <item name="sensitive_media_warning_background_color">
            @color/sensitive_media_warning_background_light
        </item>
        <item name="media_preview_unloaded_drawable">@drawable/media_preview_unloaded_light</item>
        <item name="android:listDivider">@drawable/status_divider_light</item>
        <item name="conversation_thread_line_drawable">@drawable/conversation_thread_line_light
        </item>
        <item name="tab_icon_selected_tint">@color/tusky_blue</item>
        <item name="tab_page_margin_drawable">@drawable/tab_page_margin_light</item>
        <item name="account_header_background_color">@color/color_primary_dark_light</item>
        <item name="account_toolbar_icon_tint_uncollapsed">@color/toolbar_icon_dark
        </item> <!--Default to dark on purpose, because header backgrounds with gradients are always dark.-->
        <item name="account_toolbar_icon_tint_collapsed">
            @color/account_toolbar_icon_collapsed_light
        </item>

        <item name="compose_close_button_tint">@color/toolbar_icon_light</item>
        <item name="compose_media_button_disabled_tint">@color/compose_media_button_disabled_light
        </item>
        <item name="compose_content_warning_bar_background">@drawable/border_background_light</item>
        <item name="compose_reply_content_background">
            @color/compose_reply_content_background_light
        </item>

        <item name="report_status_background_color">@color/report_status_background_light</item>

        <item name="material_drawer_background">@color/window_background_light</item>
        <item name="material_drawer_primary_text">@color/text_color_primary_light</item>
        <item name="material_drawer_primary_icon">@color/toolbar_icon_light</item>
        <item name="material_drawer_secondary_text">@color/text_color_secondary_light</item>
        <item name="material_drawer_hint_text">@color/text_color_tertiary_light</item>
        <item name="material_drawer_divider">@color/color_primary_dark_light</item>
        <item name="material_drawer_selected">@color/color_primary_light</item>
        <item name="material_drawer_selected_text">@color/text_color_primary_light</item>
        <item name="material_drawer_header_selection_text">@color/text_color_primary_dark
        </item> <!--Intentionally dark so it can be overlayed over the account's header image.-->
        <item name="material_drawer_header_selection_subtext">@color/text_color_secondary_dark
        </item> <!--Intentionally dark so it can be overlayed over the account's header image.-->

        <item name="card_background_color">@color/color_primary_light</item>

        <item name="play_indicator_drawable">@drawable/ic_play_indicator_light</item>

        <item name="compound_button_color">@color/compound_button_color_light</item>

        <item name="autocomplete_divider_drawable">@drawable/autocomplete_divider_light</item>

        <item name="preferenceTheme">@style/PreferenceThemeOverlay</item>

        <item name="minTouchTargetSize">32dp</item> <!-- this affects RadioButton size -->

        <item name="pollOptionBackgroundColor">@color/color_primary_dark_light</item>

    </style>

    <style name="TuskyImageButton.Light" parent="@style/Widget.MaterialComponents.Button.UnelevatedButton">
        <item name="android:tint">@color/text_color_tertiary_light</item>
        <item name="android:background">?attr/selectableItemBackgroundBorderless</item>
    </style>

    <style name="TuskyDialog.Light" parent="@style/ThemeOverlay.MaterialComponents.Dialog.Alert">
        <item name="android:letterSpacing">0</item>
        <item name="dialogCornerRadius">8dp</item>
    </style>

    <style name="TuskyTabAppearance" parent="Widget.MaterialComponents.TabLayout">
        <item name="android:textSize">?attr/status_text_medium</item>
        <item name="android:textAllCaps">true</item>
        <item name="tabIndicatorHeight">3dp</item>
        <item name="tabIndicatorColor">?attr/tab_icon_selected_tint</item>
        <item name="tabTextColor">?android:attr/textColorSecondary</item>
        <item name="tabSelectedTextColor">?attr/tab_icon_selected_tint</item>
    </style>

    <style name="TuskyButton" parent="Widget.MaterialComponents.Button">
        <item name="android:letterSpacing">0</item>
    </style>

    <style name="TuskyButton.Outlined" parent="Widget.MaterialComponents.Button.OutlinedButton">
        <item name="android:letterSpacing">0</item>
    </style>

    <style name="TuskyButton.TextButton" parent="Widget.MaterialComponents.Button.TextButton">
        <item name="android:letterSpacing">0</item>
    </style>

    <style name="TuskyTextInput" parent="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense">
        <item name="boxStrokeColor">@color/text_input_layout_box_stroke_color</item>
        <item name="android:textColorHint">?android:attr/textColorTertiary</item>
    </style>


    <!--Black Application Theme Styles-->
    <style name="TuskyBlackThemeBase" parent="TuskyBaseTheme">
        <item name="colorPrimaryDark">@color/color_primary_dark_black</item>

        <item name="android:colorBackground">@color/color_primary_dark_black</item>
        <item name="android:windowBackground">@color/window_background_black</item>
        <item name="android:textColorPrimary">@color/text_color_primary_black</item>

        <item name="recents_background_color">@color/toolbar_background_black</item>
        <item name="window_background">@color/window_background_black</item>
        <item name="toolbar_background_color">@color/toolbar_background_black</item>
        <item name="sensitive_media_warning_background_color">@color/color_background_black</item>
        <item name="account_header_background_color">@color/color_background_black</item>

        <item name="report_status_background_color">@color/color_background_black</item>

        <item name="material_drawer_background">@color/window_background_black</item>
        <item name="material_drawer_primary_text">@color/text_color_primary_black</item>
        <item name="material_drawer_divider">@color/color_primary_dark_black</item>
        <item name="material_drawer_selected">@color/color_primary_black</item>
        <item name="material_drawer_selected_text">@color/text_color_primary_black</item>
        <item name="material_drawer_header_selection_text">@color/text_color_primary_black</item>
        <item name="tab_page_margin_drawable">@drawable/tab_page_margin_black</item>
    </style>

    <style name="TuskyBlackTheme" parent="TuskyBlackThemeBase" />

</resources>
