Add Black-Red theme (#95)
* Appveyor * stuff * resolve conflict * Let's try this again * try again * More fixing * remove appveyor * revert build.gradle * Revert "revert build.gradle" This reverts commit feaaa78157ffe8d6d6af7d6d63a74bc14b92f584. * Undo line change * Update build.gradle * Update MainActivity.kt Co-authored-by: AbdullahM0hamed<AbdullahM0hamed@users.noreply.github.com>
This commit is contained in:
@@ -23,6 +23,7 @@ object PreferenceValues {
|
||||
default,
|
||||
blue,
|
||||
amoled,
|
||||
red,
|
||||
}
|
||||
|
||||
enum class DisplayMode {
|
||||
|
||||
@@ -49,6 +49,7 @@ abstract class BaseActivity<VB : ViewBinding> : AppCompatActivity() {
|
||||
when (preferences.themeDark().get()) {
|
||||
Values.DarkThemeVariant.blue -> R.style.Theme_Tachiyomi_DarkBlue
|
||||
Values.DarkThemeVariant.amoled -> R.style.Theme_Tachiyomi_Amoled
|
||||
Values.DarkThemeVariant.red -> R.style.Theme_Tachiyomi_Red
|
||||
else -> R.style.Theme_Tachiyomi_Dark
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,12 +126,14 @@ class SettingsGeneralController : SettingsController() {
|
||||
entriesRes = arrayOf(
|
||||
R.string.theme_dark_default,
|
||||
R.string.theme_dark_blue,
|
||||
R.string.theme_dark_amoled
|
||||
R.string.theme_dark_amoled,
|
||||
R.string.theme_dark_red
|
||||
)
|
||||
entryValues = arrayOf(
|
||||
Values.DarkThemeVariant.default.name,
|
||||
Values.DarkThemeVariant.blue.name,
|
||||
Values.DarkThemeVariant.amoled.name
|
||||
Values.DarkThemeVariant.amoled.name,
|
||||
Values.DarkThemeVariant.red.name
|
||||
)
|
||||
defaultValue = Values.DarkThemeVariant.default.name
|
||||
summary = "%s"
|
||||
|
||||
Reference in New Issue
Block a user