Add theme settings

This commit is contained in:
Koitharu
2020-02-21 18:57:50 +02:00
parent 21c2a4aa9a
commit 2dc5840872
9 changed files with 63 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
package org.koitharu.kotatsu
import android.app.Application
import androidx.appcompat.app.AppCompatDelegate
import androidx.room.Room
import coil.Coil
import coil.ImageLoader
@@ -23,6 +24,7 @@ class KotatsuApp : Application() {
super.onCreate()
initKoin()
initCoil()
AppCompatDelegate.setDefaultNightMode(AppSettings(this).theme)
}
private fun initKoin() {