allow user to select a theme preference over light/dark/system (#318)

This commit is contained in:
lollerfirst
2025-08-28 08:14:46 +02:00
committed by GitHub
parent 846cd976c0
commit 28abd3c593
6 changed files with 94 additions and 8 deletions
@@ -2,6 +2,7 @@ package com.bitchat.android
import android.app.Application
import com.bitchat.android.nostr.RelayDirectory
import com.bitchat.android.ui.theme.ThemePreferenceManager
/**
* Main application class for bitchat Android
@@ -23,5 +24,8 @@ class BitchatApplication : Application() {
try {
com.bitchat.android.nostr.NostrIdentityBridge.getCurrentNostrIdentity(this)
} catch (_: Exception) { }
// Initialize theme preference
ThemePreferenceManager.init(this)
}
}