tachiyomi/app/src/main/res/values/themes.xml

180 lines
9.3 KiB
XML
Raw Normal View History

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 -->
<!--============-->
<!--== Theme base ==-->
<style name="Base.Theme.Tachiyomi" parent="Theme.MaterialComponents.DayNight.NoActionBar">
2021-07-05 05:51:15 +08:00
<!-- Disallow "Force dark theme" -->
<item name="android:forceDarkAllowed" tools:targetApi="Q">false</item>
2020-03-12 07:08:57 +08:00
<!-- Theme colors -->
<item name="colorPrimary">@color/accent_default</item>
<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>
<item name="colorTertiary">@color/green</item>
<item name="colorOnTertiary">@color/md_white_1000</item>
<item name="colorToolbar">?attr/colorSurface</item>
<item name="colorOnToolbar">?attr/colorOnSurface</item>
<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
<!-- Ripples -->
<item name="colorControlHighlight">@color/ripple_colored_default</item>
<item name="rippleColorToolbar">?attr/colorControlHighlight</item>
<!-- Handles RTL text -->
<item name="android:textAlignment">gravity</item>
<item name="android:textDirection">locale</item>
2016-03-12 21:22:40 +08:00
<!-- Themes -->
<item name="android:windowLightStatusBar">@bool/lightStatusBar</item>
<item name="android:statusBarColor">?attr/colorSurface</item>
<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>
<item name="android:enforceNavigationBarContrast" tools:targetApi="Q">false</item>
<item name="android:enforceStatusBarContrast" tools:targetApi="Q">false</item>
<item name="android:itemTextAppearance">@style/TextAppearance.Widget.Menu</item>
2021-07-05 05:51:15 +08:00
<item name="textAppearanceButton">@style/TextAppearance.Widget.Button</item>
<item name="android:backgroundDimAmount">0.32</item>
2016-03-12 21:22:40 +08:00
<item name="windowActionModeOverlay">true</item>
<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>
<item name="actionBarTheme">@style/ThemeOverlay.Tachiyomi.ActionBar</item>
<item name="toolbarNavigationButtonStyle">@style/Widget.Tachiyomi.Toolbar.Button.Navigation</item>
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
<item name="bottomSheetDialogTheme">@style/ThemeOverlay.Tachiyomi.BottomSheetDialog</item>
<item name="chipStyle">@style/Widget.Tachiyomi.Chip.Action</item>
<item name="chipTextColor">?android:attr/textColorPrimary</item>
<item name="chipBackgroundColor">?attr/colorControlHighlight</item>
<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>
<item name="bottomNavigationStyle">@style/Widget.Tachiyomi.BottomNavigationView</item>
<item name="navigationRailStyle">@style/Widget.Tachiyomi.NavigationRailView</item>
<item name="elevationOverlayEnabled">false</item>
<item name="lightSystemBarsOnPrimary">false</item>
2020-04-21 05:59:19 +08:00
<!-- Material Dialogs -->
<item name="md_background_color">?attr/colorSurface</item>
<item name="md_color_title">?attr/colorOnSurface</item>
<item name="md_color_content">?attr/colorOnSurface</item>
<item name="md_color_button_text">?attr/colorPrimary</item>
<item name="md_button_casing">literal</item>
2021-03-14 06:18:22 +08:00
<item name="md_corner_radius">@dimen/dialog_radius</item>
2020-04-21 05:59:19 +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>
2016-03-12 21:22:40 +08:00
</style>
<style name="Theme.Tachiyomi" parent="Base.Theme.Tachiyomi" />
2020-03-15 01:18:34 +08:00
2021-07-05 05:51:15 +08:00
<style name="Theme.Tachiyomi.Blue">
<!-- Theme colors -->
2021-07-05 05:51:15 +08:00
<item name="colorPrimary">@color/accent_blue</item>
<item name="colorControlHighlight">@color/ripple_colored_blue</item>
2016-03-12 21:22:40 +08:00
</style>
<!--== Strawberry Daiquiri theme ==-->
<style name="Theme.Tachiyomi.StrawberryDaiquiri">
<!-- Theme colors -->
<item name="colorPrimary">@color/accent_strawberry</item>
<item name="colorTertiary">@color/md_blue_A400</item>
<item name="colorControlHighlight">@color/ripple_colored_strawberry</item>
</style>
2021-06-12 21:45:49 +08:00
<!--== Yotsuba theme ==-->
<style name="Theme.Tachiyomi.Yotsuba">
2021-06-12 21:45:49 +08:00
<!-- Theme colors -->
<item name="colorPrimary">@color/accent_yotsuba</item>
2021-06-12 21:45:49 +08:00
<item name="colorTertiary">@color/md_blue_A400</item>
<item name="colorControlHighlight">@color/ripple_colored_yotsuba</item>
2021-06-12 21:45:49 +08:00
</style>
<!--== 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>
<item name="colorTertiary">@color/md_blue_A400</item>
<item name="colorControlHighlight">@color/ripple_colored_greenapple</item>
<item name="lightSystemBarsOnPrimary">true</item>
</style>
<!--== Yin Yang theme ==-->
<style name="Theme.Tachiyomi.YinYang">
<!-- Theme colors -->
<item name="colorPrimary">@color/accent_yinyang</item>
<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>
<!-- Themes -->
<item name="chipTextColor">@color/color_on_secondary_yinyang</item>
<item name="chipBackgroundColor">@color/accent_yinyang</item>
</style>
<!--== Midnight Dusk theme ==-->
<style name="Theme.Tachiyomi.MidnightDusk">
<!-- Theme colors -->
<item name="colorPrimary">@color/accent_midnightdusk</item>
<item name="colorTertiary">@color/md_blue_A400</item>
<item name="colorControlHighlight">@color/ripple_colored_midnightdusk</item>
</style>
<!--== AMOLED theme overlay ==-->
<style name="ThemeOverlay.Tachiyomi.Amoled" parent="" />
<!--== Colored bars (toolbar-navbar-navrail) theme overlay ==-->
<style name="ThemeOverlay.Tachiyomi.ColoredBars" parent="">
<item name="colorToolbar">?attr/colorPrimary</item>
<item name="colorOnToolbar">?attr/colorOnPrimary</item>
<!-- Base background/text colors -->
<item name="background">?attr/colorPrimary</item>
2020-03-12 07:08:57 +08:00
<!-- Themes -->
<item name="actionBarTheme">@style/ThemeOverlay.Tachiyomi.ActionBar.Colored</item>
<item name="actionModeStyle">@style/Widget.Tachiyomi.ActionMode</item>
<item name="toolbarNavigationButtonStyle">@style/Widget.Tachiyomi.Toolbar.Button.Navigation</item>
<item name="appBarLayoutStyle">@style/Widget.MaterialComponents.AppBarLayout.Primary</item>
<item name="toolbarStyle">@style/Widget.Tachiyomi.Toolbar.Primary</item>
<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>
<!-- Status/Navigation bar -->
<item name="android:windowLightStatusBar" tools:targetApi="m">?attr/lightSystemBarsOnPrimary</item>
<item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">?attr/lightSystemBarsOnPrimary</item>
<item name="android:statusBarColor">?attr/colorPrimary</item>
<item name="android:navigationBarColor">?attr/colorPrimary</item>
</style>
2016-03-12 21:22:40 +08:00
<!--===============-->
<!-- Launch Screen -->
<!--===============-->
<!--== Splash theme ==-->
<style name="Theme.Splash" parent="Theme.Tachiyomi">
2020-01-09 11:38:19 +08:00
<item name="android:windowBackground">@drawable/splash_background</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<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>
</resources>