Skip to content

Commit

Permalink
Use dark mode as the default
Browse files Browse the repository at this point in the history
For now, set the default mode to be dark mode. In the future, in sha'
Allah, there will be a setting for either day, night, or follow system.
For people who have the app installed, it will default to dark. For new
installations, it'll follow system by default. This will be in the
future though, in sha' Allah.
  • Loading branch information
ahmedre committed Dec 15, 2024
1 parent 854c2f2 commit 3d8e2de
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.quran.labs.androidquran
import android.app.Application
import android.content.Context
import android.content.res.Resources
import androidx.appcompat.app.AppCompatDelegate
import androidx.work.Configuration
import androidx.work.WorkManager
import com.quran.labs.androidquran.core.worker.QuranWorkerFactory
Expand Down Expand Up @@ -34,6 +35,9 @@ open class QuranApplication : Application(), QuranApplicationComponentProvider {
applicationComponent.inject(this)
initializeWorkManager()
bookmarksWidgetSubscriber.subscribeBookmarksWidgetIfNecessary()

// set dark mode as the default for now
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES)
}

open fun setupTimber() {
Expand Down

0 comments on commit 3d8e2de

Please sign in to comment.