mirror of
https://github.com/mihonapp/mihon.git
synced 2024-10-31 21:20:59 -04:00
192 lines
8.8 KiB
XML
192 lines
8.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources>
|
|
|
|
<!--============-->
|
|
<!-- Base Theme -->
|
|
<!--============-->
|
|
<style name="Theme"/>
|
|
|
|
<!--==============-->
|
|
<!-- Light Themes -->
|
|
<!--=======-======-->
|
|
<style name="Theme.Base" parent="Theme.MaterialComponents.Light.NoActionBar">
|
|
<!-- AppBar -->
|
|
<item name="windowActionBar">false</item>
|
|
<item name="windowNoTitle">true</item>
|
|
|
|
<!-- Theme colors -->
|
|
<item name="colorPrimary">@color/colorPrimary</item>
|
|
<item name="colorOnPrimary">@color/textColorPrimaryDark</item>
|
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
|
<item name="colorSecondary">@color/colorAccentLight</item>
|
|
<item name="colorOnSecondary">@color/textColorPrimaryDark</item>
|
|
<item name="colorSurface">@color/dialogLight</item>
|
|
<item name="colorOnSurface">@color/textColorPrimaryLight</item>
|
|
<item name="colorAccent">@color/colorAccentLight</item>
|
|
|
|
<!-- Base background/text colors -->
|
|
<item name="android:colorBackground">@color/backgroundLight</item>
|
|
<item name="android:textColorPrimary">@color/textColorPrimaryLight</item>
|
|
<item name="android:textColorSecondary">@color/textColorSecondaryLight</item>
|
|
<item name="android:textColorHint">@color/textColorHintLight</item>
|
|
<item name="android:textColorPrimaryInverse">@color/textColorPrimaryDark</item>
|
|
<item name="android:textColorSecondaryInverse">@color/textColorSecondaryDark</item>
|
|
<item name="android:textColorHintInverse">@color/textColorHintDark</item>
|
|
<item name="rippleColor">@color/rippleColorLight</item>
|
|
|
|
<item name="android:divider">@color/dividerLight</item>
|
|
<item name="android:listDivider">@drawable/line_divider</item>
|
|
|
|
<!-- Handles RTL text -->
|
|
<item name="android:textAlignment">gravity</item>
|
|
<item name="android:textDirection">locale</item>
|
|
|
|
<!-- Themes -->
|
|
<item name="android:forceDarkAllowed">false</item>
|
|
<item name="windowActionModeOverlay">true</item>
|
|
<item name="actionBarTheme">@style/Theme.ActionBar.Light</item>
|
|
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
|
|
<item name="dialogTheme">@style/Theme.AlertDialog.Light</item>
|
|
<item name="alertDialogTheme">@style/Theme.AlertDialog.Dark</item>
|
|
<item name="textAppearanceButton">@style/TextAppearance.Widget.Button</item>
|
|
|
|
<!-- Custom Attributes-->
|
|
<item name="selectable_library_drawable">@drawable/library_item_selector_light</item>
|
|
</style>
|
|
|
|
<!--===========-->
|
|
<!-- Main Theme-->
|
|
<!--===========-->
|
|
<style name="Theme.Tachiyomi" parent="Theme.Base">
|
|
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
|
<item name="android:navigationBarColor">@color/colorPrimaryDark</item>
|
|
</style>
|
|
|
|
<!--=============-->
|
|
<!-- Dark Themes -->
|
|
<!--=============-->
|
|
<style name="Theme.Base.Dark" parent="Theme.MaterialComponents.NoActionBar">
|
|
<!-- Theme colors -->
|
|
<item name="colorPrimary">@color/colorDarkPrimary</item>
|
|
<item name="colorOnPrimary">@color/textColorPrimaryDark</item>
|
|
<item name="colorPrimaryDark">@color/colorDarkPrimaryDark</item>
|
|
<item name="colorSecondary">@color/colorAccentDark</item>
|
|
<item name="colorOnSecondary">@color/textColorPrimaryDark</item>
|
|
<item name="colorSurface">@color/dialogDark</item>
|
|
<item name="colorOnSurface">@color/textColorPrimaryDark</item>
|
|
<item name="colorAccent">@color/colorAccentDark</item>
|
|
|
|
<!-- Base background/text colors -->
|
|
<item name="android:colorBackground">@color/backgroundDark</item>
|
|
<item name="android:textColorPrimary">@color/textColorPrimaryDark</item>
|
|
<item name="android:textColorSecondary">@color/textColorSecondaryDark</item>
|
|
<item name="android:textColorHint">@color/textColorHintDark</item>
|
|
<item name="android:textColorPrimaryInverse">@color/textColorPrimaryLight</item>
|
|
<item name="android:textColorSecondaryInverse">@color/textColorSecondaryLight</item>
|
|
<item name="android:textColorHintInverse">@color/textColorHintLight</item>
|
|
<item name="rippleColor">@color/rippleColorDark</item>
|
|
|
|
<item name="android:divider">@color/dividerDark</item>
|
|
|
|
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
|
<item name="android:navigationBarColor">@color/colorDarkPrimaryDark</item>
|
|
|
|
<!-- Themes -->
|
|
<item name="windowActionModeOverlay">true</item>
|
|
<item name="actionBarTheme">@style/ThemeOverlay.MaterialComponents.Dark.ActionBar</item>
|
|
<item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents</item>
|
|
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
|
|
<item name="dialogTheme">@style/Theme.AlertDialog.Dark</item>
|
|
<item name="alertDialogTheme">@style/Theme.AlertDialog.Dark</item>
|
|
<item name="textAppearanceButton">@style/TextAppearance.Widget.Button</item>
|
|
|
|
<item name="md_background_color">?attr/colorSurface</item>
|
|
|
|
<!-- Custom Attributes-->
|
|
<item name="selectable_library_drawable">@drawable/library_item_selector_dark</item>
|
|
</style>
|
|
|
|
<style name="Theme.Tachiyomi.Dark" parent="Theme.Base.Dark">
|
|
<!-- Attributes specific for SDK 16 to SDK 20 -->
|
|
</style>
|
|
|
|
<style name="Theme.Tachiyomi.DarkBlue" parent="Theme.Base.Dark">
|
|
<item name="colorPrimary">@color/colorPrimary</item>
|
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
|
|
|
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
|
<item name="android:navigationBarColor">@color/colorDarkPrimaryDark</item>
|
|
</style>
|
|
|
|
<!--==============-->
|
|
<!-- Amoled Theme -->
|
|
<!--==============-->
|
|
<style name="Theme.Base.Amoled" parent="Theme.Base.Dark">
|
|
<item name="colorPrimary">@color/colorAmoledPrimary</item>
|
|
<item name="colorPrimaryDark">@color/colorAmoledPrimary</item>
|
|
<item name="colorSurface">@color/colorAmoledPrimary</item>
|
|
|
|
<item name="android:colorBackground">@color/colorAmoledPrimary</item>
|
|
|
|
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
|
<item name="android:navigationBarColor">@android:color/transparent</item>
|
|
|
|
<!-- Themes -->
|
|
<item name="md_background_color">@color/colorAmoledPrimary</item>
|
|
|
|
<!-- Custom Attributes-->
|
|
<item name="selectable_library_drawable">@drawable/library_item_selector_amoled</item>
|
|
</style>
|
|
|
|
<style name="Theme.Tachiyomi.Amoled" parent="Theme.Base.Amoled">
|
|
<!-- Attributes specific for SDK 16 to SDK 20 -->
|
|
</style>
|
|
|
|
<!--==============-->
|
|
<!-- Reader Theme -->
|
|
<!--==============-->
|
|
<style name="Theme.Base.Reader.Dark" parent="Theme.Base.Dark">
|
|
<item name="colorPrimary">@color/readerColorDarkPrimary</item>
|
|
<item name="colorPrimaryDark">@color/readerColorDarkPrimary</item>
|
|
<item name="colorSurface">@android:color/black</item>
|
|
|
|
<item name="android:colorBackground">@android:color/black</item>
|
|
<item name="android:statusBarColor">?attr/colorPrimaryDark</item>
|
|
<item name="android:navigationBarColor">?attr/colorPrimaryDark</item>
|
|
</style>
|
|
|
|
<style name="Theme.Base.Reader.Light" parent="Theme.Base">
|
|
<item name="colorPrimary">@color/readerColorDarkPrimary</item>
|
|
<item name="colorPrimaryDark">@color/readerColorDarkPrimary</item>
|
|
<item name="colorSurface">@android:color/white</item>
|
|
|
|
<item name="android:colorBackground">@android:color/white</item>
|
|
<item name="android:statusBarColor">?attr/colorPrimaryDark</item>
|
|
<item name="android:navigationBarColor">?attr/colorPrimaryDark</item>
|
|
</style>
|
|
|
|
<style name="Theme.Reader" parent="Theme.Base.Reader.Dark">
|
|
<!-- Attributes specific for SDK 16 to SDK 20 -->
|
|
</style>
|
|
|
|
<style name="Theme.Reader.Light" parent="Theme.Base.Reader.Light">
|
|
<!-- Attributes specific for SDK 16 to SDK 20 -->
|
|
</style>
|
|
|
|
|
|
<!--===============-->
|
|
<!-- Launch Screen -->
|
|
<!--===============-->
|
|
<style name="Theme.Splash" parent="Theme.Tachiyomi">
|
|
<item name="colorBackgroundSplash">@color/colorPrimary</item>
|
|
|
|
<item name="android:windowBackground">@drawable/splash_background</item>
|
|
<item name="android:statusBarColor">?attr/colorBackgroundSplash</item>
|
|
<item name="android:navigationBarColor">?attr/colorBackgroundSplash</item>
|
|
</style>
|
|
|
|
</resources>
|