From 0eadc028b6f9daf38cae083cfdc2ff44a1836623 Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Fri, 2 Jul 2021 19:44:04 +0700 Subject: [PATCH] Merge light and dark themes (#5470) * Merge AMOLED and regular dark themes This allows all variants of dark themes to use black backgrounds as a separate preference. * Merge light and dark themes * Fix ReaderSeekBar color on Dark Blue theme * Color fixes * Fix Dark Blue bars ripple * Simplify night mode check --- app/src/main/AndroidManifest.xml | 4 +- .../data/preference/PreferenceKeys.kt | 4 +- .../data/preference/PreferenceValues.kt | 30 +- .../data/preference/PreferencesHelper.kt | 16 +- .../ui/base/activity/BaseThemedActivity.kt | 62 ++-- .../tachiyomi/ui/reader/ReaderActivity.kt | 9 +- .../tachiyomi/ui/reader/ReaderSeekBar.kt | 11 + .../ui/setting/SettingsGeneralController.kt | 58 +--- .../util/system/ContextExtensions.kt | 9 +- .../tachiyomi/util/view/ViewExtensions.kt | 6 +- .../widget/sheet/BaseBottomSheetDialog.kt | 6 +- .../main/res/layout-sw720dp/main_activity.xml | 2 - app/src/main/res/layout/main_activity.xml | 2 - app/src/main/res/values-am/strings.xml | 9 +- app/src/main/res/values-ar/strings.xml | 9 +- app/src/main/res/values-b+es+419/strings.xml | 9 +- app/src/main/res/values-bg/strings.xml | 9 +- app/src/main/res/values-bn/strings.xml | 9 +- app/src/main/res/values-ca/strings.xml | 15 +- app/src/main/res/values-cs/strings.xml | 17 +- app/src/main/res/values-cv/strings.xml | 9 +- app/src/main/res/values-de/strings.xml | 17 +- app/src/main/res/values-el/strings.xml | 17 +- app/src/main/res/values-eo/strings.xml | 9 +- app/src/main/res/values-es/strings.xml | 9 +- app/src/main/res/values-fa/strings.xml | 9 +- app/src/main/res/values-fi/strings.xml | 17 +- app/src/main/res/values-fil/strings.xml | 17 +- app/src/main/res/values-fr/strings.xml | 17 +- app/src/main/res/values-gl/strings.xml | 9 +- app/src/main/res/values-he/strings.xml | 6 +- app/src/main/res/values-hi/strings.xml | 9 +- app/src/main/res/values-hr/strings.xml | 13 +- app/src/main/res/values-hu/strings.xml | 9 +- app/src/main/res/values-in/strings.xml | 17 +- app/src/main/res/values-it/strings.xml | 9 +- app/src/main/res/values-ja/strings.xml | 9 +- app/src/main/res/values-ka-rGE/strings.xml | 9 +- app/src/main/res/values-kn/strings.xml | 9 +- app/src/main/res/values-lv/strings.xml | 9 +- app/src/main/res/values-mr/strings.xml | 9 +- app/src/main/res/values-ms/strings.xml | 17 +- app/src/main/res/values-nb-rNO/strings.xml | 9 +- app/src/main/res/values-ne/strings.xml | 9 +- app/src/main/res/values-night/bools.xml | 5 + app/src/main/res/values-night/colors.xml | 8 +- app/src/main/res/values-night/themes.xml | 22 ++ app/src/main/res/values-nl/strings.xml | 9 +- app/src/main/res/values-pl/strings.xml | 17 +- app/src/main/res/values-pt-rBR/strings.xml | 17 +- app/src/main/res/values-pt/strings.xml | 9 +- app/src/main/res/values-ro/strings.xml | 9 +- app/src/main/res/values-ru/strings.xml | 17 +- app/src/main/res/values-sah/strings.xml | 9 +- app/src/main/res/values-sc/strings.xml | 17 +- app/src/main/res/values-sr/strings.xml | 9 +- app/src/main/res/values-sv/strings.xml | 17 +- app/src/main/res/values-th/strings.xml | 9 +- app/src/main/res/values-tr/strings.xml | 17 +- app/src/main/res/values-uk/strings.xml | 9 +- app/src/main/res/values-v27/bools.xml | 5 + app/src/main/res/values-v27/themes.xml | 6 +- app/src/main/res/values-vi/strings.xml | 9 +- app/src/main/res/values-zh-rCN/strings.xml | 17 +- app/src/main/res/values-zh-rTW/strings.xml | 9 +- app/src/main/res/values/attrs.xml | 2 + app/src/main/res/values/bools.xml | 5 + app/src/main/res/values/colors.xml | 25 +- app/src/main/res/values/strings.xml | 21 +- app/src/main/res/values/styles.xml | 28 +- app/src/main/res/values/themes.xml | 297 +++--------------- 71 files changed, 408 insertions(+), 785 deletions(-) create mode 100644 app/src/main/res/values-night/bools.xml create mode 100644 app/src/main/res/values-night/themes.xml create mode 100644 app/src/main/res/values-v27/bools.xml create mode 100644 app/src/main/res/values/bools.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 93c221cdd..852dabecf 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -32,7 +32,7 @@ android:largeHeap="true" android:requestLegacyExternalStorage="true" android:roundIcon="@mipmap/ic_launcher_round" - android:theme="@style/Theme.Base.Light" + android:theme="@style/Theme.Tachiyomi" android:networkSecurityConfig="@xml/network_security_config"> + android:theme="@style/Theme.Tachiyomi" /> diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceKeys.kt b/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceKeys.kt index 05046a308..725e137b4 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceKeys.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceKeys.kt @@ -7,9 +7,9 @@ object PreferenceKeys { const val themeMode = "pref_theme_mode_key" - const val themeLight = "pref_theme_light_key" + const val appTheme = "pref_app_theme" - const val themeDark = "pref_theme_dark_key" + const val themeDarkAmoled = "pref_theme_dark_amoled_key" const val confirmExit = "pref_confirm_exit" diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt b/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt index 981c27997..79b46e531 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt @@ -1,5 +1,7 @@ package eu.kanade.tachiyomi.data.preference +import eu.kanade.tachiyomi.R + const val UNMETERED_NETWORK = "wifi" const val CHARGING = "ac" @@ -17,26 +19,18 @@ object PreferenceValues { system, } - // Keys are lowercase to match legacy string values - enum class LightThemeVariant { - default, - blue, - strawberrydaiquiri, - yotsuba - } - - // Keys are lowercase to match legacy string values - enum class DarkThemeVariant { - default, - blue, - greenapple, - midnightdusk, - amoled, - hotpink, - } - /* ktlint-enable experimental:enum-entry-name-case */ + enum class AppTheme(val titleResId: Int) { + DEFAULT(R.string.theme_default), + DARK_BLUE(R.string.theme_darkblue), + GREEN_APPLE(R.string.theme_greenapple), + HOT_PINK(R.string.theme_hotpink), + MIDNIGHT_DUSK(R.string.theme_midnightdusk), + STRAWBERRY_DAIQUIRI(R.string.theme_strawberrydaiquiri), + YOTSUBA(R.string.theme_yotsuba) + } + enum class TappingInvertMode(val shouldInvertHorizontal: Boolean = false, val shouldInvertVertical: Boolean = false) { NONE, HORIZONTAL(shouldInvertHorizontal = true), diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt b/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt index 3c6f8997a..bfd655940 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt @@ -1,7 +1,6 @@ package eu.kanade.tachiyomi.data.preference import android.content.Context -import android.content.res.Configuration import android.os.Environment import androidx.core.content.edit import androidx.core.net.toUri @@ -90,9 +89,9 @@ class PreferencesHelper(val context: Context) { fun themeMode() = flowPrefs.getEnum(Keys.themeMode, system) - fun themeLight() = flowPrefs.getEnum(Keys.themeLight, Values.LightThemeVariant.default) + fun appTheme() = flowPrefs.getEnum(Keys.appTheme, Values.AppTheme.DEFAULT) - fun themeDark() = flowPrefs.getEnum(Keys.themeDark, Values.DarkThemeVariant.default) + fun themeDarkAmoled() = flowPrefs.getBoolean(Keys.themeDarkAmoled, false) fun pageTransitions() = flowPrefs.getBoolean(Keys.enableTransitions, true) @@ -325,15 +324,4 @@ class PreferencesHelper(val context: Context) { putInt(Keys.defaultChapterSortByAscendingOrDescending, if (manga.sortDescending()) Manga.CHAPTER_SORT_DESC else Manga.CHAPTER_SORT_ASC) } } - - fun isDarkMode(): Boolean { - return when (themeMode().get()) { - light -> false - dark -> true - system -> { - context.applicationContext.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK == - Configuration.UI_MODE_NIGHT_YES - } - } - } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseThemedActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseThemedActivity.kt index 28c9bffab..2edd9fa7d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseThemedActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseThemedActivity.kt @@ -2,10 +2,10 @@ package eu.kanade.tachiyomi.ui.base.activity import android.os.Bundle import androidx.appcompat.app.AppCompatActivity +import androidx.appcompat.app.AppCompatDelegate import androidx.lifecycle.lifecycleScope import eu.kanade.tachiyomi.R -import eu.kanade.tachiyomi.data.preference.PreferenceValues.DarkThemeVariant -import eu.kanade.tachiyomi.data.preference.PreferenceValues.LightThemeVariant +import eu.kanade.tachiyomi.data.preference.PreferenceValues import eu.kanade.tachiyomi.data.preference.PreferencesHelper import eu.kanade.tachiyomi.data.preference.asImmediateFlow import eu.kanade.tachiyomi.util.view.setSecureScreen @@ -19,7 +19,7 @@ abstract class BaseThemedActivity : AppCompatActivity() { val preferences: PreferencesHelper by injectLazy() override fun onCreate(savedInstanceState: Bundle?) { - setTheme(getThemeResourceId(preferences)) + applyThemePreferences(preferences) Injekt.get().incognitoMode() .asImmediateFlow { @@ -31,23 +31,49 @@ abstract class BaseThemedActivity : AppCompatActivity() { } companion object { - fun getThemeResourceId(preferences: PreferencesHelper): Int { - return if (preferences.isDarkMode()) { - when (preferences.themeDark().get()) { - DarkThemeVariant.default -> R.style.Theme_Tachiyomi_Dark - DarkThemeVariant.blue -> R.style.Theme_Tachiyomi_Dark_Blue - DarkThemeVariant.greenapple -> R.style.Theme_Tachiyomi_Dark_GreenApple - DarkThemeVariant.midnightdusk -> R.style.Theme_Tachiyomi_Dark_MidnightDusk - DarkThemeVariant.amoled -> R.style.Theme_Tachiyomi_Amoled - DarkThemeVariant.hotpink -> R.style.Theme_Tachiyomi_Amoled_HotPink + fun AppCompatActivity.applyThemePreferences(preferences: PreferencesHelper) { + val resIds = mutableListOf() + when (preferences.appTheme().get()) { + PreferenceValues.AppTheme.DEFAULT -> { + resIds += R.style.Theme_Tachiyomi } - } else { - when (preferences.themeLight().get()) { - LightThemeVariant.default -> R.style.Theme_Tachiyomi_Light - LightThemeVariant.blue -> R.style.Theme_Tachiyomi_Light_Blue - LightThemeVariant.strawberrydaiquiri -> R.style.Theme_Tachiyomi_Light_StrawberryDaiquiri - LightThemeVariant.yotsuba -> R.style.Theme_Tachiyomi_Light_Yotsuba + PreferenceValues.AppTheme.DARK_BLUE -> { + resIds += R.style.Theme_Tachiyomi_DarkBlue + resIds += R.style.ThemeOverlay_Tachiyomi_ColoredBars } + PreferenceValues.AppTheme.GREEN_APPLE -> { + resIds += R.style.Theme_Tachiyomi_GreenApple + } + PreferenceValues.AppTheme.HOT_PINK -> { + resIds += R.style.Theme_Tachiyomi_HotPink + } + PreferenceValues.AppTheme.MIDNIGHT_DUSK -> { + resIds += R.style.Theme_Tachiyomi_MidnightDusk + } + PreferenceValues.AppTheme.STRAWBERRY_DAIQUIRI -> { + resIds += R.style.Theme_Tachiyomi_StrawberryDaiquiri + } + PreferenceValues.AppTheme.YOTSUBA -> { + resIds += R.style.Theme_Tachiyomi_Yotsuba + } + } + + if (preferences.themeDarkAmoled().get()) { + resIds += R.style.ThemeOverlay_Tachiyomi_Amoled + } + + resIds.forEach { + setTheme(it) + } + + lifecycleScope.launchWhenCreated { + AppCompatDelegate.setDefaultNightMode( + when (preferences.themeMode().get()) { + PreferenceValues.ThemeMode.light -> AppCompatDelegate.MODE_NIGHT_NO + PreferenceValues.ThemeMode.dark -> AppCompatDelegate.MODE_NIGHT_YES + PreferenceValues.ThemeMode.system -> AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM + } + ) } } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt index 08f5e71fe..f3bedcaef 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt @@ -44,7 +44,7 @@ import eu.kanade.tachiyomi.data.preference.PreferencesHelper import eu.kanade.tachiyomi.data.preference.toggle import eu.kanade.tachiyomi.databinding.ReaderActivityBinding import eu.kanade.tachiyomi.ui.base.activity.BaseRxActivity -import eu.kanade.tachiyomi.ui.base.activity.BaseThemedActivity +import eu.kanade.tachiyomi.ui.base.activity.BaseThemedActivity.Companion.applyThemePreferences import eu.kanade.tachiyomi.ui.main.MainActivity import eu.kanade.tachiyomi.ui.manga.MangaController import eu.kanade.tachiyomi.ui.reader.ReaderPresenter.SetAsCoverResult.AddToLibraryFirst @@ -61,6 +61,7 @@ import eu.kanade.tachiyomi.ui.reader.viewer.pager.R2LPagerViewer import eu.kanade.tachiyomi.util.storage.getUriCompat import eu.kanade.tachiyomi.util.system.GLUtil import eu.kanade.tachiyomi.util.system.hasDisplayCutout +import eu.kanade.tachiyomi.util.system.isNightMode import eu.kanade.tachiyomi.util.system.toast import eu.kanade.tachiyomi.util.view.popupMenu import eu.kanade.tachiyomi.util.view.setTooltip @@ -138,7 +139,7 @@ class ReaderActivity : BaseRxActivity() * Called when the activity is created. Initializes the presenter and configuration. */ override fun onCreate(savedInstanceState: Bundle?) { - setTheme(BaseThemedActivity.getThemeResourceId(preferences)) + applyThemePreferences(preferences) super.onCreate(savedInstanceState) binding = ReaderActivityBinding.inflate(layoutInflater) @@ -353,7 +354,7 @@ class ReaderActivity : BaseRxActivity() initBottomShortcuts() - val alpha = if (preferences.isDarkMode()) 230 else 242 // 90% dark 95% light + val alpha = if (isNightMode()) 230 else 242 // 90% dark 95% light val toolbarColor = ColorUtils.setAlphaComponent(getThemeColor(R.attr.colorToolbar), alpha) listOf( binding.toolbarBottom, @@ -852,7 +853,7 @@ class ReaderActivity : BaseRxActivity() binding.readerContainer.setBackgroundResource( when (preferences.readerTheme().get()) { 0 -> android.R.color.white - 2 -> R.color.background_dark + 2 -> R.color.reader_background_dark else -> android.R.color.black } ) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSeekBar.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSeekBar.kt index 0615c1f4f..a1e08f4fa 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSeekBar.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSeekBar.kt @@ -1,10 +1,13 @@ package eu.kanade.tachiyomi.ui.reader import android.content.Context +import android.content.res.ColorStateList import android.graphics.Canvas import android.util.AttributeSet import android.view.MotionEvent import androidx.appcompat.widget.AppCompatSeekBar +import com.mikepenz.aboutlibraries.util.getThemeColor +import eu.kanade.tachiyomi.R /** * Seekbar to show current chapter progress. @@ -41,4 +44,12 @@ class ReaderSeekBar @JvmOverloads constructor( } return super.onTouchEvent(event) } + + init { + // Set color to onPrimary when ColoredBars theme is applied + if (context.getThemeColor(R.attr.colorToolbar) == context.getThemeColor(R.attr.colorPrimary)) { + thumbTintList = ColorStateList.valueOf(context.getThemeColor(R.attr.colorOnPrimary)) + progressTintList = thumbTintList + } + } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt index e5146198a..6f887eced 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt @@ -119,62 +119,30 @@ class SettingsGeneralController : SettingsController() { } } listPreference { - key = Keys.themeLight - titleRes = R.string.pref_theme_light - entriesRes = arrayOf( - R.string.theme_light_default, - R.string.theme_light_blue, - R.string.theme_light_strawberrydaiquiri, - R.string.theme_light_yotsuba - ) - entryValues = arrayOf( - Values.LightThemeVariant.default.name, - Values.LightThemeVariant.blue.name, - Values.LightThemeVariant.strawberrydaiquiri.name, - Values.LightThemeVariant.yotsuba.name - ) - defaultValue = Values.LightThemeVariant.default.name + key = Keys.appTheme + titleRes = R.string.pref_app_theme + + val appThemes = Values.AppTheme.values() + entriesRes = appThemes.map { it.titleResId }.toTypedArray() + entryValues = appThemes.map { it.name }.toTypedArray() + defaultValue = appThemes[0].name summary = "%s" - preferences.themeMode().asImmediateFlow { isVisible = it != Values.ThemeMode.dark } - .launchIn(viewScope) - onChange { - if (preferences.themeMode().get() != Values.ThemeMode.dark) { - activity?.recreate() - } + activity?.recreate() true } } - listPreference { - key = Keys.themeDark - titleRes = R.string.pref_theme_dark - entriesRes = arrayOf( - R.string.theme_dark_default, - R.string.theme_dark_blue, - R.string.theme_dark_greenapple, - R.string.theme_dark_midnightdusk, - R.string.theme_dark_amoled, - R.string.theme_dark_amoled_hotpink - ) - entryValues = arrayOf( - Values.DarkThemeVariant.default.name, - Values.DarkThemeVariant.blue.name, - Values.DarkThemeVariant.greenapple.name, - Values.DarkThemeVariant.midnightdusk.name, - Values.DarkThemeVariant.amoled.name, - Values.DarkThemeVariant.hotpink.name - ) - defaultValue = Values.DarkThemeVariant.default.name - summary = "%s" + switchPreference { + key = Keys.themeDarkAmoled + titleRes = R.string.pref_dark_theme_pure_black + defaultValue = false preferences.themeMode().asImmediateFlow { isVisible = it != Values.ThemeMode.light } .launchIn(viewScope) onChange { - if (preferences.themeMode().get() != Values.ThemeMode.light) { - activity?.recreate() - } + activity?.recreate() true } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/system/ContextExtensions.kt b/app/src/main/java/eu/kanade/tachiyomi/util/system/ContextExtensions.kt index eedb0d90c..563d562a0 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/system/ContextExtensions.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/system/ContextExtensions.kt @@ -11,6 +11,7 @@ import android.content.Context import android.content.Intent import android.content.IntentFilter import android.content.pm.PackageManager +import android.content.res.Configuration import android.content.res.Resources import android.graphics.Color import android.net.ConnectivityManager @@ -38,7 +39,6 @@ import androidx.localbroadcastmanager.content.LocalBroadcastManager import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.util.lang.truncateCenter import timber.log.Timber -import uy.kohesive.injekt.api.get import java.io.File import kotlin.math.roundToInt @@ -277,3 +277,10 @@ fun Context.createFileInCacheDir(name: String): File { fun Context.isTablet(): Boolean { return resources.configuration.smallestScreenWidthDp >= 720 } + +/** + * Returns true if current context is in night mode + */ +fun Context.isNightMode(): Boolean { + return resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK == Configuration.UI_MODE_NIGHT_YES +} diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt b/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt index 4581241a4..cfd6a6d3d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt @@ -25,10 +25,8 @@ import com.google.android.material.elevation.ElevationOverlayProvider import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton import com.google.android.material.snackbar.Snackbar import eu.kanade.tachiyomi.R -import eu.kanade.tachiyomi.data.preference.PreferencesHelper import eu.kanade.tachiyomi.util.system.getResourceColor -import uy.kohesive.injekt.Injekt -import uy.kohesive.injekt.api.get +import eu.kanade.tachiyomi.util.system.isNightMode /** * Returns coordinates of view. @@ -186,7 +184,7 @@ inline fun ChipGroup.setChips( * Applies elevation overlay to a MaterialCardView */ inline fun MaterialCardView.applyElevationOverlay() { - if (Injekt.get().isDarkMode()) { + if (context.isNightMode()) { val provider = ElevationOverlayProvider(context) setCardBackgroundColor(provider.compositeOverlay(cardBackgroundColor.defaultColor, cardElevation)) } diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/sheet/BaseBottomSheetDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/sheet/BaseBottomSheetDialog.kt index 8f592af24..202dc78fd 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/sheet/BaseBottomSheetDialog.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/sheet/BaseBottomSheetDialog.kt @@ -9,11 +9,9 @@ import android.view.View import android.view.ViewGroup import com.google.android.material.bottomsheet.BottomSheetDialog import eu.kanade.tachiyomi.R -import eu.kanade.tachiyomi.data.preference.PreferencesHelper import eu.kanade.tachiyomi.util.system.displayCompat +import eu.kanade.tachiyomi.util.system.isNightMode import eu.kanade.tachiyomi.util.view.setNavigationBarTransparentCompat -import uy.kohesive.injekt.Injekt -import uy.kohesive.injekt.api.get abstract class BaseBottomSheetDialog(context: Context) : BottomSheetDialog(context) { @@ -45,7 +43,7 @@ abstract class BaseBottomSheetDialog(context: Context) : BottomSheetDialog(conte window?.setNavigationBarTransparentCompat(context) val bottomSheet = rootView.parent as ViewGroup var flags = bottomSheet.systemUiVisibility - flags = if (Injekt.get().isDarkMode()) { + flags = if (context.isNightMode()) { flags and View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR.inv() } else { flags or View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR diff --git a/app/src/main/res/layout-sw720dp/main_activity.xml b/app/src/main/res/layout-sw720dp/main_activity.xml index 60557cede..656a2b8ae 100644 --- a/app/src/main/res/layout-sw720dp/main_activity.xml +++ b/app/src/main/res/layout-sw720dp/main_activity.xml @@ -74,8 +74,6 @@ android:layout_width="wrap_content" android:layout_height="0dp" app:elevation="0dp" - app:itemRippleColor="@color/ripple_toolbar_fainter" - app:labelVisibilityMode="labeled" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/incognito_mode" diff --git a/app/src/main/res/layout/main_activity.xml b/app/src/main/res/layout/main_activity.xml index e57b5b088..0afa597d5 100644 --- a/app/src/main/res/layout/main_activity.xml +++ b/app/src/main/res/layout/main_activity.xml @@ -78,8 +78,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" - app:itemRippleColor="@color/ripple_toolbar_fainter" - app:labelVisibilityMode="labeled" app:layout_insetEdge="bottom" app:menu="@menu/main_nav" /> diff --git a/app/src/main/res/values-am/strings.xml b/app/src/main/res/values-am/strings.xml index 92fad7b91..b5b94a49f 100644 --- a/app/src/main/res/values-am/strings.xml +++ b/app/src/main/res/values-am/strings.xml @@ -70,13 +70,8 @@ ነባሪ ቋንቋ ማያ ገጹን ይጀምሩ - AMOLED ጥቁር - ጥቁር ሰማያዊ - ነባሪ - ጨለማ ጭብጥ - ዉሃ ሰማያዊ - ነባሪ - የብርሃን ጭብጥ + ጥቁር ሰማያዊ + ነባሪ በርቷል ጠፍቷል ስርዓት ይከተሉ diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml index d1a0481ce..440b63270 100644 --- a/app/src/main/res/values-ar/strings.xml +++ b/app/src/main/res/values-ar/strings.xml @@ -359,13 +359,8 @@ إعدادات الأمان إدارة الإشعارات صيغة التاريخ - أسود AMOLED - أزرق غامق - الافتراضي - المظهر الداكن - أزرق فاتح - الافتراضي - المظهر الفاتح + أزرق غامق + الافتراضي اتبع مظهر النظام مفعّل غير مفعّل diff --git a/app/src/main/res/values-b+es+419/strings.xml b/app/src/main/res/values-b+es+419/strings.xml index 7dd8ca2ff..7306e6a9a 100644 --- a/app/src/main/res/values-b+es+419/strings.xml +++ b/app/src/main/res/values-b+es+419/strings.xml @@ -276,13 +276,8 @@ Predeterminado Idioma Pantalla inicial - AMOLED negro - Azul oscuro - Predeterminado - Tema oscuro - Azul claro - Predeterminado - Tema claro + Azul oscuro + Predeterminado Encendido Apagado Usar el del sistema diff --git a/app/src/main/res/values-bg/strings.xml b/app/src/main/res/values-bg/strings.xml index 6b1f33083..ef6cb5fd3 100644 --- a/app/src/main/res/values-bg/strings.xml +++ b/app/src/main/res/values-bg/strings.xml @@ -468,13 +468,8 @@ Сигурност Уведомления Потвърждение при излизане - AMOLED черно - Тъмносин - По подразбиране - Тъмна тема - Светлосин - По подразбиране - Светла тема + Тъмносин + По подразбиране Система на абонаментите Включено Изключено diff --git a/app/src/main/res/values-bn/strings.xml b/app/src/main/res/values-bn/strings.xml index 9515f1957..3f6f4a53c 100644 --- a/app/src/main/res/values-bn/strings.xml +++ b/app/src/main/res/values-bn/strings.xml @@ -366,13 +366,8 @@ বিজ্ঞপ্তিগুলি নিয়ন্ত্রণ করুন বের হতে নিশ্চিত করুন তারিখের রীতি - অ্যামোলেড কালো - গাঢ় নীল - প্রকৃত - কালো থিম - হালকা নীল - প্রকৃত - সাদা থিম + গাঢ় নীল + প্রকৃত চালু করুন বন্ধ করুন সিস্টেমকে অনুসরণ করুন diff --git a/app/src/main/res/values-ca/strings.xml b/app/src/main/res/values-ca/strings.xml index 2649ddc52..a34b23ffb 100644 --- a/app/src/main/res/values-ca/strings.xml +++ b/app/src/main/res/values-ca/strings.xml @@ -357,10 +357,7 @@ Desactivat Activat Per defecte del sistema - Tema fosc - Per defecte - Blau Fosc - Negre AMOLED + Blau Fosc Gestiona les notificacions Seguretat Requereix desbloqueig @@ -402,9 +399,7 @@ Per a 1 títol Per a %d títols - Tema clar - Per defecte - Blau Clar + Per defecte Menú Reordena Els més nous @@ -645,8 +640,8 @@ Actualitza els rastrejadors en actualitzar la biblioteca Actualitza els rastrejadors automàticament Mou els botons de navegació laterals a la part inferior - Rosa calent - Vespre de mitjanit - Daiquiri de maduixa + Rosa calent + Vespre de mitjanit + Daiquiri de maduixa Capítol no trobat \ No newline at end of file diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index cf0278145..1834b127e 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -363,11 +363,8 @@ Uzamknout při nečinnosti Bezpečnost Spravovat oznámení - Tmavě modrý - Výchozí - Temný vzhled - Světle modrý - Výchozí + Tmavě modrý + Výchozí Nejstarší Nejnovější Zobrazit kapitoly @@ -491,8 +488,6 @@ Chráněná obrazovka Vyžadovat odemknutí Potvrdit opuštění - AMOLED černý - Světlý vzhled Zapnuto Vypnuto Temný vzhled @@ -656,9 +651,9 @@ Automaticky aktualizovat sledovače Omezení: %s Přesunout boční navigační tlačítka do spodní části - Žhavá Růžová - Půlnoční Soumrak - Zelené Jablko - Jahodové Daiquiri + Žhavá Růžová + Půlnoční Soumrak + Zelené Jablko + Jahodové Daiquiri Místní odznaky \ No newline at end of file diff --git a/app/src/main/res/values-cv/strings.xml b/app/src/main/res/values-cv/strings.xml index 72f8cfe13..f7d693a4f 100644 --- a/app/src/main/res/values-cv/strings.xml +++ b/app/src/main/res/values-cv/strings.xml @@ -71,11 +71,7 @@ Вӑхӑт формачӗ Чӗлхе Пуҫламӑш экран - AMOLED хура - Тӗксӗм кӑвак - Тӗксӗм тема тӗсӗ - Шурӑ кӑвак - Ҫутӑ тема + Тӗксӗм кӑвак Ҫутнӑ Сӳнтернӗ Тата @@ -194,8 +190,7 @@ Уйӑр Тӗксӗм тема Яланхилле - Яланхилле - Яланхилле + Яланхилле Сӳстемри пекех Вулӑш Сӑнану diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 0f5c8803e..4f20d54ea 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -357,10 +357,7 @@ Aus An Systemeinstellung - Dunkeldesign - Standard - Dunkelblau - AMOLED Schwarz + Dunkelblau Benachrichtigungen verwalten Sicherheit Entsperren erforderlich @@ -402,9 +399,7 @@ Für 1 Titel Für %d Titel - Helldesign - Standard - Hellblau + Standard Menü Umordnen Neueste @@ -640,16 +635,16 @@ Ungelesen Heimlich tracken, wenn neue Manga der Bibliothek hinzugefügt werden Seitennavigations-Buttons nach unten verlegen - Heißes Pink - Mitternachtsdämmerung + Heißes Pink + Mitternachtsdämmerung Datum Sortiere nach Ungültiges Kapitelformat Kapitel nicht gefunden Tracker aktualisieren, wenn die Bibliothek aktualisiert wird Tracker automatisch aktualisieren - Erdbeer-Daiquiri - Grüner Apfel + Erdbeer-Daiquiri + Grüner Apfel Einschränkungen: %s Lokal-Plaketten Aus diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml index 7b0505f13..6a1b3dd34 100644 --- a/app/src/main/res/values-el/strings.xml +++ b/app/src/main/res/values-el/strings.xml @@ -426,13 +426,8 @@ Διαχείριση ειδοποιήσεων Επιβεβαίωση εξόδου Μορφή ημερομηνίας - AMOLED Μαύρο - Σκούρο Μπλε - Προεπιλογή - Σκοτεινό θέμα - Γαλάζιο - Προεπιλογή - Φωτεινό θέμα + Σκούρο Μπλε + Προεπιλογή Ακολουθήστε το σύστημα Ενεργοποιημένο Απενεργοποιημένο @@ -640,16 +635,16 @@ Αδιάβαστα Παρακολούθηση σιωπηλά κατά την προσθήκη manga στη βιβλιοθήκη Μετακίνηση πλευρικών κουμπιών περιήγησης στο κάτω μέρος - Καυτό Ροζ - Μεταμεσονύκτιο Σούρουπο + Καυτό Ροζ + Μεταμεσονύκτιο Σούρουπο Ημερομηνία Ταξινόμηση κατά Ενημέρωση των trackers κατά την ενημέρωση της βιβλιοθήκης Αυτόματη ενημέρωση των trackers Μη έγκυρη μορφή κεφαλαίου Το κεφάλαιο δε βρέθηκε - Φράουλα Ντάκιρι - Πράσινο Μήλο + Φράουλα Ντάκιρι + Πράσινο Μήλο Περιορισμοί: %s Τοπικά σήματα Απενεργοποιημένο diff --git a/app/src/main/res/values-eo/strings.xml b/app/src/main/res/values-eo/strings.xml index 35073dec4..33ae47cd4 100644 --- a/app/src/main/res/values-eo/strings.xml +++ b/app/src/main/res/values-eo/strings.xml @@ -72,12 +72,8 @@ Operaciuma Lingvo Hejmekrano - Malhelblua - Defaŭlta - Malhela etoso - Helblua - Defaŭlta - Hela etoso + Malhelblua + Defaŭlta Ŝalti Malŝalti Laŭ operaciumo @@ -236,7 +232,6 @@ Montri en fontlisto MPL/NSFW (18+) fontoj Konfirmi eliron - AMOLED-a nigra Lingvo Ĝenerala Apo maldisponebla diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 065151210..5aa9490cf 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -389,10 +389,7 @@ Apagado Encendido Usar el del sistema - Tema oscuro - Predeterminado - Negro y azul - AMOLED negro + Negro y azul Gestionar notificaciones Seguridad Bloquear con huella @@ -434,9 +431,7 @@ Para 1 título Para %d títulos - Tema claro - Predeterminado - Azul y blanco + Predeterminado Menú Reordenar Lo más nuevo diff --git a/app/src/main/res/values-fa/strings.xml b/app/src/main/res/values-fa/strings.xml index 606be48b3..568030611 100644 --- a/app/src/main/res/values-fa/strings.xml +++ b/app/src/main/res/values-fa/strings.xml @@ -344,13 +344,8 @@ پیش‌فرض سیستم انتخاب زبان صفحه اغازین - AMOLED سیاه - تم آبی تیره - پیش‌فرض - تم تیره - تم آبی کمرنگ - پیش‌فرض - تم روشن + تم آبی تیره + پیش‌فرض روشن خاموش تم پیش‌فرض سیستم diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml index 86ea29d95..27a3929ed 100644 --- a/app/src/main/res/values-fi/strings.xml +++ b/app/src/main/res/values-fi/strings.xml @@ -357,10 +357,7 @@ Pois päältä Päällä Seuraa järjestelmää - Tumma teema - Oletus - Tummansininen - AMOLED teema + Tummansininen Hallitse ilmoituksia Turvallisuus Vaadi lukituksen avaaminen @@ -402,9 +399,7 @@ Yhdelle sarjalle %d sarjalle - Vaalea teema - Oletus - Vaaleansininen + Oletus Valikko Uudelleenjärjestä Uusin @@ -640,11 +635,11 @@ Lukemattomat Seuraa hiljaa, kun lisäät mangaa kirjastoon Siirrä sivunavigointipainikkeet alareunaan - Midnight Dusk - Mansikka Daiquiri + Midnight Dusk + Mansikka Daiquiri Väärä lukuformaatti Lukua ei löytynyt Rajoitukset: %s - Kuuma pinkki - Vihreä omena + Kuuma pinkki + Vihreä omena \ No newline at end of file diff --git a/app/src/main/res/values-fil/strings.xml b/app/src/main/res/values-fil/strings.xml index a8d6d1e7c..587891dc7 100644 --- a/app/src/main/res/values-fil/strings.xml +++ b/app/src/main/res/values-fil/strings.xml @@ -117,13 +117,8 @@ Ipagpaubaya Wika Pambungad na iskrin - Itim sa AMOLED - Madilim na may bughaw - Ipagpaubaya - Madilim na tema - Maliwanag na may bughaw - Ipagpaubaya - Maliwanag na tema + Madilim na may bughaw + Ipagpaubaya Nakabukas Nakasara Sundan ang sistema @@ -635,10 +630,10 @@ Isara ang incognito Kusa Ilagay ang side navigation sa ibaba - Rosas - Takipsilim sa Hatinggabi - Berdeng mansanas - Presas Daiquiri + Rosas + Takipsilim sa Hatinggabi + Berdeng mansanas + Presas Daiquiri Ikansela lahat para sa serye Isapanahon ang sinusubaybay tuwing nagsasapanahon ng aklatan Awtomatikong ipasapanahon ang pagsusubaybay diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 0d4eda7b9..e175ec8ff 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -391,10 +391,7 @@ Désactivé Activé Par défaut du système - Thème sombre - Par défaut - Bleu foncé - Noir AMOLED + Bleu foncé Notifications Sécurité Déverrouillage obligatoire @@ -436,13 +433,11 @@ Pour 1 titre Pour %d titres - Par défaut - Bleu clair + Par défaut Menu Réorganiser Plus récent Plus ancien - Thème clair Déplacer au début Déplacer à la fin Mises à jour d\'extensions @@ -680,10 +675,10 @@ Mise à jour automatique des traqueurs Restrictions : %s Déplacer les boutons de navigation latéraux vers le bas - Rose chaud - Crépuscule de minuit - Pomme verte - Daiquiri fraise + Rose chaud + Crépuscule de minuit + Pomme verte + Daiquiri fraise Tout annuler pour cette série Badges locaux \ No newline at end of file diff --git a/app/src/main/res/values-gl/strings.xml b/app/src/main/res/values-gl/strings.xml index acbf24853..e2a112787 100644 --- a/app/src/main/res/values-gl/strings.xml +++ b/app/src/main/res/values-gl/strings.xml @@ -171,13 +171,8 @@ Por defecto Idioma Pantalla inicial - Negro AMOLED - Azul escuro - Por defecto - Modo escuro - Azul claro - Por defecto - Modo claro + Azul escuro + Por defecto Encendido Apagado Utilizar o do sistema diff --git a/app/src/main/res/values-he/strings.xml b/app/src/main/res/values-he/strings.xml index 4f956b85c..1876dfd4f 100644 --- a/app/src/main/res/values-he/strings.xml +++ b/app/src/main/res/values-he/strings.xml @@ -201,10 +201,8 @@ תבנית תאריך שפה מסך פתיחה - כחול כהה - ברירת מחדל - כחול בהיר - ברירת מחדל + כחול כהה + ברירת מחדל כהה בהיר ערכת נושא של האפליקציה diff --git a/app/src/main/res/values-hi/strings.xml b/app/src/main/res/values-hi/strings.xml index 70257b2e8..577cf03e8 100644 --- a/app/src/main/res/values-hi/strings.xml +++ b/app/src/main/res/values-hi/strings.xml @@ -357,10 +357,7 @@ बंद चालू करे सिस्टम का पालन करें - डार्क थीम - डिफ़ॉल्ट - गहरा नीला - अलौकिक गहरी थीम + गहरा नीला सूचनाओं का प्रबंधन सुरक्षा बायोमेट्रिक्स के साथ लॉक करें @@ -402,9 +399,7 @@ 1 शीर्षक के लिए %d शीर्षक के लिए - लाइट थीम - डिफ़ॉल्ट - हल्का नीला + डिफ़ॉल्ट मेन्यू पुनःक्रमित नवीनतम diff --git a/app/src/main/res/values-hr/strings.xml b/app/src/main/res/values-hr/strings.xml index c79d5f5d0..acd5d042e 100644 --- a/app/src/main/res/values-hr/strings.xml +++ b/app/src/main/res/values-hr/strings.xml @@ -68,13 +68,8 @@ Standardno Jezik Početni ekran - AMOLED crna - Tamnoplava - Standardno - Tamna tema - Svjetloplava - Standardno - Svijetla tema + Tamnoplava + Standardno Slijedi sustav Uključeno Isključeno @@ -647,6 +642,6 @@ Spremi stranice u zasebne mape Radnje Prekini sve za ovu seriju - Zelena jabuka - Jagoda Daikiri + Zelena jabuka + Jagoda Daikiri \ No newline at end of file diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index 02370b351..3e999377f 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -147,9 +147,7 @@ Több Források Dátum formátum - AMOLED fekete - Sötétkék - Világoskék + Sötétkék Be Ki Könyvtár @@ -210,10 +208,7 @@ Biztonság Értesítések kezelése Kilépés megerősítése - Alapértelmezett - Sötét téma - Alapértelmezett - Világos téma + Alapértelmezett Rendszerbeállítás követése Sötét mód Helyszín diff --git a/app/src/main/res/values-in/strings.xml b/app/src/main/res/values-in/strings.xml index 9a39a8e88..e5dda32c8 100644 --- a/app/src/main/res/values-in/strings.xml +++ b/app/src/main/res/values-in/strings.xml @@ -349,12 +349,10 @@ Mati Nyala Ikuti sistem - Biru Gelap - AMOLED Hitam + Biru Gelap Kelola notifikasi Keamanan Buka Tachiyomi - Biru Terang Menu Susun ulang Terbaru @@ -375,9 +373,6 @@ Sembunyikan konten aplikasi saat berpindah aplikasi dan blokir tangkapan layar Sembunyikan konten notifikasi Selalu tampilkan transisi bab - Tema gelap - Gelap standar - Tema terang Keluar Anda sudah keluar Sedang dibaca @@ -390,7 +385,7 @@ Nonaktifkan optimisasi baterai Optimalisasi baterai sudah dimatikan Alamat surel - Terang standar + Terang standar Amankan layar Keluar dari %1$s\? Tampilan @@ -624,10 +619,10 @@ Skala Abu-abu Tampilkan tata letak navigasi Manga dalam kategori yang dikecualikan tidak akan diperbarui meskipun masuk dalam kategori yang disertakan. - Stroberi Daiquiri - Merah Muda Menyala - Malam Gelap - Apel Hijau + Stroberi Daiquiri + Merah Muda Menyala + Malam Gelap + Apel Hijau Tanggal Urutkan berdasarkan Format bab tidak valid diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 30eab4415..0d108d725 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -390,10 +390,7 @@ Disattivo Attivo Segui l\'impostazione di sistema - Tema scuro - Predefinito - Blu scuro - Nero AMOLED + Blu scuro Gestisci le notifiche Sicurezza Sblocco richiesto @@ -443,9 +440,7 @@ Mostra sempre la transizione tra capitoli Controlla aggiornamenti per le estensioni Nascondi contenuto notifica - Blu chiaro - Predefinito - Tema chiaro + Predefinito Muovi in fondo Muovi in cima Vecchi diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index ca929ae14..3d4a3496b 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -352,10 +352,7 @@ オフ オン システム設定 - ダークテーマ - 初期設定 - 濃紺 - AMOLEDブラック + 濃紺 通知設定 セキュリティ アンロックを必要とする @@ -440,9 +437,7 @@ 通知コンテンツを非表示 スクリーンショットを無効化し、「最近使ったアプリ」画面にアプリの内容を非表示します 終了時に確認 - 水色 - 既定 - ライトテーマ + 既定 底に移動 トップに移動 最古 diff --git a/app/src/main/res/values-ka-rGE/strings.xml b/app/src/main/res/values-ka-rGE/strings.xml index 8ca4b6d8c..ca4e287fa 100644 --- a/app/src/main/res/values-ka-rGE/strings.xml +++ b/app/src/main/res/values-ka-rGE/strings.xml @@ -90,11 +90,7 @@ სისტემური მსუბუქი ბნელი - მსუბუქი თემა - მოლურჯო მსუბუქი - ბნელი თემა - მოლურჯო ბნელი - AMOLED ბნელი + მოლურჯო ბნელი ენა თარიღის ფორმატი გამოსვლის დადასტურება @@ -126,8 +122,7 @@ ავტომატურად განაახლე მეტადატა მიგრაცია ნაგულისხმევი კატეგორია - ნაგულისხმევი - ნაგულისხმევი + ნაგულისხმევი ნაგულისხმევი ნაგულისხმევი ყოველთვის მკითხე diff --git a/app/src/main/res/values-kn/strings.xml b/app/src/main/res/values-kn/strings.xml index cff3518be..84259ac35 100644 --- a/app/src/main/res/values-kn/strings.xml +++ b/app/src/main/res/values-kn/strings.xml @@ -22,13 +22,8 @@ ಡೀಫಾಲ್ಟ್ ಭಾಷೆ ಮೊದಲ ಪುಟ - ಗಾಢವಾದ್ ಕಪ್ಪು - ಗಾಢವಾದ್ ನೀಲಿ - ಡೀಫಾಲ್ಟ್ - ಡಾರ್ಕ್ ಥೀಮ್ - ತಿಳಿ ನೀಲಿ - ಡೀಫಾಲ್ಟ್ - ಲೈಟ್ ಥೀಮ್ + ಗಾಢವಾದ್ ನೀಲಿ + ಡೀಫಾಲ್ಟ್ ಸಿಸ್ಟಮ್ ಅನುಕರಿಸಿ ಆನ್ ಆಫ diff --git a/app/src/main/res/values-lv/strings.xml b/app/src/main/res/values-lv/strings.xml index 60df82ac9..ab5a97112 100644 --- a/app/src/main/res/values-lv/strings.xml +++ b/app/src/main/res/values-lv/strings.xml @@ -169,13 +169,8 @@ Noklusējums Valoda Sākuma ekrāns - AMOLED melns - Tumši zils - Noklusējums - Tumšais motīvs - Gaiši zils - Noklusējums - Gaišais režīms + Tumši zils + Noklusējums Ieslēgts Izslēgts Sekot sistēmu diff --git a/app/src/main/res/values-mr/strings.xml b/app/src/main/res/values-mr/strings.xml index 9cbc0bf2e..9f552dc12 100644 --- a/app/src/main/res/values-mr/strings.xml +++ b/app/src/main/res/values-mr/strings.xml @@ -115,13 +115,8 @@ तारिकेचा स्वरूप डिफॉल्ट भाषा - पूर्ण काडा (AMOLED) - गडद निडा - डिफॉल्ट - गडद थीमचा प्रकार - फिक्का निडा - डिफॉल्ट - लाइट थीमची रुपे + गडद निडा + डिफॉल्ट तंत्राचे अनुसरण करा डार्क लाइट diff --git a/app/src/main/res/values-ms/strings.xml b/app/src/main/res/values-ms/strings.xml index b5fd5e34a..05edc8e14 100644 --- a/app/src/main/res/values-ms/strings.xml +++ b/app/src/main/res/values-ms/strings.xml @@ -357,10 +357,7 @@ Mati Hidup Ikut sistem - Tema gelap - Lalai - Biru Gelap - AMOLED Hitam + Biru Gelap Uruskan pemberitahuan Keselamatan Memerlukan buka kunci @@ -398,9 +395,7 @@ Untuk %d tajuk - Tema terang - Lalai - Biru Terang + Lalai Menu Susun semula Terbaru @@ -628,16 +623,16 @@ Sumber tidak disokong Belum dibaca Pindahkan butang navigasi sisi ke bawah - Senja Tengah Malam + Senja Tengah Malam Tarikh Susun mengikut Format bab tidak sah Bab tidak dijumpai - Merah Jambu Panas - Daiquiri Strawberi + Merah Jambu Panas + Daiquiri Strawberi Kemas kini penjejak ketika mengemaskini pustaka Kemas kini penjejak secara automatik - Epal Hijau + Epal Hijau Sekatan: %s Penanda setempat Mati diff --git a/app/src/main/res/values-nb-rNO/strings.xml b/app/src/main/res/values-nb-rNO/strings.xml index fe463d6ef..bda2a61c7 100644 --- a/app/src/main/res/values-nb-rNO/strings.xml +++ b/app/src/main/res/values-nb-rNO/strings.xml @@ -356,10 +356,7 @@ Av System - Mørk - Forvalg - Mørkeblå - AMOLED-sort + Mørkeblå Håndter merknader Sikkerhet Krev opplåsning @@ -381,9 +378,7 @@ 20% 15% 10% - Lyseblå - Forvalg - Lys + Forvalg Flytt til bunnen Flytt til toppen Eldste diff --git a/app/src/main/res/values-ne/strings.xml b/app/src/main/res/values-ne/strings.xml index 21f3ba433..999159999 100644 --- a/app/src/main/res/values-ne/strings.xml +++ b/app/src/main/res/values-ne/strings.xml @@ -3,13 +3,8 @@ पूर्वनिर्धारित भाषा स्क्रिनको सुरूवात - AMOLED कालो - गाढा निलो - पूर्वनिर्धारित - अँध्यारो थिम - हल्का निलो - पूर्वनिर्धारित - प्रकाश थिम + गाढा निलो + पूर्वनिर्धारित खुल्ला बन्द अँध्यारो मोड diff --git a/app/src/main/res/values-night/bools.xml b/app/src/main/res/values-night/bools.xml new file mode 100644 index 000000000..a66e7bad2 --- /dev/null +++ b/app/src/main/res/values-night/bools.xml @@ -0,0 +1,5 @@ + + + false + false + diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index f77a6ca68..7afe4f7cd 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -1,4 +1,10 @@ - @color/background_dark + @color/background_default + + #3399FF + @color/md_white_1000_12 + #242529 + #202125 + #1F3399FF diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml new file mode 100644 index 000000000..81719d09a --- /dev/null +++ b/app/src/main/res/values-night/themes.xml @@ -0,0 +1,22 @@ + + + + + + + + + + diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index 0227ebb92..57af05a5e 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -357,10 +357,7 @@ Uit Aan Volg systeeminstelling - Donker thema - Standaard - Donkerblauw - AMOLED-zwart + Donkerblauw Meldingen beheren Beveiliging Ontgrendelen vereisen @@ -455,9 +452,7 @@ Zoeken naar updates voor extensies Meldingsinhoud verbergen Bevestig sluiten - Lichtblauw - Standaard - Licht thema + Standaard Verplaats naar top Lospinnen Leesmodus diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index 925dcd05a..f3286eb19 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -376,13 +376,8 @@ Wymagaj odblokowania Bezpieczeństwo Zarządzaj powiadomieniami - Czarny AMOLED - Ciemnoniebieski - Domyślny - Wariant ciemnego motywu - Jasnoniebieski - Domyślny - Wariant jasnego motywu + Ciemnoniebieski + Domyślny Systemowy Włącz Wyłącz @@ -662,10 +657,10 @@ Akcje Odcienie szarości Anuluj wszystko dla tego tytułu - Hot Pink - Zmierzch o północy - Zielone jabłko - Truskawkowe Daiquiri + Hot Pink + Zmierzch o północy + Zielone jabłko + Truskawkowe Daiquiri Data Sortowanie Błędny format rozdziału diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 5281ab89c..1696ceb60 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -357,10 +357,7 @@ Desligado Ligado Seguir o sistema - Tema escuro - Padrão - Azul Escuro - Preto AMOLED + Azul Escuro Gerenciar notificações Segurança Requer desbloqueio @@ -402,9 +399,7 @@ Para 1 título Para %d títulos - Tema claro - Padrão - Azul Claro + Padrão Menu Reordenar Mais novos @@ -640,16 +635,16 @@ Não lido Monitora de modo silencioso ao adicionar um mangá na biblioteca Mover os botões de navegação laterais para baixo - Rosa Quente - Aurora-da-noite - Daiquiri de Morango + Rosa Quente + Aurora-da-noite + Daiquiri de Morango Data Ordenar por Formato de capítulo inválido Capítulo não encontrado Atualizar os monitoradores durante a atualização da biblioteca Atualizar os monitoradores automaticamente - Maçã Verde + Maçã Verde Restrições: %s Selos da fonte local Desligado diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml index f6cc20516..4d9beafa9 100644 --- a/app/src/main/res/values-pt/strings.xml +++ b/app/src/main/res/values-pt/strings.xml @@ -387,10 +387,7 @@ Desligado Ligado Seguir o do sistema - Tema escuro - Padrão - Azul escuro - Preto AMOLED + Azul escuro Gerir notificações Segurança Requerer desbloqueio @@ -427,9 +424,7 @@ Para 1 título Para %d títulos - Tema claro - Padrão - Azul claro + Padrão Menu Reordenar Mais novos diff --git a/app/src/main/res/values-ro/strings.xml b/app/src/main/res/values-ro/strings.xml index 33bff80ee..02bb2a74f 100644 --- a/app/src/main/res/values-ro/strings.xml +++ b/app/src/main/res/values-ro/strings.xml @@ -356,10 +356,7 @@ Oprită Pornită Tema sistemului - Temă întunecată - Implicită - Albastru Închis - Negru AMOLED + Albastru Închis Setări notificări Securitate Necesită deblocare @@ -406,9 +403,7 @@ Pentru %d titluri Pentru %d titluri - Temă deschisă - Implicit - Albastru deschis + Implicit Meniu Reordonează Cele mai recente diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 38878fcd3..5d43a11dd 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -357,10 +357,7 @@ Выключено Включено В соответствии с системной темой - Тёмная тема - По умолчанию - Темно Синий - AMOLED Черный + Темно Синий Управлять уведомлениями Безопасность Требовать разблокировку @@ -406,7 +403,7 @@ Оптимизация батареи уже выключена Помогает с фоновым обновлением библиотеки и резевной копии Выключить оптимизацию батареи - По умолчанию + По умолчанию Доступно обновление для %d расширения Доступны обновления для %d расширений @@ -418,8 +415,6 @@ Проверять обновления для расширений Скрыть содержимое уведомлений Скрывать содержимое приложения при переключении на другие приложения а также блокировать скриншоты - Светло Синий - Светлая тема Старейший Новейший В начало @@ -663,16 +658,16 @@ Не прочитано Отслеживать бесшумно, при добавлении манги в библиотеку Переместить боковые навигационные кнопки в нижнюю часть - Ярко Розовый - Полночные Сумерки - Клубничный Дайкири + Ярко Розовый + Полночные Сумерки + Клубничный Дайкири Дата Сортировать по Неверный формат глав Глава не найдена Обновлять отслеживание, при обновлении библиотеки Автоматически обновлять отслеживание - Зелёное Яблоко + Зелёное Яблоко Ограничения: %s Локальные значки Выключено diff --git a/app/src/main/res/values-sah/strings.xml b/app/src/main/res/values-sah/strings.xml index 20cf70734..ec6383eca 100644 --- a/app/src/main/res/values-sah/strings.xml +++ b/app/src/main/res/values-sah/strings.xml @@ -100,13 +100,8 @@ Куолутунан Тыл Сүрүн экран - AMOLED хара - Хараҥа күөх - Куолутунан - Хараҥа тиэмэ - Сырдык күөх - Куолутунан - Сырдык тиэмэ + Хараҥа күөх + Куолутунан Холбоммут Араарыллыбыт Системнайы тутуһуҥ diff --git a/app/src/main/res/values-sc/strings.xml b/app/src/main/res/values-sc/strings.xml index 6eb029daf..823d0985e 100644 --- a/app/src/main/res/values-sc/strings.xml +++ b/app/src/main/res/values-sc/strings.xml @@ -357,10 +357,7 @@ Istudadu Allutu Sighi su sistema - Tema iscuru - Predefinidu - Biaitu iscuru - Nieddu AMOLED + Biaitu iscuru Amministra sas notìficas Seguresa Tocat a l\'isblocare @@ -402,9 +399,7 @@ Pro 1 tìtulu Pro %d tìtulos - Tema craru - Predefinidu - Biaitu craru + Predefinidu Menù Riòrdina Prus noos @@ -639,7 +634,7 @@ Sa mitza no est suportada Non lèghidos Arrasta a sa muda cando annanghes manga a sa biblioteca - Daiquiri de fràgola + Daiquiri de fràgola Data Òrdina pro Formadu de su capìtulu non vàlidu @@ -647,7 +642,7 @@ Agiorna sos arrastadores cando agiornas sa biblioteca Agiorna sos arrastadores automaticamente Moe sos butones de navigatzione laterales cara a bassu - Rosa caente - Intrinada de mesanote - Mela birde + Rosa caente + Intrinada de mesanote + Mela birde \ No newline at end of file diff --git a/app/src/main/res/values-sr/strings.xml b/app/src/main/res/values-sr/strings.xml index ab9d031b1..f6e7e1df1 100644 --- a/app/src/main/res/values-sr/strings.xml +++ b/app/src/main/res/values-sr/strings.xml @@ -279,10 +279,7 @@ Isključeno Upaljeno Prati sistem - Tamna tema - Normalno - Tamno plavo - AMOLED crno + Tamno plavo Podesi notifikacije Bezbednost Zaključaj kada nekorišćeno @@ -312,9 +309,7 @@ Sakrij prikaz aplikacije kada mijenjate aplikaciju i blokiraj screenshot-ove Biometrijski zaključaj Potvrdi izlaz - Svetlo plava - Podrazumevano - Svijetla tema + Podrazumevano Premesti na dno Premesti na vrh Najstarije diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index a5672bbdf..d735cbe79 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -357,10 +357,7 @@ Av Följ systemet - Mörkt tema - Standard - Mörkblå - AMOLED svart + Mörkblå Hantera aviseringar Säkerhet Kräv upplåsning @@ -402,9 +399,7 @@ För 1 titel För %d titlar - Ljust tema - Standard - Ljusblå + Standard Meny Ändra ordning Nyaste @@ -646,10 +641,10 @@ Kapitlet hittades inte Uppdatera spårare när du uppdaterar biblioteket Uppdatera spårare automatiskt - Skrikrosa - Midnattskymning - Grönt äpple - Jordgubbs-Daiquiri + Skrikrosa + Midnattskymning + Grönt äpple + Jordgubbs-Daiquiri Begränsningar: %s Lokala märken \ No newline at end of file diff --git a/app/src/main/res/values-th/strings.xml b/app/src/main/res/values-th/strings.xml index 6b68c4ac2..32b08c77d 100644 --- a/app/src/main/res/values-th/strings.xml +++ b/app/src/main/res/values-th/strings.xml @@ -409,13 +409,8 @@ ซ่อนแถบด้านล่างเมื่อเลื่อน ยืนยันการออก รูปแบบวันที่ - สีดํา AMOLED - สีน้ำเงินเข้ม - ค่าปกติ - ธีมสีเข้ม - ฟ้าอ่อน - ค่าปกติ - ธีมสีอ่อน + สีน้ำเงินเข้ม + ค่าปกติ เปิด ปิด ตามระบบ diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index 2e6da4cb6..1120955c7 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -357,10 +357,7 @@ Kapalı Açık Sisteme uy - Karanlık tema - Öntanımlı - Koyu Mavi - AMOLED Siyah + Koyu Mavi Bildirimleri yönet Güvenlik Kilit açma gerektir @@ -402,9 +399,7 @@ 1 başlık için %d başlık için - Aydınlık tema - Öntanımlı - Açık Mavi + Öntanımlı Menü Yeniden sırala En yeni @@ -640,16 +635,16 @@ Okunmayan Kitaplığa manga eklerken sessizce izle Yan gezinme düğmelerini alta taşı - Sıcak Pembe - Alacakaranlık + Sıcak Pembe + Alacakaranlık Tarih Sıralama ölçütü Geçersiz bölüm biçimi Bölüm bulunamadı Kitaplığı güncellerken izleyicileri güncelle İzleyicileri otomatik olarak güncelle - Çilekli Kokteyl - Yeşil Elma + Çilekli Kokteyl + Yeşil Elma Kısıtlamalar: %s Yerel rozetler \ No newline at end of file diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml index 466a4c3d1..94c7f6f0e 100644 --- a/app/src/main/res/values-uk/strings.xml +++ b/app/src/main/res/values-uk/strings.xml @@ -357,10 +357,7 @@ Вимкнено Увімкнено Використовувати системну - Темна тема - За замовчуванням - Темно-синя - AMOLED чорна + Темно-синя Керування сповіщеннями Безпека Вимагати розблокування @@ -407,9 +404,7 @@ Для %d тайтлів Для %d тайтлів - Світла тема - За замовчуванням - Блакитна + За замовчуванням Меню Переупорядкувати Найновіші diff --git a/app/src/main/res/values-v27/bools.xml b/app/src/main/res/values-v27/bools.xml new file mode 100644 index 000000000..9e125852c --- /dev/null +++ b/app/src/main/res/values-v27/bools.xml @@ -0,0 +1,5 @@ + + + true + true + diff --git a/app/src/main/res/values-v27/themes.xml b/app/src/main/res/values-v27/themes.xml index 7087b3360..bef846eb3 100644 --- a/app/src/main/res/values-v27/themes.xml +++ b/app/src/main/res/values-v27/themes.xml @@ -1,9 +1,9 @@ - - + + @@ -254,7 +258,29 @@ true 75dp scrollable - @color/ripple_toolbar_fainter + ?attr/colorOnPrimary + + + + + + + + + + + + + diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 91b16da16..858fc9f8b 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -6,12 +6,12 @@ - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + -