mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 03:21:51 +01:00
Pure white light theme
This commit is contained in:
parent
738f776d36
commit
e41edc1fb7
@ -26,7 +26,7 @@
|
|||||||
android:roundIcon="@mipmap/ic_launcher_round"
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:largeHeap="true"
|
android:largeHeap="true"
|
||||||
android:theme="@style/Theme.Tachiyomi">
|
android:theme="@style/Theme.Tachiyomi.Light">
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.main.MainActivity"
|
android:name=".ui.main.MainActivity"
|
||||||
android:launchMode="singleTop"
|
android:launchMode="singleTop"
|
||||||
|
@ -7,6 +7,8 @@ object PreferenceKeys {
|
|||||||
|
|
||||||
const val themeMode = "pref_theme_mode_key"
|
const val themeMode = "pref_theme_mode_key"
|
||||||
|
|
||||||
|
const val themeLight = "pref_theme_light_key"
|
||||||
|
|
||||||
const val themeDark = "pref_theme_dark_key"
|
const val themeDark = "pref_theme_dark_key"
|
||||||
|
|
||||||
const val rotation = "pref_rotation_type_key"
|
const val rotation = "pref_rotation_type_key"
|
||||||
|
@ -9,6 +9,9 @@ object PreferenceValues {
|
|||||||
const val THEME_MODE_DARK = "dark"
|
const val THEME_MODE_DARK = "dark"
|
||||||
const val THEME_MODE_SYSTEM = "system"
|
const val THEME_MODE_SYSTEM = "system"
|
||||||
|
|
||||||
|
const val THEME_LIGHT_DEFAULT = "default"
|
||||||
|
const val THEME_LIGHT_BLUE = "blue"
|
||||||
|
|
||||||
const val THEME_DARK_DEFAULT = "default"
|
const val THEME_DARK_DEFAULT = "default"
|
||||||
const val THEME_DARK_BLUE = "blue"
|
const val THEME_DARK_BLUE = "blue"
|
||||||
const val THEME_DARK_AMOLED = "amoled"
|
const val THEME_DARK_AMOLED = "amoled"
|
||||||
|
@ -65,7 +65,9 @@ class PreferencesHelper(val context: Context) {
|
|||||||
|
|
||||||
fun themeMode() = rxPrefs.getString(Keys.themeMode, Values.THEME_MODE_SYSTEM)
|
fun themeMode() = rxPrefs.getString(Keys.themeMode, Values.THEME_MODE_SYSTEM)
|
||||||
|
|
||||||
fun themeDark() = prefs.getString(Keys.themeDark, Values.THEME_DARK_DEFAULT)
|
fun themeLight() = prefs.getString(Keys.themeLight, Values.THEME_DARK_DEFAULT)
|
||||||
|
|
||||||
|
fun themeDark() = prefs.getString(Keys.themeDark, Values.THEME_LIGHT_DEFAULT)
|
||||||
|
|
||||||
fun rotation() = rxPrefs.getInteger(Keys.rotation, 1)
|
fun rotation() = rxPrefs.getInteger(Keys.rotation, 1)
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package eu.kanade.tachiyomi.ui.base.activity
|
package eu.kanade.tachiyomi.ui.base.activity
|
||||||
|
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
|
import android.os.Build
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import eu.kanade.tachiyomi.R
|
import eu.kanade.tachiyomi.R
|
||||||
@ -18,11 +19,33 @@ abstract class BaseActivity : AppCompatActivity() {
|
|||||||
@Suppress("LeakingThis")
|
@Suppress("LeakingThis")
|
||||||
private val secureActivityDelegate = SecureActivityDelegate(this)
|
private val secureActivityDelegate = SecureActivityDelegate(this)
|
||||||
|
|
||||||
|
private val lightTheme: Int by lazy {
|
||||||
|
when (preferences.themeLight()) {
|
||||||
|
Values.THEME_LIGHT_BLUE -> R.style.Theme_Tachiyomi_LightBlue
|
||||||
|
else -> {
|
||||||
|
when {
|
||||||
|
// Light status + navigation bar
|
||||||
|
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1 -> {
|
||||||
|
R.style.Theme_Tachiyomi_Light_Api27
|
||||||
|
}
|
||||||
|
// Light status bar + fallback gray navigation bar
|
||||||
|
Build.VERSION.SDK_INT >= Build.VERSION_CODES.M -> {
|
||||||
|
R.style.Theme_Tachiyomi_Light_Api23
|
||||||
|
}
|
||||||
|
// Fallback gray status + navigation bar
|
||||||
|
else -> {
|
||||||
|
R.style.Theme_Tachiyomi_Light
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private val darkTheme: Int by lazy {
|
private val darkTheme: Int by lazy {
|
||||||
when (preferences.themeDark()) {
|
when (preferences.themeDark()) {
|
||||||
Values.THEME_DARK_DEFAULT -> R.style.Theme_Tachiyomi_Dark
|
Values.THEME_DARK_BLUE -> R.style.Theme_Tachiyomi_DarkBlue
|
||||||
Values.THEME_DARK_AMOLED -> R.style.Theme_Tachiyomi_Amoled
|
Values.THEME_DARK_AMOLED -> R.style.Theme_Tachiyomi_Amoled
|
||||||
else -> R.style.Theme_Tachiyomi_DarkBlue
|
else -> R.style.Theme_Tachiyomi_Dark
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,15 +56,15 @@ abstract class BaseActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
setTheme(when (preferences.themeMode().getOrDefault()) {
|
setTheme(when (preferences.themeMode().getOrDefault()) {
|
||||||
Values.THEME_MODE_DARK -> darkTheme
|
|
||||||
Values.THEME_MODE_SYSTEM -> {
|
Values.THEME_MODE_SYSTEM -> {
|
||||||
if (resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK == Configuration.UI_MODE_NIGHT_YES) {
|
if (resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK == Configuration.UI_MODE_NIGHT_YES) {
|
||||||
darkTheme
|
darkTheme
|
||||||
} else {
|
} else {
|
||||||
R.style.Theme_Tachiyomi
|
lightTheme
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else -> R.style.Theme_Tachiyomi
|
Values.THEME_MODE_DARK -> darkTheme
|
||||||
|
else -> lightTheme
|
||||||
})
|
})
|
||||||
|
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
|
@ -118,6 +118,28 @@ class SettingsGeneralController : SettingsController() {
|
|||||||
true
|
true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
listPreference {
|
||||||
|
key = Keys.themeLight
|
||||||
|
titleRes = R.string.pref_theme_light
|
||||||
|
entriesRes = arrayOf(
|
||||||
|
R.string.theme_light_default,
|
||||||
|
R.string.theme_light_blue)
|
||||||
|
entryValues = arrayOf(
|
||||||
|
Values.THEME_LIGHT_DEFAULT,
|
||||||
|
Values.THEME_LIGHT_BLUE)
|
||||||
|
defaultValue = Values.THEME_LIGHT_DEFAULT
|
||||||
|
summary = "%s"
|
||||||
|
|
||||||
|
preferences.themeMode().asObservable()
|
||||||
|
.subscribeUntilDestroy { isVisible = it != Values.THEME_MODE_DARK }
|
||||||
|
|
||||||
|
onChange {
|
||||||
|
if (preferences.themeMode().getOrDefault() == Values.THEME_MODE_LIGHT) {
|
||||||
|
activity?.recreate()
|
||||||
|
}
|
||||||
|
true
|
||||||
|
}
|
||||||
|
}
|
||||||
listPreference {
|
listPreference {
|
||||||
key = Keys.themeDark
|
key = Keys.themeDark
|
||||||
titleRes = R.string.pref_theme_dark
|
titleRes = R.string.pref_theme_dark
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
android:id="@+id/title_background"
|
android:id="@+id/title_background"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?attr/listPreferredItemHeightSmall"
|
android:layout_height="?attr/listPreferredItemHeightSmall"
|
||||||
android:background="?colorPrimary"
|
android:background="?attr/colorPrimary"
|
||||||
android:elevation="2dp"
|
android:elevation="2dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
@ -25,7 +25,7 @@
|
|||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
||||||
android:textColor="@color/textColorPrimaryDark"
|
android:textColor="?attr/colorOnPrimary"
|
||||||
tools:text="Title" />
|
tools:text="Title" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/list_item_selector"
|
android:background="@drawable/list_item_selector"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:tint="?colorAccent"
|
android:tint="?attr/colorAccent"
|
||||||
app:srcCompat="@drawable/ic_chevron_left_double_black_24dp" />
|
app:srcCompat="@drawable/ic_chevron_left_double_black_24dp" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageButton
|
<androidx.appcompat.widget.AppCompatImageButton
|
||||||
@ -21,7 +21,7 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/list_item_selector"
|
android:background="@drawable/list_item_selector"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:tint="?colorAccent"
|
android:tint="?attr/colorAccent"
|
||||||
app:srcCompat="@drawable/ic_chevron_left_black_24dp" />
|
app:srcCompat="@drawable/ic_chevron_left_black_24dp" />
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
@ -39,7 +39,7 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/list_item_selector"
|
android:background="@drawable/list_item_selector"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:tint="?colorAccent"
|
android:tint="?attr/colorAccent"
|
||||||
app:srcCompat="@drawable/ic_chevron_right_black_24dp" />
|
app:srcCompat="@drawable/ic_chevron_right_black_24dp" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageButton
|
<androidx.appcompat.widget.AppCompatImageButton
|
||||||
@ -48,7 +48,7 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/list_item_selector"
|
android:background="@drawable/list_item_selector"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:tint="?colorAccent"
|
android:tint="?attr/colorAccent"
|
||||||
app:srcCompat="@drawable/ic_chevron_right_double_black_24dp" />
|
app:srcCompat="@drawable/ic_chevron_right_double_black_24dp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?attr/listPreferredItemHeightSmall"
|
android:layout_height="?attr/listPreferredItemHeightSmall"
|
||||||
android:background="?colorPrimary"
|
android:background="?attr/colorPrimary"
|
||||||
android:elevation="2dp"
|
android:elevation="2dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
@ -18,7 +18,7 @@
|
|||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
||||||
android:textColor="@color/textColorPrimaryDark"
|
android:textColor="?attr/colorOnPrimary"
|
||||||
tools:text="Header" />
|
tools:text="Header" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
@ -52,14 +52,14 @@
|
|||||||
android:id="@+id/toolbar"
|
android:id="@+id/toolbar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?attr/actionBarSize"
|
android:layout_height="?attr/actionBarSize"
|
||||||
android:background="?colorPrimary" />
|
android:background="?attr/colorPrimary" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/reader_menu_bottom"
|
android:id="@+id/reader_menu_bottom"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?attr/actionBarSize"
|
android:layout_height="?attr/actionBarSize"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
android:background="?colorPrimary"
|
android:background="?attr/colorPrimary"
|
||||||
android:descendantFocusability="blocksDescendants"
|
android:descendantFocusability="blocksDescendants"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:maxLines="1" />
|
android:maxLines="1"
|
||||||
|
android:textColor="?attr/colorOnPrimary" />
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<!--===============-->
|
<!--===============-->
|
||||||
<!-- Launch Screen -->
|
<!-- Launch Screen -->
|
||||||
<!--===============-->
|
<!--===============-->
|
||||||
<style name="Theme.Splash" parent="Theme.Tachiyomi">
|
<style name="Theme.Splash" parent="Theme.Tachiyomi.Dark">
|
||||||
<item name="colorBackgroundSplash">@color/backgroundDark</item>
|
<item name="colorBackgroundSplash">@color/backgroundDark</item>
|
||||||
|
|
||||||
<item name="android:windowBackground">@drawable/splash_background</item>
|
<item name="android:windowBackground">@drawable/splash_background</item>
|
||||||
|
9
app/src/main/res/values-v23/themes.xml
Normal file
9
app/src/main/res/values-v23/themes.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<style name="Theme.Tachiyomi.Light.Api23">
|
||||||
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||||
|
<item name="android:windowLightStatusBar">true</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</resources>
|
12
app/src/main/res/values-v27/themes.xml
Normal file
12
app/src/main/res/values-v27/themes.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<style name="Theme.Tachiyomi.Light.Api27">
|
||||||
|
<item name="android:statusBarColor">@color/md_white_1000</item>
|
||||||
|
<item name="android:windowLightStatusBar">true</item>
|
||||||
|
|
||||||
|
<item name="android:navigationBarColor">@color/md_white_1000</item>
|
||||||
|
<item name="android:windowLightNavigationBar">true</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</resources>
|
@ -38,7 +38,8 @@
|
|||||||
<color name="pageNumberBackgroundLight">@color/md_grey_50_75</color>
|
<color name="pageNumberBackgroundLight">@color/md_grey_50_75</color>
|
||||||
<color name="pageNumberBackgroundDark">@color/md_grey_900_75</color>
|
<color name="pageNumberBackgroundDark">@color/md_grey_900_75</color>
|
||||||
|
|
||||||
<color name="filterColor">#FFEE07</color>
|
<color name="filterColorLight">#FFC107</color>
|
||||||
|
<color name="filterColorDark">#FFEB3B</color>
|
||||||
|
|
||||||
<!-- Text Colors -->
|
<!-- Text Colors -->
|
||||||
<color name="md_black_1000_87">#DE000000</color>
|
<color name="md_black_1000_87">#DE000000</color>
|
||||||
|
@ -125,6 +125,9 @@
|
|||||||
<string name="theme_light">Light</string>
|
<string name="theme_light">Light</string>
|
||||||
<string name="theme_dark">Dark</string>
|
<string name="theme_dark">Dark</string>
|
||||||
<string name="theme_system">Follow system</string>
|
<string name="theme_system">Follow system</string>
|
||||||
|
<string name="pref_theme_light">Light theme variant</string>
|
||||||
|
<string name="theme_light_default">Default</string>
|
||||||
|
<string name="theme_light_blue">Light blue</string>
|
||||||
<string name="pref_theme_dark">Dark theme variant</string>
|
<string name="pref_theme_dark">Dark theme variant</string>
|
||||||
<string name="theme_dark_default">Default</string>
|
<string name="theme_dark_default">Default</string>
|
||||||
<string name="theme_dark_blue">Dark blue</string>
|
<string name="theme_dark_blue">Dark blue</string>
|
||||||
|
@ -15,11 +15,11 @@
|
|||||||
<item name="windowNoTitle">true</item>
|
<item name="windowNoTitle">true</item>
|
||||||
|
|
||||||
<!-- Theme colors -->
|
<!-- Theme colors -->
|
||||||
<item name="colorPrimary">@color/colorPrimary</item>
|
<item name="colorPrimary">@color/md_white_1000</item>
|
||||||
<item name="colorOnPrimary">@color/textColorPrimaryDark</item>
|
<item name="colorOnPrimary">@color/md_black_1000</item>
|
||||||
<item name="colorPrimaryDark">@color/colorPrimary</item>
|
<item name="colorPrimaryDark">@color/md_white_1000</item>
|
||||||
<item name="colorSecondary">@color/colorAccentLight</item>
|
<item name="colorSecondary">@color/colorAccentLight</item>
|
||||||
<item name="colorOnSecondary">@color/textColorPrimaryDark</item>
|
<item name="colorOnSecondary">@color/md_white_1000</item>
|
||||||
<item name="colorSurface">@color/dialogLight</item>
|
<item name="colorSurface">@color/dialogLight</item>
|
||||||
<item name="colorOnSurface">@color/textColorPrimaryLight</item>
|
<item name="colorOnSurface">@color/textColorPrimaryLight</item>
|
||||||
<item name="colorOnBackground">@color/textColorPrimaryLight</item>
|
<item name="colorOnBackground">@color/textColorPrimaryLight</item>
|
||||||
@ -43,31 +43,41 @@
|
|||||||
<item name="android:textDirection">locale</item>
|
<item name="android:textDirection">locale</item>
|
||||||
|
|
||||||
<!-- Themes -->
|
<!-- Themes -->
|
||||||
<item name="android:forceDarkAllowed">false</item>
|
|
||||||
<item name="windowActionModeOverlay">true</item>
|
<item name="windowActionModeOverlay">true</item>
|
||||||
<item name="actionBarTheme">@style/Theme.ActionBar.Light</item>
|
|
||||||
<item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents</item>
|
<item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents</item>
|
||||||
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
|
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
|
||||||
<item name="dialogTheme">@style/Theme.AlertDialog.Light</item>
|
<item name="dialogTheme">@style/Theme.AlertDialog.Light</item>
|
||||||
<item name="alertDialogTheme">@style/Theme.AlertDialog.Dark</item>
|
<item name="alertDialogTheme">@style/Theme.AlertDialog.Dark</item>
|
||||||
<!-- Intentially using default snackbar background in light theme -->
|
|
||||||
<!-- <item name="snackbarStyle">@style/Theme.Widget.Snackbar</item> -->
|
|
||||||
<item name="snackbarButtonStyle">@style/Theme.Widget.Button.Borderless</item>
|
<item name="snackbarButtonStyle">@style/Theme.Widget.Button.Borderless</item>
|
||||||
<item name="textAppearanceButton">@style/TextAppearance.Widget.Button</item>
|
<item name="textAppearanceButton">@style/TextAppearance.Widget.Button</item>
|
||||||
<item name="android:itemTextAppearance">@style/TextAppearance.Widget.Menu</item>
|
<item name="android:itemTextAppearance">@style/TextAppearance.Widget.Menu</item>
|
||||||
|
|
||||||
<!-- Custom Attributes-->
|
<!-- Custom Attributes-->
|
||||||
<item name="selectable_library_drawable">@drawable/library_item_selector_light</item>
|
<item name="selectable_library_drawable">@drawable/library_item_selector_light</item>
|
||||||
<item name="colorFilterActive">@color/filterColor</item>
|
<item name="colorFilterActive">@color/filterColorDark</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!--===========-->
|
<!--===========-->
|
||||||
<!-- Main Theme-->
|
<!-- Main Theme-->
|
||||||
<!--===========-->
|
<!--===========-->
|
||||||
<style name="Theme.Tachiyomi" parent="Theme.Base">
|
<style name="Theme.Tachiyomi.Light" parent="Theme.Base">
|
||||||
|
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
||||||
|
<item name="android:statusBarColor">@color/md_black_1000_54</item>
|
||||||
|
<item name="android:navigationBarColor">@color/md_black_1000_54</item>
|
||||||
|
|
||||||
|
<item name="colorFilterActive">@color/filterColorLight</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="Theme.Tachiyomi.LightBlue" parent="Theme.Base">
|
||||||
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
||||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||||
<item name="android:navigationBarColor">@color/colorPrimary</item>
|
<item name="android:navigationBarColor">@color/colorPrimaryDark</item>
|
||||||
|
|
||||||
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
|
<item name="colorOnPrimary">@color/textColorPrimaryDark</item>
|
||||||
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||||
|
|
||||||
|
<item name="actionBarTheme">@style/Theme.ActionBar.Light</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!--=============-->
|
<!--=============-->
|
||||||
@ -107,14 +117,12 @@
|
|||||||
<item name="android:navigationBarColor">@color/colorDarkPrimary</item>
|
<item name="android:navigationBarColor">@color/colorDarkPrimary</item>
|
||||||
|
|
||||||
<!-- Themes -->
|
<!-- Themes -->
|
||||||
<item name="android:forceDarkAllowed">false</item>
|
|
||||||
<item name="windowActionModeOverlay">true</item>
|
<item name="windowActionModeOverlay">true</item>
|
||||||
<item name="actionBarTheme">@style/ThemeOverlay.MaterialComponents.Dark.ActionBar</item>
|
<item name="actionBarTheme">@style/ThemeOverlay.MaterialComponents.Dark.ActionBar</item>
|
||||||
<item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents</item>
|
<item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents</item>
|
||||||
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
|
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
|
||||||
<item name="dialogTheme">@style/Theme.AlertDialog.Dark</item>
|
<item name="dialogTheme">@style/Theme.AlertDialog.Dark</item>
|
||||||
<item name="alertDialogTheme">@style/Theme.AlertDialog.Dark</item>
|
<item name="alertDialogTheme">@style/Theme.AlertDialog.Dark</item>
|
||||||
<item name="snackbarStyle">@style/Theme.Widget.Snackbar</item>
|
|
||||||
<item name="snackbarButtonStyle">@style/Theme.Widget.Button.Borderless</item>
|
<item name="snackbarButtonStyle">@style/Theme.Widget.Button.Borderless</item>
|
||||||
<item name="textAppearanceButton">@style/TextAppearance.Widget.Button</item>
|
<item name="textAppearanceButton">@style/TextAppearance.Widget.Button</item>
|
||||||
<item name="android:itemTextAppearance">@style/TextAppearance.Widget.Menu</item>
|
<item name="android:itemTextAppearance">@style/TextAppearance.Widget.Menu</item>
|
||||||
@ -123,7 +131,7 @@
|
|||||||
|
|
||||||
<!-- Custom Attributes-->
|
<!-- Custom Attributes-->
|
||||||
<item name="selectable_library_drawable">@drawable/library_item_selector_dark</item>
|
<item name="selectable_library_drawable">@drawable/library_item_selector_dark</item>
|
||||||
<item name="colorFilterActive">@color/filterColor</item>
|
<item name="colorFilterActive">@color/filterColorDark</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.Tachiyomi.Dark" parent="Theme.Base.Dark">
|
<style name="Theme.Tachiyomi.Dark" parent="Theme.Base.Dark">
|
||||||
@ -150,6 +158,8 @@
|
|||||||
<item name="android:navigationBarColor">@android:color/transparent</item>
|
<item name="android:navigationBarColor">@android:color/transparent</item>
|
||||||
|
|
||||||
<!-- Themes -->
|
<!-- Themes -->
|
||||||
|
<!-- Surface-colored snackbar -->
|
||||||
|
<item name="snackbarStyle">@style/Theme.Widget.Snackbar</item>
|
||||||
<item name="md_background_color">@color/colorAmoledPrimary</item>
|
<item name="md_background_color">@color/colorAmoledPrimary</item>
|
||||||
|
|
||||||
<!-- Custom Attributes-->
|
<!-- Custom Attributes-->
|
||||||
@ -166,21 +176,27 @@
|
|||||||
<style name="Theme.Base.Reader.Dark" parent="Theme.Base.Dark">
|
<style name="Theme.Base.Reader.Dark" parent="Theme.Base.Dark">
|
||||||
<item name="colorPrimary">@color/readerColorDarkPrimary</item>
|
<item name="colorPrimary">@color/readerColorDarkPrimary</item>
|
||||||
<item name="colorPrimaryDark">@color/readerColorDarkPrimary</item>
|
<item name="colorPrimaryDark">@color/readerColorDarkPrimary</item>
|
||||||
<item name="colorSurface">@android:color/black</item>
|
<item name="colorSurface">@color/md_black_1000</item>
|
||||||
|
|
||||||
<item name="android:colorBackground">@android:color/black</item>
|
<item name="android:colorBackground">@color/md_black_1000</item>
|
||||||
<item name="android:statusBarColor">?attr/colorPrimaryDark</item>
|
<item name="android:statusBarColor">?attr/colorPrimaryDark</item>
|
||||||
<item name="android:navigationBarColor">?attr/colorPrimaryDark</item>
|
<item name="android:navigationBarColor">?attr/colorPrimaryDark</item>
|
||||||
|
|
||||||
|
<item name="actionBarTheme">@style/ThemeOverlay.MaterialComponents.Dark.ActionBar</item>
|
||||||
|
<item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.Base.Reader.Light" parent="Theme.Base">
|
<style name="Theme.Base.Reader.Light" parent="Theme.Base">
|
||||||
<item name="colorPrimary">@color/readerColorDarkPrimary</item>
|
<item name="colorPrimary">@color/readerColorDarkPrimary</item>
|
||||||
<item name="colorPrimaryDark">@color/readerColorDarkPrimary</item>
|
<item name="colorPrimaryDark">@color/readerColorDarkPrimary</item>
|
||||||
<item name="colorSurface">@android:color/white</item>
|
<item name="colorSurface">@color/md_white_1000</item>
|
||||||
|
|
||||||
<item name="android:colorBackground">@android:color/white</item>
|
<item name="android:colorBackground">@color/md_white_1000</item>
|
||||||
<item name="android:statusBarColor">?attr/colorPrimaryDark</item>
|
<item name="android:statusBarColor">?attr/colorPrimaryDark</item>
|
||||||
<item name="android:navigationBarColor">?attr/colorPrimaryDark</item>
|
<item name="android:navigationBarColor">?attr/colorPrimaryDark</item>
|
||||||
|
|
||||||
|
<item name="actionBarTheme">@style/ThemeOverlay.MaterialComponents.Dark.ActionBar</item>
|
||||||
|
<item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.Reader" parent="Theme.Base.Reader.Dark">
|
<style name="Theme.Reader" parent="Theme.Base.Reader.Dark">
|
||||||
@ -195,7 +211,7 @@
|
|||||||
<!--===============-->
|
<!--===============-->
|
||||||
<!-- Launch Screen -->
|
<!-- Launch Screen -->
|
||||||
<!--===============-->
|
<!--===============-->
|
||||||
<style name="Theme.Splash" parent="Theme.Tachiyomi">
|
<style name="Theme.Splash" parent="Theme.Tachiyomi.LightBlue">
|
||||||
<item name="colorBackgroundSplash">@color/colorPrimary</item>
|
<item name="colorBackgroundSplash">@color/colorPrimary</item>
|
||||||
|
|
||||||
<item name="android:windowBackground">@drawable/splash_background</item>
|
<item name="android:windowBackground">@drawable/splash_background</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user