mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 02:19:14 +01:00
Default theme for a12 is now monet
This commit is contained in:
parent
a71446d0f7
commit
2dd3b112bd
@ -3,6 +3,7 @@ package eu.kanade.tachiyomi.data.preference
|
||||
import android.content.Context
|
||||
import android.content.SharedPreferences
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.os.Environment
|
||||
import androidx.appcompat.app.AppCompatDelegate
|
||||
import androidx.core.content.edit
|
||||
@ -121,8 +122,9 @@ class PreferencesHelper(val context: Context) {
|
||||
|
||||
fun themeDarkAmoled() = flowPrefs.getBoolean(Keys.themeDarkAmoled, false)
|
||||
|
||||
fun lightTheme() = flowPrefs.getEnum(Keys.lightTheme, Themes.DEFAULT)
|
||||
fun darkTheme() = flowPrefs.getEnum(Keys.darkTheme, Themes.DEFAULT)
|
||||
val isOnA12 = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S
|
||||
fun lightTheme() = flowPrefs.getEnum(Keys.lightTheme, if (isOnA12) Themes.MONET else Themes.DEFAULT)
|
||||
fun darkTheme() = flowPrefs.getEnum(Keys.darkTheme, if (isOnA12) Themes.MONET else Themes.DEFAULT)
|
||||
|
||||
fun pageTransitions() = flowPrefs.getBoolean(Keys.enableTransitions, true)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user