core / com.vmadalin.core.utils / ThemeUtils

ThemeUtils

class ThemeUtils

Utils for application theme configuration.

Constructors

<init>

Utils for application theme configuration.

ThemeUtils()

Functions

isDarkTheme

Whether the current configuration is a dark theme i.e. in Night configuration.

fun isDarkTheme(context: Context): Boolean

isLightTheme

Whether the current configuration is a light theme i.e. in Day configuration.

fun isLightTheme(context: Context): Boolean

setNightMode

Force AppCompatDelegate Mode to night/notnight.

fun setNightMode(forceNight: Boolean, delay: Long = 0L): Unit