|
@@ -4,16 +4,16 @@
|
|
|
<!--============-->
|
|
|
<!-- Base Theme -->
|
|
|
<!--============-->
|
|
|
- <style name="Theme"/>
|
|
|
|
|
|
- <!--==============-->
|
|
|
- <!-- Light Themes -->
|
|
|
- <!--=======-======-->
|
|
|
+ <!--== Theme ==-->
|
|
|
+ <style name="Theme" />
|
|
|
+
|
|
|
+ <!--== Theme base ==-->
|
|
|
<style name="Theme.Base" parent="Theme.MaterialComponents.Light.NoActionBar">
|
|
|
<!-- AppBar -->
|
|
|
<item name="windowActionBar">false</item>
|
|
|
<item name="windowNoTitle">true</item>
|
|
|
-
|
|
|
+ <!-- Disallow 'Force dark theme' -->
|
|
|
<item name="android:forceDarkAllowed" tools:targetApi="Q">false</item>
|
|
|
|
|
|
<!-- Theme colors -->
|
|
@@ -60,7 +60,7 @@
|
|
|
<item name="actionModeStyle">@style/Theme.ActionMode</item>
|
|
|
<item name="actionModeCloseButtonStyle">@style/Theme.ActionMode.CloseButton</item>
|
|
|
<item name="actionModeCloseDrawable">@drawable/ic_close_24dp</item>
|
|
|
- <item name="actionBarTheme">@style/Theme.Toolbar.Custom</item>
|
|
|
+ <item name="actionBarTheme">@style/Theme.Toolbar.Custom.Light</item>
|
|
|
<item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents</item>
|
|
|
<item name="toolbarNavigationButtonStyle">@style/Theme.Toolbar.Navigation</item>
|
|
|
<item name="preferenceTheme">@style/PreferenceThemeCustom</item>
|
|
@@ -93,24 +93,41 @@
|
|
|
<item name="colorFilterActive">@color/filterColorLight</item>
|
|
|
</style>
|
|
|
|
|
|
- <!--===========-->
|
|
|
- <!-- Main Theme-->
|
|
|
- <!--===========-->
|
|
|
+ <!--==============-->
|
|
|
+ <!-- Light Themes -->
|
|
|
+ <!--==============-->
|
|
|
+
|
|
|
+ <!--== Light base ==-->
|
|
|
<style name="Base.Theme.Tachiyomi.Light" parent="Theme.Base">
|
|
|
+ <!-- Base background/text colors -->
|
|
|
<item name="android:statusBarColor">?attr/colorPrimary</item>
|
|
|
<item name="android:windowLightStatusBar">true</item>
|
|
|
+ <item name="background">@color/dialogLight</item>
|
|
|
</style>
|
|
|
+
|
|
|
+ <!--== Light theme ==-->
|
|
|
<style name="Theme.Tachiyomi.Light" parent="Base.Theme.Tachiyomi.Light" />
|
|
|
|
|
|
+ <!--== Light Blue theme ==-->
|
|
|
<style name="Theme.Tachiyomi.Light.Blue">
|
|
|
+ <!-- Theme colors -->
|
|
|
<item name="colorPrimary">@color/colorPrimary</item>
|
|
|
<item name="colorOnPrimary">@color/textColorPrimaryDark</item>
|
|
|
<item name="colorAccentOnPrimary">@color/textColorPrimaryDark</item>
|
|
|
<item name="colorPrimaryVariant">@color/colorPrimaryDark</item>
|
|
|
<item name="colorFilterActive">@color/filterColorDark</item>
|
|
|
+
|
|
|
+ <!-- Base background/text colors -->
|
|
|
+ <item name="background">@color/colorPrimary</item>
|
|
|
+
|
|
|
+ <!-- Ripples -->
|
|
|
<item name="rippleSecondaryColor">@color/md_white_1000_6</item>
|
|
|
<item name="rippleToolbarColor">@color/md_white_1000_12</item>
|
|
|
- <item name="actionBarTheme">@style/Theme.Toolbar.Light</item>
|
|
|
+
|
|
|
+ <!-- Themes -->
|
|
|
+ <item name="actionBarTheme">@style/Theme.Toolbar.Custom.PopupTheme</item>
|
|
|
+
|
|
|
+ <!-- Status/Navigation bar -->
|
|
|
<item name="android:windowLightStatusBar" tools:targetApi="m">false</item>
|
|
|
<item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">false</item>
|
|
|
</style>
|
|
@@ -118,6 +135,8 @@
|
|
|
<!--=============-->
|
|
|
<!-- Dark Themes -->
|
|
|
<!--=============-->
|
|
|
+
|
|
|
+ <!--== Dark base ==-->
|
|
|
<style name="Theme.Base.Dark" parent="Theme.MaterialComponents.NoActionBar">
|
|
|
<!-- Theme colors -->
|
|
|
<item name="colorPrimary">@color/colorDarkPrimary</item>
|
|
@@ -144,6 +163,7 @@
|
|
|
<item name="android:textColorSecondaryInverse">@color/textColorSecondaryLight</item>
|
|
|
<item name="android:textColorHintInverse">@color/textColorHintLight</item>
|
|
|
<item name="android:colorEdgeEffect">?attr/colorAccent</item>
|
|
|
+ <item name="background">@color/colorDarkPrimaryDark</item>
|
|
|
|
|
|
<item name="android:divider">@color/dividerDark</item>
|
|
|
<item name="android:listDivider">@drawable/line_divider</item>
|
|
@@ -196,81 +216,219 @@
|
|
|
<item name="colorFilterActive">@color/filterColorDark</item>
|
|
|
</style>
|
|
|
|
|
|
+ <!--== Dark theme ==-->
|
|
|
<style name="Theme.Tachiyomi.Dark" parent="Theme.Base.Dark" />
|
|
|
|
|
|
+ <!--== Dark Blue theme ==-->
|
|
|
<style name="Theme.Tachiyomi.Dark.Blue">
|
|
|
+ <!-- Theme colors -->
|
|
|
<item name="colorPrimary">@color/colorPrimary</item>
|
|
|
<item name="colorAccentOnPrimary">@color/textColorPrimaryDark</item>
|
|
|
<item name="colorPrimaryVariant">@color/colorPrimary</item>
|
|
|
+
|
|
|
+ <!-- Base background/text colors -->
|
|
|
+ <item name="background">@color/colorPrimary</item>
|
|
|
+
|
|
|
+ <!-- Ripples -->
|
|
|
<item name="rippleSecondaryColor">@color/md_black_1000_6</item>
|
|
|
<item name="rippleToolbarColor">@color/md_black_1000_12</item>
|
|
|
</style>
|
|
|
|
|
|
- <style name="Theme.Tachiyomi.Dark.Amoled">
|
|
|
+ <!--== Midnight Dusk theme ==-->
|
|
|
+ <style name="Theme.Tachiyomi.Dark.MidnightDusk" parent="Theme.Base.Dark">
|
|
|
+ <!-- Theme colors -->
|
|
|
+ <item name="colorPrimary">@color/dialogDusk</item>
|
|
|
+ <item name="colorOnPrimary">@color/textColorPrimaryDusk</item>
|
|
|
+ <item name="colorAccentOnPrimary">@color/colorAccentDusk</item>
|
|
|
+ <item name="colorPrimaryVariant">@color/dialogDusk</item>
|
|
|
+ <item name="colorSecondary">@color/colorAccentDusk</item>
|
|
|
+ <item name="colorOnSecondary">@color/textColorPrimaryDusk</item>
|
|
|
+ <item name="colorSurface">@color/dialogDusk</item>
|
|
|
+ <item name="colorOnSurface">@color/textColorPrimaryDusk</item>
|
|
|
+ <item name="colorOnBackground">@color/textColorPrimaryDusk</item>
|
|
|
+ <item name="colorAccent">@color/colorAccentDusk</item>
|
|
|
+
|
|
|
+ <!-- Base background/text colors -->
|
|
|
+ <item name="android:colorBackground">@color/backgroundDusk</item>
|
|
|
+ <item name="background">@color/backgroundDusk</item>
|
|
|
+
|
|
|
+ <!-- Ripples -->
|
|
|
+ <item name="rippleSecondaryColor">@color/rippleSecondaryColorDusk</item>
|
|
|
+
|
|
|
+ <!-- Custom Attributes -->
|
|
|
+ <item name="colorLibrarySelection">@color/selectorColorDark</item>
|
|
|
+ <item name="colorLibrarySelectionActive">@color/selectorColorDark</item>
|
|
|
+ </style>
|
|
|
+
|
|
|
+ <!--===============-->
|
|
|
+ <!-- AMOLED Themes -->
|
|
|
+ <!--===============-->
|
|
|
+
|
|
|
+ <!--== AMOLED base ==-->
|
|
|
+ <style name="Theme.Base.Amoled" parent="Theme.MaterialComponents.NoActionBar">
|
|
|
+ <!-- Theme colors -->
|
|
|
<item name="colorPrimary">@color/colorAmoledPrimary</item>
|
|
|
+ <item name="colorOnPrimary">@color/textColorPrimaryAmoled</item>
|
|
|
+ <item name="colorAccentOnPrimary">@color/colorAccentAmoled</item>
|
|
|
<item name="colorPrimaryVariant">@color/colorAmoledPrimary</item>
|
|
|
- <item name="colorSurface">@color/colorAmoledPrimary</item>
|
|
|
+ <item name="colorSecondary">@color/colorAccentAmoled</item>
|
|
|
+ <item name="colorOnSecondary">@color/textColorPrimaryAmoled</item>
|
|
|
+ <item name="colorSurface">@color/dialogAmoled</item>
|
|
|
+ <item name="colorOnSurface">@color/textColorPrimaryAmoled</item>
|
|
|
+ <item name="colorOnBackground">@color/textColorPrimaryAmoled</item>
|
|
|
+ <item name="colorAccent">@color/colorAccentAmoled</item>
|
|
|
+
|
|
|
+ <!-- Handles RTL text -->
|
|
|
+ <item name="android:textAlignment">gravity</item>
|
|
|
+ <item name="android:textDirection">locale</item>
|
|
|
|
|
|
+ <!-- Base background/text colors -->
|
|
|
<item name="android:colorBackground">@color/colorAmoledPrimary</item>
|
|
|
+ <item name="android:textColorPrimary">@color/textColorPrimaryAmoled</item>
|
|
|
+ <item name="android:textColorSecondary">@color/textColorSecondaryAmoled</item>
|
|
|
+ <item name="android:textColorHint">@color/textColorHintAmoled</item>
|
|
|
+ <item name="android:textColorPrimaryInverse">@color/textColorPrimaryLight</item>
|
|
|
+ <item name="android:textColorSecondaryInverse">@color/textColorSecondaryLight</item>
|
|
|
+ <item name="android:textColorHintInverse">@color/textColorHintLight</item>
|
|
|
+ <item name="android:colorEdgeEffect">?attr/colorAccent</item>
|
|
|
+ <item name="background">@color/colorAmoledPrimary</item>
|
|
|
+
|
|
|
+ <item name="android:divider">@color/dividerAmoled</item>
|
|
|
+ <item name="android:listDivider">@drawable/line_divider</item>
|
|
|
+
|
|
|
+ <!-- Ripples -->
|
|
|
+ <item name="rippleColor">@color/rippleColorAmoled</item>
|
|
|
+ <item name="rippleSecondaryColor">@color/rippleSecondaryColorAmoled</item>
|
|
|
+ <item name="rippleToolbarColor">@color/rippleToolbarColorAmoled</item>
|
|
|
+
|
|
|
+ <!-- Themes -->
|
|
|
+ <item name="android:statusBarColor">?attr/colorPrimary</item>
|
|
|
+ <item name="android:navigationBarDividerColor" tools:targetApi="o_mr1">@null</item>
|
|
|
+ <item name="android:enforceNavigationBarContrast" tools:targetApi="Q">false</item>
|
|
|
+ <item name="windowActionModeOverlay">true</item>
|
|
|
+ <item name="elevationOverlayEnabled">false</item>
|
|
|
+ <item name="actionModeStyle">@style/Theme.ActionMode</item>
|
|
|
+ <item name="actionModeCloseButtonStyle">@style/Theme.ActionMode.CloseButton</item>
|
|
|
+ <item name="actionModeCloseDrawable">@drawable/ic_close_24dp</item>
|
|
|
+ <item name="actionBarTheme">@style/Theme.Toolbar.Custom.Amoled</item>
|
|
|
+ <item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents</item>
|
|
|
+ <item name="toolbarNavigationButtonStyle">@style/Theme.Toolbar.Navigation</item>
|
|
|
+ <item name="preferenceTheme">@style/PreferenceThemeCustom</item>
|
|
|
+ <item name="dialogTheme">@style/Theme.AlertDialog.Amoled</item>
|
|
|
+ <item name="materialAlertDialogTheme">@style/Theme.AlertDialog.Amoled</item>
|
|
|
+ <item name="bottomSheetDialogTheme">@style/Theme.BottomSheet</item>
|
|
|
+ <item name="chipStyle">@style/Theme.Widget.Chip</item>
|
|
|
+ <item name="buttonStyle">@style/Theme.Widget.Button</item>
|
|
|
+ <item name="snackbarStyle">@style/Theme.Widget.Snackbar</item>
|
|
|
+ <item name="snackbarButtonStyle">@style/Theme.Widget.Button</item>
|
|
|
+ <item name="snackbarTextViewStyle">@style/Theme.Widget.Snackbar.TextView</item>
|
|
|
+ <item name="textAppearanceButton">@style/TextAppearance.Widget.Button</item>
|
|
|
+ <item name="textInputStyle">@style/Theme.Widget.TextInputLayout.OutlinedBox</item>
|
|
|
+ <item name="android:itemTextAppearance">@style/TextAppearance.Widget.Menu</item>
|
|
|
+ <item name="swipeRefreshLayoutProgressSpinnerBackgroundColor">?attr/colorAccent</item>
|
|
|
+ <item name="circularProgressIndicatorStyle">@style/Theme.Widget.CircularProgressIndicator</item>
|
|
|
+ <item name="linearProgressIndicatorStyle">@style/Theme.Widget.LinearProgressIndicator</item>
|
|
|
+
|
|
|
+ <!-- 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/colorAccent</item>
|
|
|
+ <item name="md_button_casing">literal</item>
|
|
|
+ <item name="md_corner_radius">@dimen/dialog_radius</item>
|
|
|
+
|
|
|
+ <!-- Custom Attributes-->
|
|
|
+ <item name="colorLibrarySelection">@color/selectorColorAmoled</item>
|
|
|
+ <item name="colorLibrarySelectionActive">@color/selectorColorAmoled</item>
|
|
|
+ <item name="colorFilterActive">@color/filterColorAmoled</item>
|
|
|
|
|
|
<!-- Some ROMs make black navbars white (e.g. OxygenOS) -->
|
|
|
<item name="android:navigationBarColor">#000001</item>
|
|
|
+ </style>
|
|
|
|
|
|
- <!-- Custom Attributes-->
|
|
|
- <item name="colorLibrarySelection">@color/selectorColorDark</item>
|
|
|
- <item name="colorLibrarySelectionActive">@color/selectorColorDark</item>
|
|
|
+ <!--== AMOLED theme ==-->
|
|
|
+ <style name="Theme.Tachiyomi.Amoled" parent="Theme.Base.Amoled" />
|
|
|
+
|
|
|
+ <!--== Hot Pink theme ==-->
|
|
|
+ <style name="Theme.Tachiyomi.Amoled.HotPink">
|
|
|
+ <!-- Theme colors -->
|
|
|
+ <item name="colorOnPrimary">@color/textColorPrimaryPink</item>
|
|
|
+ <item name="colorAccentOnPrimary">@color/colorAccentPink</item>
|
|
|
+ <item name="colorSecondary">@color/colorAccentPink</item>
|
|
|
+ <item name="colorOnSecondary">@color/textColorPrimaryPink</item>
|
|
|
+ <item name="colorOnSurface">@color/textColorPrimaryPink</item>
|
|
|
+ <item name="colorOnBackground">@color/textColorPrimaryPink</item>
|
|
|
+ <item name="colorAccent">@color/colorAccentPink</item>
|
|
|
+
|
|
|
+ <!-- Ripples -->
|
|
|
+ <item name="rippleSecondaryColor">@color/rippleSecondaryColorPink</item>
|
|
|
</style>
|
|
|
|
|
|
- <!--==============-->
|
|
|
- <!-- Reader Theme -->
|
|
|
- <!--==============-->
|
|
|
- <style name="Theme.Base.Reader.Dark" parent="Theme.Base.Dark">
|
|
|
+ <!--===============-->
|
|
|
+ <!-- Reader Themes -->
|
|
|
+ <!--===============-->
|
|
|
+
|
|
|
+ <!--== Light Reader base ==-->
|
|
|
+ <style name="Theme.Base.Reader.Light" parent="Theme.Base">
|
|
|
+ <!-- Theme colors -->
|
|
|
<item name="colorPrimary">@color/readerColorDarkPrimary</item>
|
|
|
<item name="colorOnPrimary">@color/textColorPrimaryDark</item>
|
|
|
<item name="colorPrimaryVariant">@color/readerColorDarkPrimary</item>
|
|
|
- <item name="colorSurface">@color/md_black_1000</item>
|
|
|
+ <item name="colorSurface">@color/md_white_1000</item>
|
|
|
|
|
|
- <item name="android:colorBackground">@color/md_black_1000</item>
|
|
|
+ <!-- Base background/text colors -->
|
|
|
+ <item name="android:colorBackground">@color/md_white_1000</item>
|
|
|
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
|
|
|
<item name="android:navigationBarColor">?attr/colorPrimaryVariant</item>
|
|
|
|
|
|
+ <!-- Themes -->
|
|
|
<item name="actionBarTheme">@style/Theme.Toolbar.Custom.Dark</item>
|
|
|
<item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents</item>
|
|
|
<item name="switchStyle">@style/Theme.Widget.BasicSwitch</item>
|
|
|
<item name="bottomSheetDialogTheme">@style/Theme.BottomSheet</item>
|
|
|
</style>
|
|
|
|
|
|
- <style name="Theme.Base.Reader.Light" parent="Theme.Base">
|
|
|
+ <!--== Light Reader ==-->
|
|
|
+ <style name="Theme.Reader.Light" parent="Theme.Base.Reader.Light" />
|
|
|
+
|
|
|
+ <!--== Dark Reader base ==-->
|
|
|
+ <style name="Theme.Base.Reader.Dark" parent="Theme.Base.Dark">
|
|
|
+ <!-- Theme colors -->
|
|
|
<item name="colorPrimary">@color/readerColorDarkPrimary</item>
|
|
|
<item name="colorOnPrimary">@color/textColorPrimaryDark</item>
|
|
|
<item name="colorPrimaryVariant">@color/readerColorDarkPrimary</item>
|
|
|
- <item name="colorSurface">@color/md_white_1000</item>
|
|
|
+ <item name="colorSurface">@color/md_black_1000</item>
|
|
|
|
|
|
- <item name="android:colorBackground">@color/md_white_1000</item>
|
|
|
+ <!-- Base background/text colors -->
|
|
|
+ <item name="android:colorBackground">@color/md_black_1000</item>
|
|
|
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
|
|
|
<item name="android:navigationBarColor">?attr/colorPrimaryVariant</item>
|
|
|
|
|
|
+ <!-- Themes -->
|
|
|
<item name="actionBarTheme">@style/Theme.Toolbar.Custom.Dark</item>
|
|
|
<item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents</item>
|
|
|
<item name="switchStyle">@style/Theme.Widget.BasicSwitch</item>
|
|
|
<item name="bottomSheetDialogTheme">@style/Theme.BottomSheet</item>
|
|
|
</style>
|
|
|
|
|
|
+ <!--== Dark Reader ==-->
|
|
|
<style name="Theme.Reader.Dark" parent="Theme.Base.Reader.Dark" />
|
|
|
|
|
|
+ <!--== Dark Grey Reader ==-->
|
|
|
<style name="Theme.Reader.Dark.Grey" parent="Theme.Base.Reader.Dark">
|
|
|
<item name="android:colorBackground">@color/backgroundDark</item>
|
|
|
</style>
|
|
|
|
|
|
- <style name="Theme.Reader.Light" parent="Theme.Base.Reader.Light" />
|
|
|
-
|
|
|
-
|
|
|
<!--===============-->
|
|
|
<!-- Launch Screen -->
|
|
|
<!--===============-->
|
|
|
+
|
|
|
+ <!--== Splash theme ==-->
|
|
|
<style name="Theme.Splash" parent="Theme.Tachiyomi.Light.Blue">
|
|
|
+ <!-- Theme colors -->
|
|
|
<item name="colorBackgroundSplash">@color/colorPrimary</item>
|
|
|
|
|
|
+ <!-- Base background/text colors -->
|
|
|
<item name="android:windowBackground">@drawable/splash_background</item>
|
|
|
<item name="android:statusBarColor">?attr/colorBackgroundSplash</item>
|
|
|
<item name="android:navigationBarColor">?attr/colorBackgroundSplash</item>
|