2016-03-12 21:22:40 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-11-16 03:34:59 +08:00
|
|
|
<resources xmlns:tools="http://schemas.android.com/tools">
|
2016-03-12 21:22:40 +08:00
|
|
|
|
|
|
|
<!--============-->
|
|
|
|
<!-- Base Theme -->
|
|
|
|
<!--============-->
|
|
|
|
|
2021-07-15 20:46:30 +08:00
|
|
|
<!--== Theme Base ==-->
|
2021-07-02 20:44:04 +08:00
|
|
|
<style name="Base.Theme.Tachiyomi" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
2021-07-05 05:51:15 +08:00
|
|
|
<!-- Disallow "Force dark theme" -->
|
2021-04-13 20:51:08 +08:00
|
|
|
<item name="android:forceDarkAllowed" tools:targetApi="Q">false</item>
|
|
|
|
|
2021-07-15 20:46:30 +08:00
|
|
|
<!-- Theme Colors -->
|
2021-07-02 20:44:04 +08:00
|
|
|
<item name="colorPrimary">@color/accent_default</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="colorPrimaryVariant">?attr/colorPrimary</item>
|
|
|
|
<item name="colorOnPrimary">@color/md_white_1000</item>
|
|
|
|
<item name="colorSecondary">?attr/colorPrimary</item>
|
|
|
|
<item name="colorSecondaryVariant">?attr/colorPrimaryVariant</item>
|
|
|
|
<item name="colorOnSecondary">?attr/colorOnPrimary</item>
|
2021-05-27 06:11:14 +08:00
|
|
|
<item name="colorTertiary">@color/green</item>
|
|
|
|
<item name="colorOnTertiary">@color/md_white_1000</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="colorToolbar">?attr/colorSurface</item>
|
|
|
|
<item name="colorOnToolbar">?attr/colorOnSurface</item>
|
2021-07-02 20:44:04 +08:00
|
|
|
<item name="colorSurface">@color/surface_default</item>
|
|
|
|
<item name="android:colorBackground">@color/background_default</item>
|
|
|
|
<item name="android:divider">@color/divider_default</item>
|
2020-03-12 07:08:57 +08:00
|
|
|
<item name="android:listDivider">@drawable/line_divider</item>
|
2016-03-12 21:22:40 +08:00
|
|
|
|
2021-05-24 02:29:59 +08:00
|
|
|
<!-- Ripples -->
|
2021-07-02 20:44:04 +08:00
|
|
|
<item name="colorControlHighlight">@color/ripple_colored_default</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="rippleColorToolbar">?attr/colorControlHighlight</item>
|
2021-05-24 02:29:59 +08:00
|
|
|
|
2021-07-15 20:46:30 +08:00
|
|
|
<!-- Handles RTL Text -->
|
2020-02-22 07:41:37 +08:00
|
|
|
<item name="android:textAlignment">gravity</item>
|
|
|
|
<item name="android:textDirection">locale</item>
|
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<!-- Themes -->
|
2021-07-02 20:44:04 +08:00
|
|
|
<item name="android:windowLightStatusBar">@bool/lightStatusBar</item>
|
2021-08-19 21:12:52 +08:00
|
|
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
2021-07-02 20:44:04 +08:00
|
|
|
<item name="android:navigationBarColor">@color/surface_amoled</item>
|
2021-04-18 23:29:56 +08:00
|
|
|
<item name="android:navigationBarDividerColor" tools:targetApi="o_mr1">@null</item>
|
2021-04-13 20:51:08 +08:00
|
|
|
<item name="android:enforceNavigationBarContrast" tools:targetApi="Q">false</item>
|
2021-06-26 11:28:19 +08:00
|
|
|
<item name="android:enforceStatusBarContrast" tools:targetApi="Q">false</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="android:itemTextAppearance">@style/TextAppearance.Widget.Menu</item>
|
2021-08-14 03:44:42 +08:00
|
|
|
<item name="android:alertDialogTheme">@style/ThemeOverlay.Tachiyomi.MaterialAlertDialog</item>
|
2021-07-05 05:51:15 +08:00
|
|
|
<item name="textAppearanceButton">@style/TextAppearance.Widget.Button</item>
|
2021-08-14 03:44:42 +08:00
|
|
|
<item name="android:buttonStyle">?attr/borderlessButtonStyle</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="android:backgroundDimAmount">0.32</item>
|
2016-03-12 21:22:40 +08:00
|
|
|
<item name="windowActionModeOverlay">true</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="actionModeStyle">@style/Widget.Tachiyomi.ActionMode</item>
|
|
|
|
<item name="actionOverflowButtonStyle">@style/Theme.Tachiyomi.ActionButton.Overflow</item>
|
|
|
|
<item name="actionModeCloseButtonStyle">@style/Theme.Tachiyomi.ActionMode.CloseButton</item>
|
2020-08-23 00:36:29 +08:00
|
|
|
<item name="actionModeCloseDrawable">@drawable/ic_close_24dp</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="actionBarTheme">@style/ThemeOverlay.Tachiyomi.ActionBar</item>
|
|
|
|
<item name="toolbarNavigationButtonStyle">@style/Widget.Tachiyomi.Toolbar.Button.Navigation</item>
|
2021-10-04 00:32:04 +08:00
|
|
|
<item name="preferenceTheme">@style/PreferenceThemeOverlay.Tachiyomi</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="bottomSheetDialogTheme">@style/ThemeOverlay.Tachiyomi.BottomSheetDialog</item>
|
|
|
|
<item name="chipStyle">@style/Widget.Tachiyomi.Chip.Action</item>
|
2021-07-12 03:45:53 +08:00
|
|
|
<item name="chipTextColor">?android:attr/textColorPrimary</item>
|
2021-08-22 06:23:46 +08:00
|
|
|
<item name="chipBackgroundColor">?android:attr/divider</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="snackbarStyle">@style/Widget.Tachiyomi.Snackbar</item>
|
|
|
|
<item name="snackbarTextViewStyle">@style/Widget.Tachiyomi.Snackbar.TextView</item>
|
|
|
|
<item name="textInputStyle">@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox</item>
|
|
|
|
<item name="appBarLayoutStyle">@style/Widget.MaterialComponents.AppBarLayout.Surface</item>
|
|
|
|
<item name="toolbarStyle">@style/Widget.MaterialComponents.Toolbar.Surface</item>
|
|
|
|
<item name="tabStyle">@style/Widget.Tachiyomi.TabLayout</item>
|
2021-07-02 20:44:04 +08:00
|
|
|
<item name="bottomNavigationStyle">@style/Widget.Tachiyomi.BottomNavigationView</item>
|
|
|
|
<item name="navigationRailStyle">@style/Widget.Tachiyomi.NavigationRailView</item>
|
2021-08-10 05:47:57 +08:00
|
|
|
<item name="switchStyle">@style/Widget.Tachiyomi.Switch</item>
|
2021-10-09 22:44:08 +08:00
|
|
|
<item name="sliderStyle">@style/Widget.Tachiyomi.Slider</item>
|
2021-07-02 20:44:04 +08:00
|
|
|
<item name="elevationOverlayEnabled">false</item>
|
|
|
|
<item name="lightSystemBarsOnPrimary">false</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<!-- Custom Attributes-->
|
2021-07-05 05:51:15 +08:00
|
|
|
<item name="colorFilterActive">@color/filter_light</item>
|
2021-10-04 00:32:04 +08:00
|
|
|
|
|
|
|
<!-- Preference text appearance -->
|
|
|
|
<item name="android:textAppearanceListItem">?attr/textAppearanceSubtitle1</item>
|
|
|
|
<item name="android:textAppearanceListItemSecondary">@style/TextAppearance.Tachiyomi.Preference.Secondary</item>
|
2016-03-12 21:22:40 +08:00
|
|
|
</style>
|
|
|
|
|
2021-07-15 20:46:30 +08:00
|
|
|
<!--== Default Theme ==-->
|
2021-07-02 20:44:04 +08:00
|
|
|
<style name="Theme.Tachiyomi" parent="Base.Theme.Tachiyomi" />
|
2020-03-15 01:18:34 +08:00
|
|
|
|
2021-07-19 01:01:58 +08:00
|
|
|
<!-- Monet theme only support S+ -->
|
|
|
|
<style name="Theme.Tachiyomi.Monet" />
|
|
|
|
|
2021-07-15 20:46:30 +08:00
|
|
|
<!--== Blue Theme ==-->
|
2021-07-05 05:51:15 +08:00
|
|
|
<style name="Theme.Tachiyomi.Blue">
|
2021-07-15 20:46:30 +08:00
|
|
|
<!-- Theme Colors -->
|
2021-08-22 06:04:54 +08:00
|
|
|
<item name="colorToolbar">@color/accent_blue</item>
|
2021-08-24 05:31:16 +08:00
|
|
|
<item name="colorOnToolbar">@color/md_white_1000</item>
|
2021-08-22 06:04:54 +08:00
|
|
|
<item name="colorPrimary">@color/primary_blue</item>
|
2021-07-05 05:51:15 +08:00
|
|
|
<item name="colorControlHighlight">@color/ripple_colored_blue</item>
|
2016-03-12 21:22:40 +08:00
|
|
|
</style>
|
|
|
|
|
2021-07-15 20:46:30 +08:00
|
|
|
<!--== Green Apple Theme ==-->
|
|
|
|
<style name="Theme.Tachiyomi.GreenApple">
|
|
|
|
<!-- Theme Colors -->
|
|
|
|
<item name="colorPrimary">@color/accent_greenapple</item>
|
|
|
|
<item name="colorOnPrimary">@color/color_on_primary_greenapple</item>
|
2021-05-27 06:11:14 +08:00
|
|
|
<item name="colorTertiary">@color/md_blue_A400</item>
|
2021-07-15 20:46:30 +08:00
|
|
|
<item name="colorControlHighlight">@color/ripple_colored_greenapple</item>
|
|
|
|
<item name="lightSystemBarsOnPrimary">true</item>
|
2021-05-25 04:02:45 +08:00
|
|
|
</style>
|
|
|
|
|
2021-07-15 20:46:30 +08:00
|
|
|
<!--== Midnight Dusk Theme ==-->
|
|
|
|
<style name="Theme.Tachiyomi.MidnightDusk">
|
|
|
|
<!-- Theme Colors -->
|
|
|
|
<item name="colorPrimary">@color/accent_midnightdusk</item>
|
2021-06-12 21:45:49 +08:00
|
|
|
<item name="colorTertiary">@color/md_blue_A400</item>
|
2021-07-15 20:46:30 +08:00
|
|
|
<item name="colorControlHighlight">@color/ripple_colored_midnightdusk</item>
|
2021-06-12 21:45:49 +08:00
|
|
|
</style>
|
|
|
|
|
2021-07-15 20:46:30 +08:00
|
|
|
<!--== Strawberry Daiquiri Theme ==-->
|
|
|
|
<style name="Theme.Tachiyomi.StrawberryDaiquiri">
|
|
|
|
<!-- Theme Colors -->
|
|
|
|
<item name="colorPrimary">@color/accent_strawberry</item>
|
2021-05-27 06:11:14 +08:00
|
|
|
<item name="colorTertiary">@color/md_blue_A400</item>
|
2021-07-15 20:46:30 +08:00
|
|
|
<item name="colorControlHighlight">@color/ripple_colored_strawberry</item>
|
2021-05-25 20:26:17 +08:00
|
|
|
</style>
|
|
|
|
|
2021-07-15 20:46:30 +08:00
|
|
|
<!--== Tako Theme ==-->
|
|
|
|
<style name="Theme.Tachiyomi.Tako">
|
|
|
|
<!-- Theme Colors -->
|
|
|
|
<item name="colorPrimary">@color/accent_tako</item>
|
|
|
|
<item name="colorOnPrimary">@color/color_on_primary_tako</item>
|
|
|
|
<item name="colorTertiary">@color/tertiary_tako</item>
|
|
|
|
<item name="colorOnTertiary">@color/color_on_tertiary_tako</item>
|
|
|
|
<item name="colorControlHighlight">@color/ripple_colored_tako</item>
|
|
|
|
<item name="colorSurface">@color/surface_tako</item>
|
|
|
|
<item name="android:colorBackground">@color/background_tako</item>
|
|
|
|
|
|
|
|
<!-- Custom Attributes-->
|
|
|
|
<item name="colorFilterActive">@color/filter_tako</item>
|
|
|
|
</style>
|
|
|
|
|
2021-08-16 22:15:28 +08:00
|
|
|
<!--== Teal & Turquoise Theme ==-->
|
|
|
|
<style name="Theme.Tachiyomi.TealTurquoise">
|
|
|
|
<!-- Theme Colors -->
|
|
|
|
<item name="colorPrimary">@color/accent_tealturquoise</item>
|
|
|
|
<item name="colorOnPrimary">@color/color_on_primary_tealturquoise</item>
|
|
|
|
<item name="colorOnSecondary">@color/color_on_primary_tealturquoise</item>
|
|
|
|
<item name="colorTertiary">@color/tertiary_tealturquoise</item>
|
|
|
|
<item name="colorOnTertiary">@color/color_on_tertiary_tealturquoise</item>
|
|
|
|
<item name="colorControlHighlight">@color/ripple_colored_tealturquoise</item>
|
|
|
|
</style>
|
|
|
|
|
2021-07-15 20:46:30 +08:00
|
|
|
<!--== Yin & Yang Theme ==-->
|
2021-07-08 21:12:23 +08:00
|
|
|
<style name="Theme.Tachiyomi.YinYang">
|
2021-07-15 20:46:30 +08:00
|
|
|
<!-- Theme Colors -->
|
2021-07-08 21:12:23 +08:00
|
|
|
<item name="colorPrimary">@color/accent_yinyang</item>
|
2021-07-12 21:57:42 +08:00
|
|
|
<item name="colorOnPrimary">@color/color_on_secondary_yinyang</item>
|
2021-07-08 21:12:23 +08:00
|
|
|
<item name="colorOnSecondary">@color/color_on_secondary_yinyang</item>
|
|
|
|
<item name="colorTertiary">@color/color_on_secondary_yinyang</item>
|
|
|
|
<item name="colorOnTertiary">@color/accent_yinyang</item>
|
|
|
|
<item name="colorControlHighlight">@color/ripple_colored_yinyang</item>
|
2021-07-12 03:45:53 +08:00
|
|
|
|
|
|
|
<!-- Themes -->
|
|
|
|
<item name="chipTextColor">@color/color_on_secondary_yinyang</item>
|
|
|
|
<item name="chipBackgroundColor">@color/accent_yinyang</item>
|
2021-07-08 21:12:23 +08:00
|
|
|
</style>
|
|
|
|
|
2021-07-15 20:46:30 +08:00
|
|
|
<!--== Yotsuba Theme ==-->
|
|
|
|
<style name="Theme.Tachiyomi.Yotsuba">
|
|
|
|
<!-- Theme Colors -->
|
|
|
|
<item name="colorPrimary">@color/accent_yotsuba</item>
|
2021-05-27 06:11:14 +08:00
|
|
|
<item name="colorTertiary">@color/md_blue_A400</item>
|
2021-07-15 20:46:30 +08:00
|
|
|
<item name="colorControlHighlight">@color/ripple_colored_yotsuba</item>
|
2021-05-24 23:16:32 +08:00
|
|
|
</style>
|
|
|
|
|
2021-07-15 20:46:30 +08:00
|
|
|
<!--== AMOLED Mode Overlay ==-->
|
2021-07-02 20:44:04 +08:00
|
|
|
<style name="ThemeOverlay.Tachiyomi.Amoled" parent="" />
|
2021-05-24 23:16:32 +08:00
|
|
|
|
2021-07-15 20:46:30 +08:00
|
|
|
<!--== Colored Bars (toolbar-navbar-navrail) Mode Overlay ==-->
|
2021-07-02 20:44:04 +08:00
|
|
|
<style name="ThemeOverlay.Tachiyomi.ColoredBars" parent="">
|
2021-08-24 05:31:16 +08:00
|
|
|
<!-- Base background/text colors -->
|
|
|
|
<item name="background">?attr/colorPrimary</item>
|
|
|
|
|
2021-05-24 23:16:32 +08:00
|
|
|
<!-- Themes -->
|
2021-07-02 20:44:04 +08:00
|
|
|
<item name="actionBarTheme">@style/ThemeOverlay.Tachiyomi.ActionBar.Colored</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="toolbarNavigationButtonStyle">@style/Widget.Tachiyomi.Toolbar.Button.Navigation</item>
|
2021-07-02 20:44:04 +08:00
|
|
|
<item name="appBarLayoutStyle">@style/Widget.MaterialComponents.AppBarLayout.Primary</item>
|
2021-08-22 06:04:54 +08:00
|
|
|
<item name="toolbarStyle">@style/Widget.Tachiyomi.Toolbar.Colored</item>
|
2021-07-02 20:44:04 +08:00
|
|
|
<item name="tabStyle">@style/Widget.Tachiyomi.TabLayout.Colored</item>
|
|
|
|
<item name="bottomNavigationStyle">@style/Widget.Tachiyomi.BottomNavigationView.Colored</item>
|
|
|
|
<item name="navigationRailStyle">@style/Widget.Tachiyomi.NavigationRailView.Colored</item>
|
2021-05-24 23:16:32 +08:00
|
|
|
|
2021-07-02 20:44:04 +08:00
|
|
|
<!-- Status/Navigation bar -->
|
|
|
|
<item name="android:windowLightStatusBar" tools:targetApi="m">?attr/lightSystemBarsOnPrimary</item>
|
|
|
|
<item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">?attr/lightSystemBarsOnPrimary</item>
|
2021-08-22 06:04:54 +08:00
|
|
|
<item name="android:navigationBarColor">?attr/colorToolbar</item>
|
2017-05-07 18:36:25 +08:00
|
|
|
</style>
|
|
|
|
|
2016-03-12 21:22:40 +08:00
|
|
|
<!--===============-->
|
|
|
|
<!-- Launch Screen -->
|
|
|
|
<!--===============-->
|
2021-05-24 23:16:32 +08:00
|
|
|
|
2021-07-15 20:46:30 +08:00
|
|
|
<!--== Splash Theme ==-->
|
2021-07-18 00:06:15 +08:00
|
|
|
<style name="Theme.Tachiyomi.SplashScreen" parent="Theme.SplashScreen">
|
|
|
|
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_tachi_splash</item>
|
|
|
|
<item name="windowSplashScreenBackground">@color/splash</item>
|
|
|
|
<item name="postSplashScreenTheme">@style/Theme.Tachiyomi</item>
|
2021-06-20 03:45:16 +08:00
|
|
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
|
|
|
<item name="android:navigationBarColor">@android:color/transparent</item>
|
2021-07-02 20:44:04 +08:00
|
|
|
<item name="android:windowLightStatusBar">false</item>
|
|
|
|
<item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">false</item>
|
2016-03-12 21:22:40 +08:00
|
|
|
</style>
|
|
|
|
|
2018-09-01 23:12:59 +08:00
|
|
|
</resources>
|