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

    <style name="MainTheme" parent="Theme.Material3.DayNight.NoActionBar">
        <item name="android:colorPrimaryDark">?android:attr/colorBackground</item>
    </style>

    <style name="Theme.Main.Light" parent="Theme.Material3.Light.NoActionBar">
        <item name="colorPrimary">@color/green300</item>
        <item name="colorOnPrimary">@color/black</item>
        <item name="colorSurface">@color/green50</item>
        <item name="colorOnSurface">@color/black</item>
        <item name="android:colorBackground">@color/white</item>
        <item name="colorOnBackground">@color/grey_dark</item>
        <item name="android:colorAccent">@color/accent_light</item>
        <item name="colorError">@color/error_light</item>
        <item name="colorControlActivated">@color/green300</item>
        <item name="android:textColor">@color/black</item>
        <item name="android:textColorPrimary">@color/green900</item>
        <item name="android:fastScrollThumbDrawable">@drawable/scrollbar_thumb</item>
        <item name="android:fastScrollTrackDrawable">@drawable/scrollbar_track</item>
        <item name="android:windowLightStatusBar" tools:targetApi="m">true</item>
        <item name="switchStyle">@style/Theme.Switch</item>
        <item name="materialAlertDialogTheme">@style/Theme.Alert</item>
        <item name="tabStyle">@style/Theme.Tab</item>
        <item name="textInputStyle">@style/Theme.EditText</item>
        <item name="android:statusBarColor">@color/green50</item>
        <item name="android:navigationBarColor">@android:color/transparent</item>
        <item name="appBarLayoutStyle">@style/Theme.AppBarLayout</item>
        <item name="collapsingToolbarLayoutLargeStyle">@style/Theme.CollapsingToolbar</item>
        <item name="toolbarStyle">@style/Theme.Toolbar</item>
    </style>

    <style name="Theme.Main.Dark" parent="Theme.Material3.Dark.NoActionBar">
        <item name="colorPrimary">@color/green200</item>
        <item name="colorOnPrimary">@color/black</item>
        <item name="colorSurface">@color/grey_dark</item>
        <item name="colorOnSurface">@color/green50</item>
        <item name="android:colorBackground">@color/black</item>
        <item name="colorOnBackground">@color/green200</item>
        <item name="android:colorAccent">@color/accent_dark</item>
        <item name="colorError">@color/error_dark</item>
        <item name="colorControlActivated">@color/green200</item>
        <item name="android:textColorPrimary">@color/green200</item>
        <item name="android:textColor">@color/white</item>
        <item name="android:fastScrollThumbDrawable">@drawable/scrollbar_thumb</item>
        <item name="android:fastScrollTrackDrawable">@drawable/scrollbar_track</item>
        <item name="switchStyle">@style/Theme.Switch</item>
        <item name="materialAlertDialogTheme">@style/Theme.Alert</item>
        <item name="tabStyle">@style/Theme.Tab</item>
        <item name="textInputStyle">@style/Theme.EditText</item>
        <item name="android:statusBarColor">@color/grey_dark</item>
        <item name="android:navigationBarColor">@android:color/transparent</item>
        <item name="appBarLayoutStyle">@style/Theme.AppBarLayout</item>
        <item name="collapsingToolbarLayoutLargeStyle">@style/Theme.CollapsingToolbar</item>
        <item name="toolbarStyle">@style/Theme.Toolbar</item>
    </style>

    <style name="Theme.Main.Amoled" parent="Theme.Material3.Dark.NoActionBar">
        <item name="colorPrimary">@color/green100</item>
        <item name="colorOnPrimary">@color/black</item>
        <item name="colorSurface">@color/black</item>
        <item name="colorOnSurface">@color/green50</item>
        <item name="android:colorBackground">@color/pitch_black</item>
        <item name="colorOnBackground">@color/green50</item>
        <item name="android:colorAccent">@color/accent_dark</item>
        <item name="colorError">@color/error_dark</item>
        <item name="colorControlActivated">@color/green100</item>
        <item name="colorControlNormal">@color/green300</item>
        <item name="android:textColorPrimary">@color/green100</item>
        <item name="android:textColor">@color/white</item>
        <item name="android:fastScrollThumbDrawable">@drawable/scrollbar_thumb</item>
        <item name="android:fastScrollTrackDrawable">@drawable/scrollbar_track</item>
        <item name="switchStyle">@style/Theme.Switch</item>
        <item name="materialAlertDialogTheme">@style/Theme.Alert</item>
        <item name="tabStyle">@style/Theme.Tab</item>
        <item name="textInputStyle">@style/Theme.EditText</item>
        <item name="android:statusBarColor">@color/black</item>
        <item name="android:navigationBarColor">@android:color/transparent</item>
        <item name="appBarLayoutStyle">@style/Theme.AppBarLayout</item>
        <item name="collapsingToolbarLayoutLargeStyle">@style/Theme.CollapsingToolbar</item>
        <item name="toolbarStyle">@style/Theme.Toolbar</item>
    </style>

    <style name="Theme.AppBarLayout" parent="Widget.Material3.AppBarLayout">
        <item name="android:background">@drawable/bottom_corner</item>
        <item name="android:backgroundTint">?attr/colorSurface</item>
        <item name="android:fitsSystemWindows">true</item>
    </style>

    <style name="Theme.CollapsingToolbar" parent="Widget.Material3.CollapsingToolbar.Large">
        <item name="titleCollapseMode">scale</item>
        <item name="expandedTitleMarginStart">32dp</item>
        <item name="contentScrim">@android:color/transparent</item>
        <item name="android:backgroundTint">?attr/colorSurface</item>
        <item name="expandedTitleTextAppearance">?textAppearanceHeadlineLarge</item>
    </style>

    <style name="Theme.Toolbar" parent="Widget.Material3.Toolbar.Surface">
        <item name="layout_collapseMode">pin</item>
        <item name="android:backgroundTint">?attr/colorSurface</item>
        <item name="android:background">@drawable/bottom_corner</item>
    </style>

    <style name="Theme.Tab" parent="Widget.Material3.TabLayout">
        <item name="tabTextColor">@color/tab_text_color</item>
        <item name="tabIndicatorColor">?android:attr/textColorPrimary</item>
        <item name="tabTextAppearance">?attr/textAppearanceBody1</item>
    </style>

    <style name="Theme.Alert" parent="ThemeOverlay.Material3.MaterialAlertDialog.Centered">
        <item name="colorPrimary">?attr/colorOnSurface</item>
        <item name="android:dialogCornerRadius" tools:targetApi="p">@dimen/shape_large_corner</item>
        <item name="android:backgroundTint">?attr/colorSurface</item>
        <item name="colorOnSurfaceVariant">?attr/colorOnSurface</item>
    </style>

    <style name="Theme.EditText" parent="Widget.Material3.TextInputLayout.FilledBox">
        <item name="boxBackgroundColor">?attr/colorSurface</item>
        <item name="boxStrokeColor">?attr/colorPrimary</item>
        <item name="boxStrokeWidth">2dp</item>
        <item name="hintTextColor">?attr/colorPrimary</item>
        <item name="android:textColorHint">?attr/colorPrimary</item>
    </style>

    <style name="Theme.Progress" parent="Widget.Material3.LinearProgressIndicator">
        <item name="trackColor">?attr/colorSurface</item>
        <item name="trackThickness">8dp</item>
        <item name="trackCornerRadius">4dp</item>
    </style>

    <style name="Theme.Switch" parent="Widget.Material3.CompoundButton.Switch">
        <item name="trackTint">@color/switch_track_color</item>
        <item name="thumbTint">@color/switch_thumb_tint</item>
    </style>

    <style name="Shape.Small" parent="ShapeAppearance.Material3.SmallComponent">
        <item name="cornerSize">@dimen/shape_small_corner</item>
    </style>

    <style name="Shape.Medium" parent="ShapeAppearance.Material3.MediumComponent">
        <item name="cornerSize">@dimen/shape_medium_corner</item>
    </style>

    <style name="Shape.Large" parent="ShapeAppearance.Material3.LargeComponent">
        <item name="cornerSize">@dimen/shape_large_corner</item>
    </style>

    <style name="PillShapeAppearance">
        <item name="cornerFamily">rounded</item>
        <item name="cornerSize">50%</item>
    </style>

</resources>
