<resources xmlns:tools="http://schemas.android.com/tools">

    <!-- app theme -->
    <style name="BreezyWeatherTheme" parent="Theme.Material3Expressive.DayNight.NoActionBar">
        <item name="colorPrimary">@color/md_theme_primary</item>
        <item name="colorOnPrimary">@color/md_theme_onPrimary</item>
        <item name="colorPrimaryContainer">@color/md_theme_primaryContainer</item>
        <item name="colorOnPrimaryContainer">@color/md_theme_onPrimaryContainer</item>
        <item name="colorSecondary">@color/md_theme_secondary</item>
        <item name="colorOnSecondary">@color/md_theme_onSecondary</item>
        <item name="colorSecondaryContainer">@color/md_theme_secondaryContainer</item>
        <item name="colorOnSecondaryContainer">@color/md_theme_onSecondaryContainer</item>
        <item name="colorTertiary">@color/md_theme_tertiary</item>
        <item name="colorOnTertiary">@color/md_theme_onTertiary</item>
        <item name="colorTertiaryContainer">@color/md_theme_tertiaryContainer</item>
        <item name="colorOnTertiaryContainer">@color/md_theme_onTertiaryContainer</item>
        <item name="colorError">@color/md_theme_error</item>
        <item name="colorErrorContainer">@color/md_theme_errorContainer</item>
        <item name="colorOnError">@color/md_theme_onError</item>
        <item name="colorOnErrorContainer">@color/md_theme_onErrorContainer</item>
        <item name="android:colorBackground">@color/md_theme_background</item>
        <item name="colorOnBackground">@color/md_theme_onBackground</item>
        <item name="colorSurface">@color/md_theme_surface</item>
        <item name="colorOnSurface">@color/md_theme_onSurface</item>
        <item name="colorSurfaceVariant">@color/md_theme_surfaceVariant</item>
        <item name="colorOnSurfaceVariant">@color/md_theme_onSurfaceVariant</item>
        <item name="colorOutline">@color/md_theme_outline</item>
        <item name="colorOnSurfaceInverse">@color/md_theme_inverseOnSurface</item>
        <item name="colorSurfaceInverse">@color/md_theme_inverseSurface</item>
        <!--
        <item name="colorInversePrimary">@color/md_theme_inversePrimary</item>
        <item name="colorShadow">@color/md_theme_shadow</item>
        -->
        <item name="colorPrimaryInverse">@color/md_theme_primaryInverse</item>

        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowIsTranslucent">false</item>
        <item name="android:windowTranslucentStatus">false</item>
        <item name="android:windowTranslucentNavigation">false</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
        <item name="android:navigationBarColor">@android:color/transparent</item>

        <!-- Reset flag to default to fix a bug in the SplashScreen API which keeps an incorrect
         value for the postSplashScreenTheme causing layouts to be unintentionally offset into the
         display cutout area in landscape mode.
         Related issue: https://issuetracker.google.com/issues/214408199 -->
        <item name="android:windowLayoutInDisplayCutoutMode" tools:ignore="NewApi">default</item>

        <item name="colorControlHighlight">@color/colorRipple_regular</item>
        <item name="colorTitleText">@color/colorTextTitle</item>
        <item name="colorBodyText">@color/colorTextContent</item>
        <item name="colorCaptionText">@color/colorTextSubtitle</item>
        <item name="colorMainCardBackground">@color/colorMainCardBackground</item>
        <item name="colorPrecipitationProbability">@color/colorPrecipitationProbability</item>
        <item name="actionBarSize">@dimen/action_bar_height</item>
    </style>

    <style name="BreezyWeatherTheme.Main" parent="Theme.SplashScreen">
        <item name="windowSplashScreenBackground">@color/colorSplashScreen</item>
        <item name="windowSplashScreenAnimatedIcon">@drawable/ic_launcher_foreground</item>
        <item name="postSplashScreenTheme">@style/BreezyWeatherTheme</item>
    </style>

    <style name="BreezyWeatherTheme.Search" parent="BreezyWeatherTheme">
        <item name="android:windowContentTransitions">true</item>
    </style>

    <style name="BreezyWeatherTheme.AppBarTheme">
        <item name="android:background">?attr/colorSurface</item>
        <item name="elevation">0dp</item>
    </style>

    <style name="BreezyWeatherTheme.ToolbarTheme">
        <item name="titleTextAppearance">?attr/textAppearanceHeadline6</item>
        <item name="subtitleTextAppearance">?attr/textAppearanceSubtitle1</item>

        <item name="android:height">?attr/actionBarSize</item>
        <item name="android:elevation">0dp</item>
        <item name="android:background">?attr/colorSurface</item>
        <item name="titleTextColor">?attr/colorOnSurface</item>
        <item name="subtitleTextColor">@color/material_on_primary_emphasis_medium</item>

        <item name="android:maxButtonHeight" tools:ignore="NewApi">@dimen/mtrl_toolbar_default_height</item>
        <item name="navigationIconTint">?attr/colorOnSurface</item>

        <item name="android:theme">@style/ThemeOverlay.MaterialComponents.Toolbar.Surface</item>
        <item name="popupTheme">@style/ThemeOverlay.MaterialComponents.Toolbar.Popup.Primary</item>
    </style>

    <!-- card. -->
    <style name="material_card">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_marginTop">0dp</item>
        <item name="android:layout_marginLeft">@dimen/small_margin</item>
        <item name="android:layout_marginRight">@dimen/small_margin</item>
        <item name="android:layout_marginBottom">@dimen/small_margin</item>
        <item name="cardCornerRadius">@dimen/material3_card_list_item_corner_radius</item>
        <item name="cardElevation">2dp</item>
        <item name="cardBackgroundColor">?attr/colorSurface</item>
        <item name="android:foreground">@drawable/selectable_item_background</item>
    </style>

    <style name="BreezyWeather.Widget.Background" parent="@android:style/Widget">
        <item name="android:background">@drawable/widget_m3_background</item>
        <item name="android:padding">16dp</item>
    </style>

    <style name="widget_background_card">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">match_parent</item>
        <item name="android:src">@drawable/widget_card_follow_system</item>
    </style>

    <!-- view. -->
    <style name="week_weather_week_info">
        <item name="android:layout_width">0dp</item>
        <item name="android:layout_height">96dp</item>
        <item name="android:layout_weight">1</item>
        <item name="android:foreground">@drawable/selectable_item_background</item>
    </style>

    <!-- image. -->
    <style name="material_icon">
        <item name="android:layout_width">@dimen/material_icon_size</item>
        <item name="android:layout_height">@dimen/material_icon_size</item>
        <item name="android:layout_marginTop">@dimen/normal_margin</item>
        <item name="android:layout_marginLeft">@dimen/normal_margin</item>
        <item name="android:layout_marginRight">@dimen/normal_margin</item>
        <item name="android:layout_marginBottom">@dimen/normal_margin</item>
        <item name="android:tint">@color/colorTextContent</item>
    </style>

    <style name="widget_week_icon">
        <item name="android:layout_width">36dp</item>
        <item name="android:layout_height">36dp</item>
        <item name="android:layout_centerHorizontal">true</item>
        <item name="android:src">@drawable/weather_cloudy</item>
    </style>

    <!-- text. -->
    <style name="large_title_text" parent="TextAppearance.Material3.TitleLarge">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textSize">@dimen/large_title_text_size</item>
        <item name="android:textColor">@android:color/white</item>
    </style>

    <style name="title_text" parent="TextAppearance.Material3.TitleMedium">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textSize">@dimen/title_text_size</item>
        <item name="android:textColor">?attr/colorTitleText</item>
    </style>

    <style name="content_text" parent="TextAppearance.Material3.BodyMedium">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textSize">@dimen/content_text_size</item>
        <item name="android:textColor">?attr/colorBodyText</item>
    </style>

    <style name="subtitle_text" parent="TextAppearance.Material3.LabelMedium">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textSize">@dimen/subtitle_text_size</item>
        <item name="android:textColor">?attr/colorCaptionText</item>
    </style>

    <style name="notification_large_title_text" parent="@style/TextAppearance.Compat.Notification.Title">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textSize">@dimen/large_title_text_size</item>
    </style>

    <style name="notification_title_text" parent="@style/TextAppearance.Compat.Notification.Title">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textSize">@dimen/title_text_size</item>
    </style>

    <style name="notification_content_text" parent="@style/TextAppearance.Compat.Notification.Info">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textSize">@dimen/content_text_size</item>
    </style>

    <style name="notification_subtitle_text" parent="@style/TextAppearance.Compat.Notification.Info">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textSize">@dimen/subtitle_text_size</item>
    </style>

    <!-- spinner -->
    <style name="spinner_item" parent="Widget.AppCompat.DropDownItem.Spinner">
        <item name="android:textSize">@dimen/content_text_size</item>
        <item name="android:textColor">@color/colorTextContent</item>
    </style>

    <!-- switch -->
    <style name="my_switch">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_alignParentRight">true</item>
        <item name="android:layout_alignParentTop">true</item>
        <item name="android:backgroundTint">?attr/colorPrimary</item>
    </style>

    <!-- button -->
    <style name="material_button" parent="@style/Widget.Material3.Button.TextButton">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:textSize">@dimen/content_text_size</item>
        <item name="android:textColor">?attr/colorPrimary</item>
    </style>

    <style name="activity_create_widget_done_button" parent="material_button">
        <item name="android:layout_alignParentRight">true</item>
        <item name="android:text">@string/action_done</item>
    </style>

    <style name="material_image_button">
        <item name="android:layout_width">40dp</item>
        <item name="android:layout_height">40dp</item>
        <item name="android:padding">@dimen/small_margin</item>
        <item name="android:layout_margin">@dimen/small_margin</item>
        <item name="android:background">@drawable/selectable_item_background_borderless</item>
        <item name="android:tint">@color/colorTextContent</item>
    </style>

    <!-- widget -->
    <style name="widget_text_clock">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_centerHorizontal">true</item>
        <item name="android:format24Hour">HH:mm</item>
        <item name="android:format12Hour">h:mm</item>
        <item name="android:textSize">@dimen/widget_current_weather_icon_size</item>
        <item name="android:textColor">@color/colorTextTitle</item>
        <!--        <item name="android:shadowColor">@color/colorTextDark2nd</item>-->
        <!--        <item name="android:shadowDx">1</item>-->
        <!--        <item name="android:shadowDy">1</item>-->
        <!--        <item name="android:shadowRadius">1</item>-->
    </style>

    <style name="widget_text_clock_aa">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:format24Hour">\t</item>
        <item name="android:format12Hour">aa</item>
        <item name="android:textSize" tools:ignore="SpUsage">@dimen/widget_aa_text_size</item>
        <item name="android:textColor">@color/colorTextTitle</item>
        <!--        <item name="android:shadowColor">@color/colorTextDark2nd</item>-->
        <!--        <item name="android:shadowDx">1</item>-->
        <!--        <item name="android:shadowDy">1</item>-->
        <!--        <item name="android:shadowRadius">1</item>-->
    </style>

    <style name="widget_text_clock_analog">
        <item name="android:layout_width">128dp</item>
        <item name="android:layout_height">128dp</item>
        <item name="android:hand_hour">@drawable/clock_hour_dark</item>
        <item name="android:hand_minute">@drawable/clock_minute_dark</item>
        <item name="android:dial">@drawable/clock_dial_dark</item>
    </style>
    <style name="widget_text_clock_analog.Light" parent="widget_text_clock_analog">
        <item name="android:hand_hour">@drawable/clock_hour_light</item>
        <item name="android:hand_minute">@drawable/clock_minute_light</item>
        <item name="android:dial">@drawable/clock_dial_light</item>
    </style>
    <style name="widget_text_clock_analog.Dark" parent="widget_text_clock_analog">
        <item name="android:hand_hour">@drawable/clock_hour_dark</item>
        <item name="android:hand_minute">@drawable/clock_minute_dark</item>
        <item name="android:dial">@drawable/clock_dial_dark</item>
    </style>

    <style name="widget_large_title_text" parent="large_title_text">
        <item name="android:textColor">@color/colorTextTitle</item>
    </style>

    <style name="widget_title_text" parent="title_text">
        <item name="android:textColor">@color/colorTextTitle</item>
    </style>

    <style name="widget_content_text" parent="content_text">
        <item name="android:textColor">@color/colorTextTitle</item>
    </style>

    <style name="widget_subtitle_text" parent="subtitle_text">
        <item name="android:textColor">@color/colorTextTitle</item>
    </style>

    <!-- progress bar. -->
    <style name="widget_progress">
        <item name="android:layout_width">@dimen/widget_small_weather_icon_size</item>
        <item name="android:layout_height">@dimen/widget_small_weather_icon_size</item>
        <item name="android:indeterminate">true</item>
        <item name="android:indeterminateTintMode" tools:ignore="NewApi">src_atop</item>
        <item name="android:indeterminateTint" tools:ignore="NewApi">@color/lightPrimary_5</item>
    </style>

    <!-- Charts -->
    <style name="NowcastingChart">
        <item name="layers">column</item>
        <item name="showBottomAxis">true</item>
    </style>

    <!-- Weather blocks -->
    <style name="Weather.TextAppearance.MainBlock.NumberDigit" parent="@style/TextAppearance.Material3.DisplaySmall">
        <item name="android:textSize">45sp</item>
        <item name="android:textAllCaps">false</item>
        <item name="android:letterSpacing">0</item>
    </style>
    <style name="Weather.TextAppearance.MainBlock.Clock" parent="@style/TextAppearance.Material3.DisplaySmall">
        <item name="android:fontFamily">@font/robotoflex_family</item>
        <item name="android:textSize">50sp</item>
    </style>
</resources>
