mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 03:39:19 +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.Context
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
|
import android.os.Build
|
||||||
import android.os.Environment
|
import android.os.Environment
|
||||||
import androidx.appcompat.app.AppCompatDelegate
|
import androidx.appcompat.app.AppCompatDelegate
|
||||||
import androidx.core.content.edit
|
import androidx.core.content.edit
|
||||||
@ -121,8 +122,9 @@ class PreferencesHelper(val context: Context) {
|
|||||||
|
|
||||||
fun themeDarkAmoled() = flowPrefs.getBoolean(Keys.themeDarkAmoled, false)
|
fun themeDarkAmoled() = flowPrefs.getBoolean(Keys.themeDarkAmoled, false)
|
||||||
|
|
||||||
fun lightTheme() = flowPrefs.getEnum(Keys.lightTheme, Themes.DEFAULT)
|
val isOnA12 = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S
|
||||||
fun darkTheme() = flowPrefs.getEnum(Keys.darkTheme, Themes.DEFAULT)
|
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)
|
fun pageTransitions() = flowPrefs.getBoolean(Keys.enableTransitions, true)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user