mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-16 06:19:17 +01:00
183 lines
10 KiB
XML
183 lines
10 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<!--============-->
|
|
<!-- Base Theme -->
|
|
<!--============-->
|
|
<style name="Theme"/>
|
|
|
|
<style name="Theme.Base" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
|
<item name="android:forceDarkAllowed" tools:targetApi="29">false</item>
|
|
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
|
<item name="colorPrimary">@color/bluePrimary</item>
|
|
<item name="colorPrimaryVariant">@color/colorPrimary</item>
|
|
<item name="colorSecondary">@color/background</item>
|
|
<item name="colorPrimaryDark">@color/bluePrimary</item>
|
|
<item name="colorControlActivated">@color/colorAccent</item>
|
|
<item name="colorAccent">@color/colorAccent</item>
|
|
<item name="android:textColorPrimary">@color/textColorPrimary</item>
|
|
<item name="android:textColorSecondary">@color/textColorSecondary</item>
|
|
<item name="android:textColorHint">@color/textColorHint</item>
|
|
<item name="android:textColorPrimaryInverse">@color/textColorPrimaryInverse</item>
|
|
<item name="android:textColorSecondaryInverse">@color/textColorSecondaryInverse</item>
|
|
<item name="android:textColorHintInverse">@color/textColorHintInverse</item>
|
|
<item name="android:colorBackground">@color/background</item>
|
|
<item name="android:listSelector">?colorAccent</item>
|
|
<item name="android:divider">@color/divider</item>
|
|
<item name="android:listDivider">@drawable/line_divider_light</item>
|
|
<item name="actionModeStyle">@style/CustomActionModeStyle</item>
|
|
<item name="tabBarIconColor">?colorAccent</item>
|
|
<item name="tabBarIconInactive">@color/colorPrimaryInactive</item>
|
|
|
|
|
|
<!-- Themes -->
|
|
<item name="windowActionModeOverlay">true</item>
|
|
<item name="actionBarTheme">@style/ThemeOverlay.AppCompat.DayNight.ActionBar</item>
|
|
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
|
|
<item name="alertDialogTheme">@style/Theme.AlertDialog.DayNight</item>
|
|
|
|
|
|
<!-- Custom Attributes-->
|
|
<item name="navigation_view_theme">@style/Theme.Widget.NavigationView</item>
|
|
<item name="selectable_list_drawable">@drawable/list_item_selector</item>
|
|
<item name="selectable_library_drawable">@drawable/library_item_selector_light</item>
|
|
<item name="text_color_primary">@color/textColorPrimary</item>
|
|
<item name="background_card">@color/cardBackground</item>
|
|
<item name="icon_color">@color/iconColor</item>
|
|
<item name="snackbar_background">@color/snackbarBackground</item>
|
|
<item name="snackbar_text">@color/textColorPrimaryInverse</item>
|
|
<item name="actionBarTintColor">@color/textColorPrimary</item>
|
|
<item name="badgeColor">@color/badgeColor</item>
|
|
|
|
<item name="android:statusBarColor">@color/mainStatus</item>
|
|
<item name="android:navigationBarColor">#B3000000</item>
|
|
<item name="android:colorEdgeEffect">@color/colorAccent</item>
|
|
|
|
<!-- Material Dialog colors -->
|
|
<item name="md_color_title">@color/textColorPrimary</item>
|
|
<item name="md_color_content">@color/textColorSecondary</item>
|
|
<item name="md_color_button_text">@color/colorAccent</item>
|
|
<item name="md_background_color">@color/dialog</item>
|
|
<item name="md_button_casing">literal</item>
|
|
<item name="md_corner_radius">16dp</item>
|
|
<item name="android:windowLightStatusBar">true</item>
|
|
<item name="android:windowLightNavigationBar" tools:targetApi="27">true</item>
|
|
</style>
|
|
|
|
<style name="Theme.Tachiyomi" parent="Theme.Base"/>
|
|
<style name="Theme.Tachiyomi.AllBlue" parent="Theme.Tachiyomi">
|
|
<item name="colorPrimaryVariant">@color/bluePrimary</item>
|
|
<item name="colorSecondary">@color/bluePrimary</item>
|
|
<item name="tabBarIconColor">@color/md_white_1000</item>
|
|
<item name="tabBarIconInactive">@color/md_white_1000_50</item>
|
|
<item name="android:statusBarColor">@color/blueStatus</item>
|
|
<item name="actionBarTintColor">@color/md_white_1000</item>
|
|
<item name="actionBarTheme">@style/Theme.ActionBar.Dark.DayNight</item>
|
|
<item name="android:windowLightStatusBar">false</item>
|
|
<item name="android:windowLightNavigationBar" tools:targetApi="27">false</item>
|
|
</style>
|
|
<style name="Theme.Tachiyomi.Amoled" parent="Theme.Tachiyomi"/>
|
|
<!--==============-->
|
|
<!-- Reader Theme -->
|
|
<!--==============-->
|
|
<style name="Theme.Base.Reader" parent="Theme.Base">
|
|
<item name="android:forceDarkAllowed" tools:targetApi="29">false</item>
|
|
<item name="colorPrimary">@color/darkPrimaryTranslucent</item>
|
|
<item name="colorPrimaryDark">@color/darkPrimaryTranslucent</item>
|
|
<item name="android:colorBackground">@android:color/white</item>
|
|
<item name="actionBarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>
|
|
<item name="actionBarTintColor">@color/md_white_1000</item>
|
|
<item name="android:statusBarColor">?colorPrimaryDark</item>
|
|
<item name="android:navigationBarColor">?colorPrimaryDark</item>
|
|
<item name="android:windowLightStatusBar">false</item>
|
|
<item name="android:windowLightNavigationBar" tools:targetApi="27">false</item>
|
|
</style>
|
|
|
|
<style name="Theme.Base.Reader.Dark" parent="Theme.MaterialComponents.NoActionBar">
|
|
<item name="android:forceDarkAllowed" tools:targetApi="29">false</item>
|
|
<item name="colorPrimary">@color/darkPrimaryTranslucent</item>
|
|
<item name="colorPrimaryDark">@color/darkPrimaryTranslucent</item>
|
|
<item name="android:colorBackground">@android:color/black</item>
|
|
<item name="colorAccent">#3399FF</item>
|
|
<item name="android:textColorPrimary">@color/md_white_1000</item>
|
|
<item name="android:textColorSecondary">@color/md_white_1000_70</item>
|
|
<item name="android:textColorHint">@color/md_white_1000_50</item>
|
|
<item name="android:textColorPrimaryInverse">@color/md_black_1000_87</item>
|
|
<item name="android:textColorSecondaryInverse">@color/md_black_1000_54</item>
|
|
<item name="android:textColorHintInverse">@color/md_black_1000_38</item>
|
|
<item name="android:listSelector">?colorAccent</item>
|
|
<item name="android:divider">@android:color/transparent</item>
|
|
<item name="android:listDivider">@drawable/line_divider_dark</item>
|
|
|
|
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
|
<item name="android:statusBarColor">?colorPrimaryDark</item>
|
|
<item name="android:navigationBarColor">@color/darkPrimaryColor</item>
|
|
<item name="actionBarTintColor">@color/md_white_1000</item>
|
|
|
|
<!-- Themes -->
|
|
<item name="windowActionModeOverlay">true</item>
|
|
<item name="actionBarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>
|
|
<item name="actionBarPopupTheme">@style/ThemeOverlay.AppCompat</item>
|
|
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
|
|
<item name="md_background_color">@android:color/transparent</item>
|
|
<item name="alertDialogTheme">@style/Theme.AlertDialog.DayNight</item>
|
|
|
|
|
|
<!-- Custom Attributes-->
|
|
<item name="navigation_view_theme">@style/Theme.Widget.NavigationView</item>
|
|
<item name="selectable_list_drawable">@drawable/list_item_selector_dark</item>
|
|
<item name="selectable_library_drawable">@drawable/library_item_selector_dark</item>
|
|
<item name="text_color_primary">@color/md_white_1000</item>
|
|
<item name="background_card">@android:color/transparent</item>
|
|
<item name="icon_color">@color/iconColor</item>
|
|
|
|
</style>
|
|
|
|
<style name="Theme.Base.Reader.Light" parent="Theme.MaterialComponents.Light.NoActionBar">
|
|
<item name="android:forceDarkAllowed" tools:targetApi="29">false</item>
|
|
<item name="colorPrimary">@color/darkPrimaryTranslucent</item>
|
|
<item name="colorPrimaryDark">@color/darkPrimaryTranslucent</item>
|
|
<item name="android:colorBackground">@android:color/white</item>
|
|
<item name="colorAccent">@color/colorAccent</item>
|
|
<item name="android:textColorPrimary">@color/md_black_1000_87</item>
|
|
<item name="android:textColorSecondary">@color/md_black_1000_54</item>
|
|
<item name="android:textColorHint">@color/md_white_1000</item>
|
|
<item name="android:textColorPrimaryInverse">@color/md_white_1000</item>
|
|
<item name="android:textColorSecondaryInverse">@color/md_white_1000_70</item>
|
|
<item name="android:textColorHintInverse">@color/md_white_1000_50</item>
|
|
<item name="android:listSelector">?colorAccent</item>
|
|
<item name="android:divider">@color/md_white_1000_50</item>
|
|
<item name="android:listDivider">@drawable/line_divider_light</item>
|
|
|
|
<!-- Themes -->
|
|
<item name="windowActionModeOverlay">true</item>
|
|
<item name="actionBarTheme">@style/Theme.ActionBar.Dark.DayNight</item>
|
|
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
|
|
<item name="alertDialogTheme">@style/Theme.AlertDialog.DayNight</item>
|
|
|
|
|
|
<!-- Custom Attributes-->
|
|
<item name="navigation_view_theme">@style/Theme.Widget.NavigationView</item>
|
|
<item name="selectable_list_drawable">@drawable/list_item_selector</item>
|
|
<item name="selectable_library_drawable">@drawable/library_item_selector_light</item>
|
|
<item name="text_color_primary">@color/md_black_1000_87</item>
|
|
<item name="background_card">@color/md_white_1000_50</item>
|
|
<item name="icon_color">@color/md_black_1000_54</item>
|
|
|
|
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
|
<item name="android:statusBarColor">?colorPrimaryDark</item>
|
|
<item name="android:navigationBarColor">?colorPrimaryDark</item>
|
|
</style>
|
|
|
|
<!--===============-->
|
|
<!-- Launch Screen -->
|
|
<!--===============-->
|
|
<style name="Theme.Splash" parent="Theme.Tachiyomi">
|
|
<item name="android:windowBackground">@drawable/splash_background</item>
|
|
<item name="android:statusBarColor">@color/splashBackground</item>
|
|
<item name="android:navigationBarColor">@color/splashBackground</item>
|
|
<item name="android:windowLightStatusBar">false</item>
|
|
<item name="android:windowLightNavigationBar" tools:targetApi="27">false</item>
|
|
</style>
|
|
</resources>
|