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

    <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
        <item name="android:actionMenuTextColor">@color/day_night</item>
        <item name="android:divider">@color/divider</item>
        <item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
        <item name="android:itemBackground">@color/item_background</item>
        <item name="android:textColorPrimary">@color/text_color_primary</item>
        <item name="android:textColorSecondary">@color/text_color_secondly</item>
        <item name="android:windowBackground">@color/window_background</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="drawer_group_text_color">@color/drawer_menu_group_text_color</item>
        <item name="drawer_item_text_color">@color/drawer_menu_item_text_color</item>
        <item name="itemBackgroundDark">@color/item_background_dark</item>
        <item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
        <item name="actionOverflowMenuStyle">@style/OverflowMenu</item>
    </style>

    <style name="ToolBarStyle" parent="ThemeOverlay.AppCompat.DayNight.ActionBar">
        <item name="searchViewStyle">@style/SearchViewActionBar</item>
        <item name="android:textColorPrimary">@color/toolbar_text</item>
        <item name="android:textColorSecondary">@color/toolbar_text</item>
        <item name="actionMenuTextColor">@color/toolbar_text</item>
        <item name="titleMarginStart">0dp</item>
        <item name="iconTint">@color/toolbar_text</item>
        <item name="popupTheme">@style/PopupMenuTheme</item>
    </style>

    <style name="ToolBarStyleInrt" parent="ThemeOverlay.AppCompat.DayNight.ActionBar">
        <item name="colorControlNormal">@color/md_black_1000</item>
    </style>

    <style name="EditorTheme" parent="AppTheme">
        <item name="android:windowActionModeOverlay">true</item>
        <item name="android:actionModeBackground">@color/colorAccent</item>
    </style>

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

    <style name="AppTheme.Splash" parent="@android:style/Theme.NoTitleBar.Fullscreen">
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="android:windowBackground">@color/window_background</item>
    </style>

    <style name="AppTheme.Settings" parent="AppTheme">
        <item name="android:dividerHeight">0dp</item>
        <item name="android:listDivider">@color/divider_app_settings_list</item>
        <item name="android:windowBackground">@color/window_background</item>
        <item name="android:textColorPrimary">@color/prefTextColorPrimary</item>
        <item name="android:textColorSecondary">@color/prefTextColorSecondary</item>
    </style>

    <style name="AppTheme.Transparent" parent="AppTheme">
        <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>

    <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.DayNight.ActionBar" />

    <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.DayNight.ActionBar">
        <item name="android:textColorPrimary">#212121</item>
        <item name="android:textColorSecondary">@color/colorAccent</item>
    </style>

    <style name="MtAppTheme.FullScreen" parent="Theme.AppCompat.DayNight.NoActionBar">
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
    </style>

    <style name="MtAppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.DayNight.ActionBar" />

    <style name="MtAppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.DayNight.ActionBar">
        <item name="android:textColorPrimary">#212121</item>
    </style>

    <style name="ConsoleTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
        <item name="colorButtonNormal">#cc181818</item>
    </style>

    <style name="ScriptTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="android:popupTheme" tools:ignore="NewApi">@style/ScriptTheme.PopupOverlay</item>
    </style>

    <style name="ScriptTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />

    <style name="ScriptTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />

    <style name="ScriptTheme.Transparent" parent="ScriptTheme">
        <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>

    <style name="PopupMenuTheme" parent="AppTheme.PopupOverlay">
        <item name="android:textColor">@color/day_night</item>
        <item name="android:tint">@color/day_night</item>
    </style>

    <style name="SearchViewActionBar" parent="@style/Widget.AppCompat.SearchView.ActionBar" />

    <style name="Material3DarkTheme" parent="@style/Theme.Material3.Dark" />

    <style name="TextAppearanceEditorTitle" parent="TextAppearance.Widget.AppCompat.Toolbar.Title">
        <item name="android:textSize">@dimen/editor_title_text_size</item>
        <item name="android:maxLines">2</item>
        <item name="android:ellipsize">middle</item>
    </style>

    <style name="TextAppearanceMainTitle" parent="TextAppearance.Widget.AppCompat.Toolbar.Title">
        <item name="android:textSize">@dimen/main_title_text_size</item>
        <item name="android:maxLines">1</item>
        <item name="android:ellipsize">end</item>
    </style>

    <style name="OverflowIconDarkTheme" parent="@style/Widget.AppCompat.ActionButton.Overflow" >
        <item name="android:tint">@color/md_white_1000</item>
    </style>

    <style name="OverflowMenu" parent="Widget.AppCompat.PopupMenu.Overflow">
        <item name="android:windowDisablePreview">true</item>
        <item name="overlapAnchor">false</item>
        <item name="android:dropDownVerticalOffset">5.0dp</item>
    </style>

    <style name="OverflowMenuInrt" parent="OverflowMenu">
        <item name="android:textColor">@color/md_black_1000</item>
        <item name="android:popupBackground">@color/md_blue_grey_100</item>
        <item name="android:itemBackground">@color/md_blue_grey_100</item>
    </style>

</resources>
